# About cookies tracking

The tag will use the listed domain-s to set the tracking cookie.

If you have set your domain as \`website.com\`, the cookie will be set to \`.website.com\`.

However, if you have set your domain as \`[www.website.com\`](http://www.website.com`), the cookie will be set to \`.[www.website.com\`](http://www.website.com`).

The tag is always using the widest possible domain. If you have set \`order.website.com\` and \`website.com\`, the cookie will be set on \`.website.com\`. Specify the subdomain is of any use in this situation and you can remove it.

Cookies are shared following the descending tree domain, but not the other way around! In other words, cookies set on \`.domain.com\` will be shared with \`.subdomain.domain.com\` but cookies set on \`.subdomain.domain.com\` won't be shared with \`.domain.com\`.

Keep that in mind when setting up your domain and ensure this won't cause tracking issues.

{% hint style="success" %}
&#x20;Do not declare a subdomain if you don't have a good reason to do so!
{% endhint %}

## Tracking matrix <a href="#h_01hp6me2sc6ktwx7yjwer9mf0p" id="h_01hp6me2sc6ktwx7yjwer9mf0p"></a>

| Set domain-s                                                          | Risk | Comment                                                                                                                                                                                                                                                                   |
| --------------------------------------------------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| website.com                                                           | No   | The cookie will be set on .website.com                                                                                                                                                                                                                                    |
| <p>order.website.com<br>website.com</p>                               | No   | <p>The cookie will be set on .website.com. You should remove the subdomain as it is already included in the domain.</p><p>Visitors will be tracked along all subdomains.</p>                                                                                              |
| <p>order.website.com<br>[www.website.com](http://www.website.com)</p> | Yes  | <p>The cookie will be set either on <code>order</code> or on <code>www</code>, depending on where it is currently executed. A visitor on <code>order</code> won't be recognized on <code>www</code>.</p><p>We strongly advise you to make sure this is what you want.</p> |
| <p>website.com<br>other-website.com</p>                               | No   | Cookie will be set depending on the domain it is currently executed.                                                                                                                                                                                                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/account/tag-integration/understand-ab-tasty-tag-implementation-methods/about-cookies-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
