Skip to content
Google Analytics 4

What Is Cross-Domain Tracking in GA4?

Definition

Cross-domain tracking connects a visitor's activity across related domains, such as a storefront and a separate checkout.

In GA4, the domain linker transfers measurement identifiers through the _gl URL parameter so the destination can continue the same user and session when consent permits. Both domains need the same tag ID from the same web data stream.

URL parameter
_gl
Both domains need
the same tag IDthe same web data stream

Daniil Maximkin Published Reviewed

  1. In practice

    What is passed between domains?

    First-party measurement cookies belong to their own domain. The linker adds their values to the destination URL as _gl; the destination tag reads a valid linker and stores the measurement identifiers there.

    Google recommends configuring GA4 domains in Admin, in the web stream’s tag settings under Configure your domains. I first check that the domains belong to one measured journey and that I can configure the tag on both sides.

  2. In practice

    When does the handoff break?

    A redirect can remove _gl before the destination tag reads it. An incorrect domain rule can leave links undecorated. JavaScript navigation or another script stopping click propagation can also prevent decoration.

    I check the destination stream and consent state as well as the URL. Seeing _gl in the address bar proves a parameter arrived; it does not prove the destination used the expected identity.

  3. Not to be confused with
    Not to be confused with
    Is notIs
    unwanted-referral rulethe linker's transfer of measurement identifiers

    An unwanted-referral rule tells GA4 to ignore a matching referrer as a traffic source. It does not perform the linker’s transfer of measurement identifiers. I test identity continuity separately from referral handling.

    A payment provider I cannot tag is a different situation from two domains I can configure. Adding it to a domain list does not install a tag there or create events it never sent.

  4. Where to check

    How do I check cross-domain tracking?

    1. In a test journey, confirm both domains use the same GA4 tag ID and web stream. Review the configured domain rules against the actual link destination.
    2. Navigate through the real link with the relevant consent state. Check that _gl is added and the destination loads.
    3. Preserve the browser network log and follow redirects. Find any step that removes the linker before the destination tag reads it.
    4. Compare the client and session identifiers in the measurement requests before and after the transition. Use the same browser and a continuous test journey.
    5. Check the resulting journey and source in a permitted test property. If the IDs change, trace the handoff before changing attribution settings.
  5. Sources
Daniil Maximkin

Hi, I’m Daniil.

I work with you from defining the problem to implementation and handover. You talk to the person who does the work. I work in English and Russian.

What do you need to get working?

Describe your task

The first answer is free, within one working day. Or write directly: next@taskfordaniel.com