Home / Free tools

Free tool

_gl and tracking cookie decoder

Paste a URL with _gl or a click id on it, a _gl value, or a line of cookies, and read what each one carries: the client id, the GA4 session, the ad click, and when it was set.

Examples:

Also free: Consent Mode decoder · Tracking request decoder

The _gl linker

Cross-domain measurement in GA4 works by decoration: when a visitor follows a link to another domain in the same setup, the Google tag adds _gl to the URL. It reads 1*<hash>*<name>*<value>…: a version, a hash, then cookie names each followed by its value in base64. The usual passengers are _ga (the client id), _ga_<stream> (the GA4 session) and the Google Ads click cookies.

The hash is what makes a pasted link look broken. It is a CRC32 of the browser’s user agent, timezone offset, language and the minute, together with the values; the Google tag accepts the link only when the hash matches in the receiving browser within about two minutes. The decoder checks that against this browser and says so. Campaign attribution covers what is lost when the link is stripped on the way.

The cookies

Google does not document the inside of _ga, _ga_<stream> or _gcl_*. The readings here are the ones in common use, and fields this page does not know are shown as they are.

Questions

What is the _gl parameter?

The Google tag’s cross-domain linker. When a visitor follows a link to another domain you measure, the tag adds _gl to the URL carrying the GA client id, the GA4 session cookies and the Google Ads click cookies, so the next domain can continue the same visitor and session. Each value is base64-encoded behind its cookie name.

Why does a _gl link not work when I paste it?

The first part after 1* is a hash of the browser’s user agent, timezone, language and the current minute together with the values. The Google tag accepts the link only in the browser that made it and for about two minutes, so a link copied into another browser, or opened later, is ignored. That is by design, so a shared URL cannot hand someone else your client id.

What is in the _ga cookie?

GA1, a number for the cookie domain’s level, and the client id: a random number and the time of the first visit in seconds. The second part is why a client id says roughly when a browser was first seen.

What is the format of _fbp and _fbc?

Meta documents both as fb..., with the creation time in milliseconds. In _fbc the value is the fbclid from the landing URL, unchanged; in _fbp it is a random number the pixel generated.

Is what I paste sent anywhere?

No. It is read in your browser and never put in the page address. Cookies and click ids identify a browser, so treat them as you would the visitor they belong to.

The Tag Master extension follows the same values on a live site: the click id from the URL into its cookie and into the conversion, and a _gl link that arrived stale or was dropped by a redirect.

Try it on your own site

Tag Master is free, needs no account, and collects no data.

Add to Chrome, it’s free