Raydar free tools · Link decoder

Decode a link with _gl in it

_gl is Google's cross-domain linker, added at the click when a visitor moves between two domains measured as one site. Paste the link to see it beside the rest of the URL.

Example: https://www.example.com/?_gl=1*abcde5*

Nobody on your team typed it

If _gl has started showing up on your own URLs, Google's tag put it there, at the moment a visitor clicked a link to another domain you set up for cross-domain measurement. Google's developer guide shows the shape as ?_gl=1~abcde5~, and its Analytics help shows ?_gl=1*abcde5*. The value carries the first-party measurement cookies from the site the visitor just left. The tag on the next domain stores them, so Google Analytics counts one user and one session instead of two of each.

Google says cross-domain measurement works for all its products, Google Analytics and Google Ads conversion measurement included. In GA4 it is switched on under Admin, in the web stream's Configure your domains setting. In Tag Manager, the Conversion Linker tag adds it to any link pointing at a domain listed in Auto Link Domains.

A saved copy has already expired

Google's guide says linker parameters expire after two minutes, which is why the tag adds _gl at the click instead of writing it into the page ahead of time. The value in last week's bookmark is long dead. Strip it before you share the link.

Where it goes missing

A redirect on the destination page can drop _gl before the tag reads it, which Google says "usually happens too quickly to observe by eye". The fix is to keep the parameter through the redirect. Google also says the process cannot work properly when navigation is triggered by JavaScript instead of a user's click, or when another script stops the click with stopPropagation(). Forms need decorate_forms set to true, which is off by default.

With url_position set to fragment, the value sits after a hash (#_gl=), so a clean-up script that only reads the query string will miss it.

What stripping it costs

Nothing changes for the visitor. The site owner pays: without _gl, each domain sets new cookies with new IDs, and Google Analytics counts one person as two users. Older analytics.js setups did the same job with a parameter called _ga. Google Ads' own click ID is a separate parameter, gclid.

Questions

What is _gl in a URL?

_gl is the linker parameter Google's tag adds when a visitor clicks from one domain to another domain that the site measures as the same site. It carries the first-party measurement cookies across, so Google Analytics counts one user and one session instead of two.

Can I remove _gl from a URL?

Yes. Nothing on the page depends on it, and Google says linker parameters expire two minutes after they are created, so a saved copy has no use. On your own site, keep it through redirects, or the two domains count the same person twice.

Why is _gl being added to my links?

Your site has cross-domain measurement turned on, through GA4's Configure your domains setting, a gtag.js linker command or Tag Manager's Conversion Linker tag. The tag adds _gl when someone clicks a link to one of the listed domains.

Related parameters: _branch_match_id · sfmc_id · tag · hsa_cam

Give your bio link a brain.

Build your page, watch who converts, free to start.

Get started free

No card required.