What is Cross-Domain Tracking?
TL;DR
Configuring analytics to track users across multiple domains as a single session. If your main site is example.com but checkout happens on shop.example.com (or a different domain entirely), standard Google Analytics 4 sees these as separate visitors. Cross-domain tracking links them, preserving the user journey across domains. Without it, you can't properly attribute conversions to their original sources, someone from your Google Ad appears as "direct" when they reach the checkout domain. Configure cross-domain tracking in GA4 Admin under Data Streams โ Configure tag settings. This requires technical implementation and testing. If you use Shopify's checkout, a separate scheduling platform, or any third-party tool on a different domain, investigate whether cross-domain tracking is needed for accurate attribution.
On this page
Frequently Asked Questions About Cross-Domain Tracking
When do I need cross-domain tracking?
When visitors move between different domains during their journey, main site to external checkout, to a scheduling tool on a subdomain, or to a separate cart system. If any conversion happens on a different domain, you probably need it.
What happens without cross-domain tracking?
A visitor from your Google Ad goes to your site, then to external checkout. Analytics sees two separate visitors. The conversion gets attributed to 'direct' instead of Google Ads. You can't measure true marketing ROI.
How do I set up cross-domain tracking in GA4?
Go to Admin โ Data Streams โ select your stream โ Configure tag settings โ Configure your domains. Add all domains in the user journey. Test thoroughly, misconfiguration causes duplicate sessions and broken attribution.
Does cross-domain tracking work with Shopify checkout?
Shopify checkout uses a different domain. You need to configure cross-domain tracking in GA4 to link the journey. Some Shopify GA4 apps handle this automatically; verify your setup by testing the full purchase flow.
Terms Related to Cross-Domain Tracking
Attribution Model
The rule determining which marketing touchpoints receive credit for a conversion. A customer might see a Facebook ad, se...
Read definition AnalyticsConversions (GA4)
In Google Analytics 4, any event you designate as particularly valuable to your business. Mark events as conversions to...
Read definition AnalyticsGoogle Analytics 4
Google's current analytics platform (GA4), which replaced Universal Analytics in July 2023. Unlike its predecessor that...
Read definition AnalyticsAverage Position
In Google Search Console, the average ranking position for a query or page in Google search results. Position 1 is the t...
Read definition AnalyticsBenchmark
Performance standards used for comparison, either industry averages or your own historical data. Benchmarks answer "is t...
Read definition AnalyticsBounce Rate
The percentage of visitors who leave your site after viewing only one page without any interaction. A high bounce rate (...
Read definition