How do I track cross-domain visitors in Matomo?

Enable cross-domain tracking by calling _paq.push(["enableCrossDomainLinking"]) on all your domains. This passes a visitor ID between domains via URL parameters so Matomo can link the visits.

All domains must use the same Matomo site ID. Configure the list of allowed domains in Matomo under Administration > Websites > Manage to ensure proper referrer attribution.

Have some questions? We have your solution.