By default, Google Analytics does not monitor website visitors and their activities across various domains. However, you can enable Cross Domain Tracking in Google Analytics 4 to track these website visitors and their actions across two or more domains, essentially tracking your user as the same individual on each site. As a prerequisite, you should use the same GA4 tracking code (Measurement ID) for all your websites where you want to enable cross-domain tracking. This quick and easy guide will show you how to enable cross-domain tracking in Google Analytics 4 (GA4)!
How to Enable Cross Domain Tracking in Google Analytics 4 (GA4)
Login to Google Analytics 4
Navigate to Admin (bottom-left-hand-side corner)
Navigate to Data Streams and click on your Data Stream
Scroll down and click on "Configure tag settings"
Under Settings, click on "Configure your domains"
List your domains
💡Important Note: When it comes to cross-domain tracking, it is important to set up your domain under the same data streams. This means that all your websites which you want to enable the cross-domain tracking for should use the same GA4 tracking code / Measurement ID.
Frequently Asked Questions on Enabling Cross Domain Tracking in Google Analytics 4 (GA4)
When do I need to enable cross-domain tracking in GA4?
You need cross-domain tracking when:
Users move between different domains (e.g., shop.example.com to pay.example.com)
You have multiple separate domains (e.g., example.com and example.net)
Your checkout process spans multiple domains
You want to track referrals between your domains accurately
How can I verify if cross-domain tracking is working?
Verify by:
Using GA4's DebugView
Testing user journeys across domains
Checking Real-Time reports
Monitoring session counts
Analyzing user paths across domains
Do subdomains need cross-domain tracking?
No, GA4 automatically tracks subdomains of the same root domain.
Can I use multiple data streams?
Yes, but using a single data stream is recommended for:
Better data consistency
Simplified reporting
Easier maintenance
More accurate user journey tracking
Is referral exclusion needed when I enable cross-domain tracking?
No, GA4 automatically handles domain referrals when configured properly.
Can I apply cross-domain tracking retroactively?
No, cross-domain tracking:
Only affects data from the point of implementation
Historical data remains unchanged
Comments