If your business runs across multiple domains, like a main site plus a separate booking, landing page or checkout domain, you’re almost certainly losing data at every domain transition. By default, GA4 treats each domain as a separate session and a separate user. That means your funnel has invisible breaks in it, and your attribution data is wrong.

Cross-domain tracking fixes this by passing the user’s session identifier across domain boundaries, letting GA4 stitch the journey together.

Why does tracking break without any error?

The scariest marketing problem is the one that doesn’t throw an error.

On one project, the main site and the offer funnel lived on two different domains, and the ad platforms couldn’t see anything that happened on the second one. On top of that, the site was built with a component framework that renamed its buttons every time a page loaded. The tracking rules were written to watch for a button by name, so when the name changed, the rules just stopped matching. Nothing crashed. No alert went out. The dashboards kept showing numbers, and the ad platforms kept spending and learning from bad data.

The fix took about a day: link the two domains (the setup below) and rewrite the rules to watch for something that doesn’t change on every load. Afterward, 14 kinds of conversion events were confirmed firing across both domains. Finding the problem took someone checking from the outside, step by step, instead of trusting the dashboard.

How to catch it before it costs you:

  • Click through your own funnel after every site release. Use Tag Assistant or GTM Preview and confirm each conversion tag fires once, at the right step.
  • Watch conversions day by day, not month by month. A conversion action that drops to zero, or drops sharply overnight, usually means a site change broke it. A monthly total hides that for weeks.
  • Never trust a rule that targets an auto-generated element ID. If a button’s ID looks like random characters, it will change. Target something stable, like a fixed class, the button text or a data attribute your developers control.
  • Compare platform conversions to your own records weekly. If ad platform conversions fall while leads in your CRM don’t, the tracking is broken, not the marketing.

How does cross-domain measurement work in GA4?

GA4 uses a client ID stored in a first-party cookie to identify users across sessions. When a user moves between domains, this client ID doesn’t travel with them by default. Each domain sets its own cookie and starts a new session.

Cross-domain tracking works by appending a temporary _gl parameter to links between domains. When GA4 detects this parameter on the destination domain, it reads the client ID from it and sets the matching cookie, continuing the same session.

The key requirement: both domains must have GA4 tags installed and the _gl parameter must be read by the destination domain before the session starts.

How do you set up cross-domain tracking in GTM?

Step 1: Update your GA4 Configuration tag

In GTM, open your GA4 Configuration tag (the one with your Measurement ID that fires on all pages). Under Fields to Set, add the linker.accept_incoming field with a value of true on every domain that should receive cross-domain sessions.

Step 2: Configure cross-domain domains

In the same tag, go to More Settings > Cross-Domain and add every domain that should be linked. List each domain without https://, just the domain and TLD (example: yourdomain.com, checkout.anotherdomain.com).

When a user clicks a link to any of these domains, GA4 will automatically append the _gl parameter.

Step 3: Verify the configuration

After publishing your GTM container:

  1. Navigate to your site and click a link to the secondary domain
  2. Check the URL for the _gl= parameter in the query string
  3. On the destination domain, open DebugView in GA4 (Admin > DebugView) and verify that the session is being recognized as a continuation rather than a new session

A new session on the destination domain means the parameter isn’t being read correctly. Common causes: the GA4 tag fires before the _gl parameter is processed, or the tag is not present on the first page load of the destination domain. If conversion tracking isn’t working even after cross-domain is configured, a full GA4 setup review is usually the fastest way to find what else is misconfigured.

Step 4: Check for referral exclusions

If the source domain appears as a referral source in your reports, it means cross-domain tracking isn’t working correctly. Add the source domain to your referral exclusion list in GA4: Admin > Data Streams > your stream > More tagging settings > List unwanted referrals.

What are the most common cross-domain tracking mistakes?

Only configuring one side. Cross-domain configuration needs to be set on every domain in the chain, not just the originating domain.

Missing the first page hit. The _gl parameter only works if it’s read before any other GA4 hit fires. If the destination domain fires a page_view before reading the parameter, the session ID won’t be captured.

Confusing subdomains with cross-domain. Subdomains (blog.yourdomain.com and yourdomain.com) share cookies by default and don’t need cross-domain configuration. Cross-domain tracking is only needed when moving between different root domains.

Using different Measurement IDs. Cross-domain tracking only works if the same Measurement ID (G-XXXXXXX) is used on both domains. If you use separate GA4 properties, you can’t stitch sessions.

How do you know when cross-domain tracking is working?

When cross-domain tracking is set up correctly:

  • Traffic from your main domain won’t appear as “referral” in reports from the secondary domain
  • User journeys that cross domain boundaries will show as single sessions
  • Conversion attribution will correctly credit the original source, not the domain transition

This matters most when your checkout or booking flow lives on a different domain. Without cross-domain tracking, you’re likely misattributing a significant portion of your conversions. For a broader review of how this fits into your Google Ads account health, start with conversion tracking. Cross-domain issues are one of the most common causes of broken attribution.


GTM and GA4 implementation is one of d2b2’s core services. If you’re seeing broken attribution or unexpected referral traffic, get in touch. This is usually fixable in a single engagement.