# Configure Your Tracking

Once the Cookie Lifetime Extender is enabled:

1. Go to the **Tracking Configuration** tab;
2. Select your **web server or CDN provider** (e.g., NGINX, HAProxy, Apache, IIS, Cloudflare, Plesk);
3. Follow the **step-by-step guided setup.**

We currently offer tailored instructions for:

* [**NGINX**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/nginx-configuration-guide)
* [**Plesk**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/plesk-configuration-guide)
* [**Amazon CloudFront (AWS)**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/amazon-cloudfront-aws-configuration-guide)
* [**IIS (Microsoft Server)**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/iis-microsoft-windows-server-configuration-guide)
* [**Apache**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/apache-configuration-guide)
* [**HAProxy**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/haproxy-configuration-guide)
* [**Cloudflare**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/cloudflare-configuration-guide)
* [**Azure**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/azure-cdn-configuration-guide)
* [**Google Cloud**](https://docs.jentis.com/key-features/cookie-lifetime-extender/cookie-lifetime-extender-webserver-cdn-configurations/google-cdn-configuration-guide)

Detailed configuration guides for each infrastructure are linked in the Tracking Configuration tab.

{% hint style="info" %}
**Why do I need to configure my web server/CDN?**

To extend cookie lifetimes reliably, your web server/CDN must act as a proxy that meets the strict requirements enforced by modern browsers like Safari and Firefox.

Browsers such as Safari (with Intelligent Tracking Prevention) limit the lifespan of first-party cookies if they detect the cookie was set by a server not considered closely tied to your website, for example, servers with a different IP subnet or hostname.

By configuring your web server to proxy tracking requests via your main domain or infrastructure, you ensure:

* Cookies appear to be set directly by your site, not a third-party tracker.
* You comply with the latest browser rules.
* You regain the ability to store cookies beyond 1–7 days.

This configuration allows JENTIS’ Cookie Lifetime Extender to do its job: protect your cookie durations and ensure accurate tracking across sessions and devices.
{% endhint %}

### Verify Configuration <a href="#cookielifetimeextender-verifyconfiguration" id="cookielifetimeextender-verifyconfiguration"></a>

{% hint style="warning" %}
Please be aware that the Cookie Lifetime Extender will only be verified on "live" containers. Containers with the "stage" environment will not be checked and verified.
{% endhint %}

After completing your server setup:

1. Return to the **Cookie Lifetime Extender section** in your container;
2. Click on **Verify Configuration**;
3. JENTIS will check if the proxy is configured correctly and the cookie can persist beyond the browser-imposed limits.

{% hint style="warning" %}
Note: You must verify your DNS A Record before running the verification tool for this feature.
{% endhint %}

{% hint style="danger" %}
After enabling Cookie lifetime extender, the DCP will give a proxy code that is expected to be set up on `https://domain.*/hash` it; however, if it is set up for `https://www.domain.*/hash` it will cause a CORS Error on the Cookie Lifetime Extender Requests.
{% endhint %}

### WWW Configuration Guide (Optional)

In case you wish to configure the CLE with a `www` subdomain section in the forwarding (ie. for Content Security Policy compliance) then you must adjust the JENTIS JS Code snippet with an additional configuration.

It is possible to implement this as a "Code" Element in JENTIS Tag Manager: Codes section. Use the trigger "Before JENTIS Bundle Load".

Implement this code:

```javascript
if(window.jentis?.config?.jtm?.cookieExtender?.url !== undefined){
    window.jentis.config.jtm.cookieExtender.url = "https://{{*alternative CLE domain*}}";  
}
```

Exchange the value of the URL with your websites address and proxy path, ie. `https://www.mywebsite.com/jtshash`.

### Final Steps <a href="#cookielifetimeextender-finalsteps" id="cookielifetimeextender-finalsteps"></a>

Make sure to publish the changes made in your container. Your tracking will now automatically route through the Cookie Lifetime Extender proxy. First-party cookies will **retain their intended lifespan**, even under the latest browser restrictions.
