How can I recognize a visitor across subdomains?

Needed permissions: owner

If you collect data from a few subdomains using the same tracking code, you can turn on recognizing a visitor across subdomains. Then the visitor who goes from one subdomain to the other will be recognized as the same visitor. Sessions that would be treated as separate for each subdomain, will be treated as one session.

To turn on recognizing a visitor across subdomains, follow these steps:

  1. Go to Menu > Administration.
  2. Navigate to Websites & apps.
  3. Click Add new website or app.
  4. Name the website or app.
  5. In URLs, enter domains, for example, and, and click Save.
    Site or app address in Piwik PRO
  6. Install the tracking code on your domains by following this guide.
  7. Go to Menu > Tag Manager.
  8. On the left, click Piwik PRO. This is the tag with the tracking code.
  9. In Data collection, turn on Recognize a visitor across subdomains.
    Recognize a visitor across subdomains in Piwik PRO
  10. In Store a cookie on this domain, enter the wildcard, for example, *
  11. When you’re done, click Save.
  12. Click Publish.

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center