How can I recognize a visitor across domains?

Needed permissions: owner

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

To turn on recognizing a visitor across domains, 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://blog.com/.
    Site or app address (two sites added)
  6. Install the container (with the tracking code) on both websites 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 domains.
    Recognize a visitor across domains in Piwik PRO

    Note: We add the pk_vid parameter to the page URL to pass the visitor ID between domains.

  10. When you’re done, click Save.
  11. Click Publish.

Check if recognizing a visitor works

To check if your setup works correctly, follow these steps:

  1. Open your first domain.
    Clear Bank demo site for Piwik PRO
  2. Move to the second domain.
  3. Check the URL for the second domain. It should have attached the ?pk_vid= parameter. If it does it means that Piwik PRO transfers the visitor ID from first to second domain.
    Visitor ID transfered in the URL in Piwik PRO

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