GA4

What Is the _gl Parameter in a URL? Google's Cross-Domain Linker Explained

In short: _gl is a URL parameter added by Google tags (GA4, Google Ads, gtag.js) when a visitor moves from one of your domains to another. It carries the visitor’s GA4 client ID, session information and ad click IDs, so GA4 and Google Ads see one journey instead of two. It is normal, safe and short-lived.

You’ll usually see it when someone goes from your website to a separate checkout, booking or payment domain, for example:

https://checkout.example-shop.com/?_gl=1*1abc2de*_ga*MTIzNDU2Nzg5MC4xNzMwMDAwMDAw*_ga_ABC123*MTczMDAwMDAwMC4xLjEuMTczMDAwMDAwMC4wLjAuMA..

Want to see what’s inside one of yours? Paste it into my free _gl linker decoder.

What’s inside the _gl parameter

The value is a list of parts separated by *:

PartWhat it means
1Version of the linker format
short code after itA checksum based on the browser and time, used to check the link is fresh and from the same browser
_ga*…The GA4 client ID (your _ga cookie), encoded
_ga_XXXXXXX*…Session data for that GA4 property
_gcl_aw*… / _gcl_dc*…Google Ads / Floodlight click information (when present)
_fplc*…First-party cookie data used by some server-side setups (when present)

The receiving page reads these values and writes them into its own first-party cookies, so the visitor keeps the same client ID across domains.

When does _gl appear?

  • You set up cross-domain measurement in GA4 (Admin → Data streams → your stream → Configure tag settings → Configure your domains), or the linker in Google Tag Manager or gtag.js.
  • A visitor clicks a link (or submits a form) from one listed domain to another.
  • Google Ads conversion linking can also add it for ad click data.

It does not appear on normal links inside the same domain.

Is _gl bad for SEO?

No, as long as your pages have a correct canonical tag. The parameter only appears after a visitor clicks between your domains, not in the links Google crawls on your pages, and the canonical tag tells Google which URL is the main one. Don’t add _gl URLs to your sitemap.

Should I remove _gl from my URLs?

Not on the receiving domain before the Google tag has read it, otherwise cross-domain tracking stops working. If it makes your URLs look messy, some sites clean it from the address bar after the tag has loaded, using a small script. Test carefully before doing this.

Why _gl sometimes doesn’t work

  1. The link is added by JavaScript after the page loads (for example a booking widget). The linker may not decorate it. Fix: make sure the linker runs on dynamic links or forms.
  2. A redirect drops the parameter. If the visitor goes through a redirect that removes query strings, _gl is lost. Fix: keep query parameters on redirects.
  3. The link is too old. The checksum includes a time, so a copied link used much later is ignored. This is by design.
  4. The receiving domain doesn’t have the same Google tag. Both domains need the GA4 tag with the same measurement ID.
  5. Consent was denied. With Consent Mode, the linker may not pass identifiers until consent is given.
  6. The domain isn’t in the list. Every domain in the journey must be added to “Configure your domains”.

My full guide on cross-domain tracking in GA4 and GTM walks through testing with Tag Assistant step by step.

Frequently Asked Questions

What does _gl mean in a URL?

It’s Google’s cross-domain “linker” parameter. It passes the GA4 client ID, session data and ad click IDs from one of your domains to another so tracking continues.

Is the _gl parameter safe?

Yes. It contains encoded analytics identifiers, not names, emails or passwords. It is added by your own Google tags.

Only for a short time. It includes a time-based checksum, so it’s meant to be used right away by the visitor who clicked it, not copied and shared later.

Why is _gl in my GA4 page reports?

If you see _gl in page paths, your reports include query parameters. You can exclude or clean query parameters in your reports, or remove them in GTM before sending page_location.

What’s the difference between _gl and gclid?

gclid is added by Google Ads when someone clicks an ad. _gl is added by your Google tags when someone moves between your own domains. _gl can carry the ad click information along with it.

Direct Implementation White-Label for Agencies

Need this implemented, audited, or white-labeled?

Whether you are an eCommerce brand owner fixing signal loss or a digital marketing agency needing a senior analytics engineer under strict NDA, I deliver 24–48h SLA turnaround with 8.5+ EMQ match rates.

✓ 24–48h Emergency SLA ✓ Strict Non-Solicitation & NDA ✓ 8.5+ Event Match Quality
Jobair Mahmud

Jobair Mahmud

AI-Driven Performance Marketing & Web Analytics Consultant

Helping eCommerce brands and marketing agencies trust their ads data, scale Smart Bidding, and eliminate wasted ad spend through bulletproof server-side tracking and PPC management.