Free auditStart free
GlossaryGlossary · Measurement

Cross-domain tracking

Cross-domain tracking keeps one visitor as one user across your domains in GA4. How the _gl parameter works, the Admin path, limits, and a quick link check.

2 min
read
1
sources
Oct 31, 2026
updated
Scaplet Editorial Team
author
In one line

Cross-domain tracking, which Google calls cross-domain measurement, attributes activity to a single user as they move between domains, such as a main site and a separate checkout domain. Without it each root domain sets new cookies and one person looks like several users.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

5 facts from the sources below
_gl URL parameter
Passes IDs via
Same Google tag ID on every domain
Needs
Up to 100
Conditions
Editor
Min role
Required for first-party cookies
Cookie consent
02How it works

Set it up in Admin

Subdomains: Google recommends this setup but warns of self-referrals. Mitigations it names include tagging all pages, aligning cookie domain settings and adding subdomains to the exclusion list.

  1. 01

    Open the stream

    In Admin, under Data collection and modification, click Data streams, click Web, then select the stream.

  2. 02

    Open tag settings

    At the bottom of the stream details click Configure tag settings, then in Settings click Configure your domains.

  3. 03

    Add domains

    Accept recommended domains with Add, or click Add condition under Include domains that match the following conditions. Choose a match type and enter the domain, for example example.com.

  4. 04

    Save

    Repeat for each domain and click Save.

03At a glance

Where it silently fails

Cause

A redirect that drops query parameters

Effect
_gl is stripped and the user arrives as new. Keep _gl through redirects
Cause

Navigation started by JavaScript, not a click or form

Effect
Google says this is not handled
Cause

A script that stops event propagation

Effect
The listener may never append _gl
Cause

No first-party cookie consent

Effect
IDs are not passed. See consent mode
04How it works

Check it in 2 minutes

  1. 01

    Click through

    On the first domain, click a link or submit a form that goes to the second domain.

  2. 02

    Read the URL

    Confirm the destination URL contains _gl, for example ?_gl=1*....

  3. 03

    Test the details

    Confirm the page loads and any downloads still start.

Questions

Asked a lot.

2 questions people ask next, answered from the sources on this page.

01Do subdomains need cross-domain tracking?

Google recommends the setup for subdomains too and warns about self-referrals, so tag every page, align cookie domain settings and use the exclusion list.

02How do I check that it works?

Click a link to the other domain and look for the _gl parameter in the address bar.

Sources · 1

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01[GA4] Set up cross-domain measurementsupport.google.com · checked 2026-11-01
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly