How to set up GA4 cross-domain tracking for global and multi-brand sites
Fragmented
sessions distort insights. GA4 cross-domain tracking unifies data across
brands and regions so marketers, analysts and leaders see the full
journey.
Google Analytics 4 (GA4) is built to unify data across domains, devices and platforms — giving marketers a clearer view of customer behavior.
For businesses managing multi-brand portfolios or international sites, that clarity depends on advanced cross-domain tracking. Here’s how to set it up, apply best practices and see it in action with a real-world example.
Why cross-domain tracking matters in GA4
For multi-brand or global organizations, customers rarely stay on one site. They may begin research on one domain, compare products on another and finally convert on a shared checkout domain.
Without cross-domain tracking in place, GA4 will split these into separate users and sessions, making it impossible to see the full customer journey.
Consider a portfolio brand where marketing campaigns drive traffic to both Brand A and Brand B. A customer might arrive on Brand A from a paid ad, then move to Brand B — or even switch to a regional domain like example.co.uk to see pricing in their local currency — before completing the purchase. Without cross-domain tracking, GA4 treats these as separate sessions, misattributing the conversion.
Cross-domain tracking keeps user paths intact across domains — giving marketers accurate insight, analysts complete funnels and decision makers a clear view of customer behavior across the entire site ecosystem.
How GA4 cross-domain tracking works
In GA4, cross-domain tracking is handled by linking Measurement IDs and setting rules for which domains share the same client ID. This prevents new sessions being created when a user moves between domains.
In practice, this involves:
- Client ID forwarding: GA4 appends identifiers to links between domains.
- Auto-link domains: GA4 recognizes related domains and continues the session.
- Referral exclusions: Ensures traffic between your own sites is not classified as referral traffic.
Setting up cross-domain tracking in GA4
With the basics covered, let’s look at how to configure it in practice.
Identify the domains
List all domains or subdomains where users may travel during a session.
- example.com
- example.co.uk
- brandA.com
- brandB.com
Access admin settings
- Go to Admin > Data Streams.
- Select the web data stream you want to configure.
Configure cross-domain settings
- In the Web stream details, scroll to More tagging settings.
- Select Configure your domains.
- Click Add condition and specify the matching logic. (e.g., “ends with example.com” or “explicitly list brandA.com and brandB.com.”)
Adjust referral exclusions
- Still in More tagging settings, go to List unwanted referrals.
- Add your related domains here so that GA4 does not count them as referral traffic.
Test the setup
- Open your sites in an incognito browser.
- Click through from one domain to another.
- Check Realtime reports in GA4. You should see only one user or session as you cross domains.
Best practices to keep cross-domain data clean
To ensure your tracking stays accurate, follow these best practices.
Configure cookie domains
- Always set cookies on the highest possible domain level (e.g., .example.com instead of shop.example.com).
- This ensures the GA4 client ID is persistent across subdomains.
- In GTM, configure the cookie domain as auto, which tells GA4 to use the top-level domain automatically.
Use referral exclusions correctly
- Add all owned domains (brands, country sites, checkout domains, third-party hosted flows you control) to the unwanted referrals list.
- Double-check you do not block legitimate external referrals (affiliate sites or partners).
Standardize measurement protocol
- If you use measurement protocol to send hits (e.g., for checkout confirmations, server-side events or CRM integrations), make sure:
- The client_id (and user_id if used) matches what is set in the browser.
- The same Measurement ID is used across all domains.
- You include the session_id when sending server-side hits, so they stitch back into the same session.
- This prevents server-side events from breaking session continuity across domains.
Maintain consistency across brands and regions
- Use a single GA4 property for all domains when the business goal is unified tracking.
- Keep GTM and tagging templates consistent to avoid mismatches in event naming and parameters.
- Where privacy regulations differ (i.e., GDPR, CCPA), ensure your consent management platform applies consistent rules across domains.
Case example: Multi-brand retailer
Consider a retail group that operates multiple fashion brands with a shared checkout. A shopper may start browsing on brandA.com, click through to brandB.com, then complete the purchase on checkout.example.com.
Problem without tracking: GA4 records this as two separate users and attributes the sale to direct traffic on brandB.com — losing the original ad attribution from brandA.com.
Solution with GA4 cross-domain tracking: By linking domains, excluding self-referrals and setting consistent cookies, GA4 records the entire path as a single session.
Result: GA4 records one continuous journey across brands and checkout, showing the true performance of campaigns.
Advanced strategies for complex setups
Cross-domain tracking isn’t a set-and-forget configuration. Maintaining accuracy requires advanced strategies tailored to your site architecture and analytics maturity.
- Multi-language sites: If you operate regional or language-specific subdomains (like fr.example.com or de.example.com), be sure to include all of them in your domain configuration rules. This avoids GA4 treating each subdomain as a separate property and ensures that users moving between languages are tracked as part of a single session.
- Hybrid setups: Many brands run modern headless CMS or single-page applications. In these cases, navigation between domains can happen without traditional page reloads, which sometimes breaks tracking. Double-check that soft navigations are being registered properly in GA4 and that your cross-domain setup accounts for JavaScript-driven transitions.
- BigQuery export: For organizations with multiple brands or markets, exporting GA4 data to BigQuery unlocks more detailed analysis. You can run custom SQL queries to compare performance by brand, region or domain and stitch together even more complex cross-domain journeys than the GA4 interface allows.
Build a unified view with GA4 cross-domain tracking
When configured with domain linking, referral exclusions, standardized measurement protocol and consistent cookie settings, GA4 connects fragmented sessions into one unified journey.
For enterprise environments, advanced practices ensure tracking scales globally while maintaining accuracy. The payoff is clear — reliable insights, smarter decisions and a data foundation ready to support growth.
The post How to set up GA4 cross-domain tracking for global and multi-brand sites appeared first on MarTech.
(2)