What is cross-domain tracking in GA4?
Cross-domain tracking lets you track user activity across multiple related domains as a single session. It ensures data accuracy and connects the entire user journey.
Learn how to set up cross-domain tracking in GA4 to follow users across sites. Discover how to maintain data accuracy and session continuity.
August 11, 2026
Cross-domain tracking in Google Analytics 4 (GA4) helps you track users across multiple related domains as if they were visiting a single site. Without it, data from different domains gets fragmented, leading to incomplete insights. In this guide, we’ll cover everything you need to know to set up and optimize cross-domain tracking effectively.
Cross-domain tracking is a method in GA4 that lets you track user behavior across multiple domains. It ensures that actions like clicks, page views, and conversions are linked to a single user journey instead of treating each domain separately.
For example, if a user starts browsing on example1.com and completes a purchase on example2.com, cross-domain tracking ensures this is recorded as one session instead of two.
When multiple domains are involved in your business, cross-domain tracking is vital for:
If you don’t enable cross-domain tracking, GA4 treats activity on each domain as separate sessions. This leads to skewed data and a limited understanding of how your website performs.
Setting up cross-domain tracking requires a few steps. Here’s a clear and simple guide to help you through the process.
Start by listing all domains you want to track together. These are usually the main site and related domains such as:
For example:
Having this list ready makes the setup process more straightforward.
This step ensures GA4 recognizes these domains as connected and tracks user activity seamlessly between them.
If you use Google Tag Manager (GTM) for your analytics setup, you’ll need to configure it for cross-domain tracking.
This ensures that cookies and session data are shared between domains, allowing GA4 to track users as they move across your site.
GA4 includes a DebugView feature to help you test whether cross-domain tracking is working.
You can also use browser developer tools to check the _ga cookie.
If the _ga value changes between domains, there may be an issue with your configuration.
Cross-domain tracking can sometimes run into issues. Here are the most common problems and how to resolve them.
What Happens: Users moving between domains are tracked as new visitors, leading to inflated user counts and broken sessions.
Solution:
What Happens: When users move between domains, GA4 may incorrectly log the originating domain as the referral source instead of the actual source (e.g., Google or an ad campaign).
Solution:
This prevents GA4 from treating traffic from one of your domains as a referral.
What Happens: If you use GTM but don’t configure it correctly, cross-domain tracking may not work.
Solution:
Here are some tips to ensure cross-domain tracking works smoothly:
Whenever you add a new domain, ensure it’s included in the allow list in both GA4 and GTM. Missing domains can cause sessions to break.
Always test your configuration using GA DebugView and browser tools after making updates. This ensures that tracking works as expected and prevents data issues.
For traffic coming from external sources (e.g., ads or social media), use UTM parameters in your URLs. These help you identify the original traffic source, even when users move across domains.
By following these steps and best practices, you can ensure that cross-domain tracking in GA4 is set up properly, providing accurate data and actionable insights.
Cross-domain tracking lets you track user activity across multiple related domains as a single session. It ensures data accuracy and connects the entire user journey.
Use GA4 DebugView to monitor user activity across domains. Check browser cookies to ensure the _ga value remains consistent between domains.
Yes, you can configure cross-domain tracking directly in GA4 by adding related domains in the Data Streams settings. GTM is optional but simplifies the process.
Cross-domain tracking in Google Analytics 4 is essential for businesses managing multiple domains. By connecting user activity across domains, it provides accurate insights into user behavior, traffic sources, and conversions. Setting it up requires proper configuration in GA4 and, if applicable, Google Tag Manager, followed by thorough testing to ensure data integrity. With cross-domain tracking in place, you’ll gain a complete view of your audience, enabling better decision-making and performance optimization.