> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/account/tag-integration/understand-ab-tasty-tag-implementation-methods/about-cookies-tracking.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
