Skip to content
accs-net.com

Press Esc to close

_gl Parameter Decoder

The _gl parameter is the linker that the Google tag adds to a URL. It carries Google Analytics and Google Ads cookie values to another domain or, in consent mode, to the next page.

Paste a URL with ?_gl= or the value itself. The decoder splits it into parts, decodes each cookie, lists the time stamps inside and checks whether the link would still work in this browser.

_gl Decoder
Reads the Google linker string and checks it against this browser
Runs locally

The decoder works inside this page. It sends nothing and sets no cookies. The two examples are real captures from test domains, and the fresh link is built by this page the way the Google tag builds it.

Parts of a _gl Value

A _gl value is a chain joined by asterisks. It starts with the version and a check value, then lists pairs of cookie name and cookie value.

Each cookie value is Base64 with a URL-safe alphabet: letters, digits, - and _, with a dot in place of the = padding. This is how the first example above looks:

_gl=1*aby3qt*_ga*NDQ5MDk3NDMzLjE3OTM4MTMzOTU.*_ga_ABCDE12345*czE3OTM4MTMzOTQkbzEkZzAk...*_gcl_aw*R0NMLjE3OTM4MTMzOTUuVGVTdC1nY2xpZC0xMjM.*_gcl_au*MTM4MTI2NTgyOS4xNzkzODEzMzk1

Google does not document this format. The table comes from the Google tag script served on 4 November 2026 and from live captures on two test domains, so it can change without notice.

KeyCarriesDecoded value in the captureCookie lifespan
_gaClient ID: random number and creation time449097433.17938133952 years
_ga_<ID>Session of one GA4 stream, ID = measurement ID without G-s1793813394$o1$g0$t1793813394$j60$l0$h02 years
_gcl_awGoogle Ads click: click time and gclidGCL.1793813395.TeSt-gclid-12390 days
_gcl_auGoogle Ads first-party cookie: random number and creation time1381265829.179381339590 days
_gcl_dc, _gcl_gb, _gcl_agClick IDs from dclid, wbraid and gbraid linksClick time and click ID90 days
_fplcValue of the FPLC cookieOpaque token20 hours
_upFlag for consent mode with URL passthrough1Not a cookie
_gsThe gad_source of an ad click, only next to _up1Not a cookie

Lifespans are from Google’s list of its advertising and measurement cookies. On the receiving domain, the tag writes the values back into its own cookies. In the capture, the second domain got _ga=GA1.1.449097433.1793813395, the same client ID as the first.

The session value is a row of short fields. In it, s is the session ID, which equals the session start time, o the session number, g the engaged flag and t the time of the last hit. Google does not document j, l and h, so the decoder shows them as they are.

How the Check Value Works

The second part, such as aby3qt, stops a link from being reused later or in another browser. The Google tag computes it from five values:

CRC32, written in base 36, of these values joined by *
  user agent
  time zone offset
  browser language
  minutes since 1970
  rest of the _gl value

When a page opens with _gl, the tag computes the checksum for the current minute and for the two minutes before it. If none of the three matches, it ignores the whole value and the visitor gets a new client ID.

So a link lives two to three minutes, depending on the second of the click. Google’s cross-domain guide rounds this to two minutes.

A test on 4 November 2026 fits the rule. A link opened 140 seconds after the click kept the client ID. The same link opened after 200 seconds, or after 8 seconds in a browser with another user agent, produced a new one.

The decoder repeats this calculation in your browser. For the two test captures above, the result is exact: the checksum it computes matches the one the Google tag produced.

Why the Browser Check Works Only in the Same Browser

A checksum keeps only 32 bits of what went into it. The check value holds no readable user agent, language or time, so a link alone never shows which browser made it or when.

The decoder can only redo the calculation with the values of the browser it runs in. It tries every minute of the last 30 days. A match means a browser with the same user agent, language and time zone made the link in that minute, and nobody edited it since.

No match is the normal result for a link from another person or device. It also appears after a change of browser language or time zone, after a browser update that changes the user agent and after an edit of a single character.

To test your own setup, click a link to your second domain, copy the address that opens and paste it here in the same browser within two minutes.

What the Time Stamps Tell You

The cookie values carry Unix times: when the client ID was created, when the session started, the last hit and the Google Ads click. The click on the decorated link itself is not among them.

The link was made after the newest of these times. So the time stamps give only an upper limit on its age, and they come from the clock of the device that made the link.

If the newest time is less than two minutes old, the link is fresh. If it is older, only the check value knows the minute, and only the same browser can read it.

When a _gl Link Does Not Work

SymptomLikely causeWhat the decoder shows
New client ID when the link is opened minutes laterThe minute of the click is more than two minutes backExpired, with the minute it was made, in the same browser
A shared link creates a new user for everyoneThe check value belongs to another browserNo match for this browser
New client ID right after a fresh clickNo linker settings on the receiving tag, or a redirect dropped the query stringFresh, so the problem is on the receiving side
Value ignored after it was copied by hand or editedThe string was cut off or changedA key without a value or a Base64 error
_gl on links inside one domainConsent mode with URL passthroughThe _up flag set to 1

For the setup itself, see cross-domain tracking in the glossary. To work through other tracking faults step by step, use the Fix My Tracking checker.

Frequently Asked Questions

What is the _gl parameter in a URL?

It is the linker parameter of the Google tag. It carries Google Analytics and Google Ads cookie values, such as the client ID, the session and the ad click, to the next domain so GA4 keeps one user and one session.

Is it safe to delete _gl from a link?

Yes, for links you share, bookmark or post. A stale value is ignored anyway. The decoder shows the same link without _gl after each decode.

Can the decoder tell which browser made a link?

No. It can only tell whether a browser with the same user agent, language and time zone as yours made it in the last 30 days, and in which minute.

How long does a _gl link work?

Two to three minutes in the browser that made it. The Google tag accepts the value in the minute of the click and in the two minutes after. Google’s guide rounds it to two minutes.

Does a _gl value contain personal data?

It contains identifiers: the GA client ID and, with Google Ads, the click ID. Base64 is an encoding, not encryption, so anyone with the link can read them.

What do _up and _gs mean?

_up set to 1 marks consent mode with URL passthrough. _gs carries the gad_source of an ad click in that mode, and the click ID itself travels as a separate gclid parameter.

Does the decoder send my URL anywhere?

No. It is JavaScript inside this page. It makes no network requests and stores nothing, in cookies or anywhere else.

Related Terms

  • Cross-domain tracking: the setup that adds _gl to links between your domains
  • Client ID: the browser identifier inside the _ga pair
  • Session: the visit the _ga_<ID> pair keeps in one piece
  • GCLID: the Google Ads click ID inside _gcl_aw
  • First-party cookie: the cookie scope that makes the linker necessary
  • Cookie banner: where consent decides between cookies and URL passthrough