How can I recognize a visitor across subdomains?

Needed permissions: owner

If you collect data from multiple subdomains using a shared tracking code, you can use cross-subdomain tracking. This means when a visitor moves from one subdomain to another, they’ll be recognized as the same person. Instead of treating sessions separately for each subdomain, they’ll be treated as one session.

To turn on cross-subdomain visitor recognition, follow these steps:

  1. Go to Menu > Administration.
  2. Navigate to Sites & apps.
  3. Click Add a site or app.
  4. Name the site or app.
  5. In Site or app address, type addresses. Example: https://clearbank.com/ and https://help.clearbank.com/.
    Site or app address (two subdomains added)
  6. Install the container (with the tracking code) on both sites 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 a wildcard. Example: *.clearbank.com.
  11. When you’re done, click Save.
  12. Click Publish.
  13. All done!

Was this article helpful?

Technical support

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

Back to help center