# Can Freshpaint track users across domains?

Freshpaint generates a `$device_id` for each unique user and session. You can read more about how sessions are counted in Freshpaint [here](/reference/faqs/how-does-freshpaint-determine-session-count.md). This information is stored in a cookie used to track the user throughout the session. Although cookies persist across subdomains, they do not persist across root domains by default.

For example, a user navigating from <mark style="color:red;">**www**</mark>.<mark style="color:orange;">**example.com**</mark> to <mark style="color:red;">**app**</mark>.<mark style="color:orange;">**example.com**</mark> would be tracked as the same user by Freshpaint by default. A user navigating from <mark style="color:green;">[www](http://www).</mark><mark style="color:green;">**domain1**</mark><mark style="color:green;">.com</mark> to <mark style="color:blue;">[www](http://www).</mark><mark style="color:blue;">**domain2**</mark><mark style="color:blue;">.com</mark> would be tracked by Freshpaint as two different users by default.

Freshpaint does have a cross domain tracking feature that can be accessed by paid plans:

{% content-ref url="/pages/Ji7ptarn4lmyY1HIVmjz" %}
[Cross Domain Tracking](/admin-panel/events/advanced-options/cross-domain-tracking.md)
{% endcontent-ref %}

If you would like to track users across root domains, please contact <support@freshpaint.io>.


---

# 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://documentation.freshpaint.io/reference/faqs/can-freshpaint-track-users-across-domains.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.
