Skip to main content
A product often lives on more than one hostname: example.com for the marketing site, app.example.com for the product, example.shop for the store. CrispStats can count all of them as one site, so a visitor who reads the pricing page and then signs up in the app is one visitor with one visit, and the source that brought them is kept. There is nothing to link and no parameter to add to your URLs. Put the same snippet on every hostname and tell the site which hostnames it owns.

Set it up

1

Use one site for all the hostnames

Install the same snippet, with the same data-site key, on every domain and subdomain. Do not create one site per domain if you want them counted together.
2

Add the hostnames to the site

Open Settings, General and add each extra hostname under Additional hostnames, for example app.example.com and example.shop. Subdomains of the site’s domain are counted without this as long as the list is empty; once you add any hostname, list every one you use. See how the domain and hostnames decide what is counted.
3

Copy the updated snippet

Open Settings, Tracking code and deploy the snippet again on each hostname. Its data-domains now lists every hostname, so the script tracks on all of them and nowhere else. If you write the tag by hand, list them yourself: data-domains="example.com,example.shop". See data-domains.

What counts as one visit

The one case where visitors split

With persistent visitors on, the script keeps a random id in the browser’s localStorage. Browsers keep localStorage separately for each hostname, so example.com and example.shop each get their own id, and one person counts as two visitors there. CrispStats does not pass the id between domains in the URL, and it does not set cookies. Subdomains are affected in the same way: example.com and app.example.com have separate storage too. To join a person across domains with persistent visitors on, identify them once they sign in: identified visitors are matched by your user id on every hostname.

Separate sites instead

Create one site per domain when the domains are different products with different audiences, or when different people should see them. Each site then has its own numbers, settings, team access and plan usage, and a click from one to the other counts as a referral.

Next steps

Sites and settings

The domain, additional hostnames and what each one counts.

Identify users

Join one person’s visits across devices and domains.

Script attributes

data-domains and every other option on the tag.
Last modified on December 3, 2026