_gl
- Job
- URL parameter that carries the IDs between domains on a link click or form submit
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.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
example.com to a separate checkout domain becomes a new user in a new session. With the feature on, IDs pass between domains in the _gl URL parameter when a user follows a link or submits a form._glhttps://checkout.example-pay.com/cart?_gl=1*abc123*...Per Google, outbound clicks to listed domains also stop firing enhanced measurement outbound-click events.
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.
In Admin, under Data collection and modification, click Data streams, click Web, then select the stream.
At the bottom of the stream details click Configure tag settings, then in Settings click Configure your 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.
Repeat for each domain and click Save.
_gl is stripped and the user arrives as new. Keep _gl through redirects_glOn the first domain, click a link or submit a form that goes to the second domain.
Confirm the destination URL contains _gl, for example ?_gl=1*....
Confirm the page loads and any downloads still start.
2 questions people ask next, answered from the sources on this page.
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.
Click a link to the other domain and look for the _gl parameter in the address bar.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.