---
title: "Disable 3rd Party Cookies"
slug: "disable-3rd-party-cookies"
updated: 2020-05-06T16:06:41Z
published: 2020-05-06T16:06:41Z
canonical: "onpremises.webtrends.help/disable-3rd-party-cookies"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://onpremises.webtrends.help/llms.txt
> Use this file to discover all available pages before exploring further.

# Disable 3rd Party Cookies

## Disable 3rd party cookies

The `disablecookie` flag, configures the JavaScript tag so that it doesn't attempt to use Webtrends 3rd party cookie for tracking users across your sub-domains.

By default, the JavaScript tag would use a third party cookie, set to the domain of your collection server, to pass the visitor id between sub-domains. If this third party domain can't be set, then it would create a new visitor id and set it in the first party cookie. The collection server does a redirect to determine if it was able to set the third party cookie. For some platforms, such as iOS, this additional redirect is superfluous because they have third party cookies turned off by default.

**Default Value (mobile website):** True

**Default Value (site):** False

**JavaScript Example:**

```
window.webtrendsAsyncInit = function () {
        var dcs = new Webtrends.dcs();
        dcs.init( {
                dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
                disablecookie: false
        });
        dcs.track();
}
```
