gclid
gclid is the ID Google Ads adds to the landing page URL when someone clicks an ad with auto-tagging on. The Google tag or the Conversion Linker keeps it in the _gcl_aw cookie, and the conversion tag sends it back, so Google Ads can tie the conversion to that click.
By TagALead. Last checked 1 December 2026.
How gclid gets onto the page
With auto-tagging on, every ad click lands on a URL with a gclid parameter, such as www.example.com/?gclid=123xyz (About auto-tagging). The value belongs to that one click.
A URL parameter lasts only until the visitor opens the next page. The Google tag or the Conversion Linker tag reads the click from the URL and writes it to first-party cookies named _gcl_*, _gcl_aw among them.
Google lists the lifetime of _gcl_aw as 90 days (Cookie information for Google’s ad products). When the visitor converts, the conversion tag reads this cookie and sends it back to Google Ads.
Google does not document which request parameter carries the click ID. In a gtag.js conversion request we captured on 1 December 2026, it travelled as gclaw, on a request to www.googleadservices.com/pagead/conversion/<conversion ID>/.
The same request carried the full page URL in its url parameter, so on the landing page gclid is in there too, URL-encoded. Because gclaw is undocumented, its name can change without notice.
Where gclid goes missing
Each cause below comes with a way to spot it.
A redirect that drops the query string
Google asks that every redirect pass the GCLID on to the final landing page. A hop from http to https, from the bare domain to www, or through a link shortener can lose it.
To spot it, open the ad’s final URL with ?gclid=TEST123 added and read the address bar once the page has loaded. If the parameter is gone, so is the click.
No Conversion Linker on a GTM-only setup
If no Google tag loads on every page, the GTM container needs a Conversion Linker tag, in most cases on the All Pages trigger. Without one, nothing writes _gcl_aw, and a later page has no click ID to send.
To spot it, look in the container for a Conversion Linker tag, or for a Google tag that fires on every page.
A form on another domain
Calendly, Typeform and HubSpot forms can run on the vendor’s domain, either linked or embedded in an iframe. The click cookies live on your site’s domain, so a conversion tag on the vendor’s domain cannot read them.
The Conversion Linker can add a linker parameter to links and forms that point to a linked domain. An embedded iframe is neither a link nor a form on your page.
To spot it, check which domain the thank-you event fires on. If it is the vendor’s, the gclid on yours never reaches it.
Denied consent
When ad_storage is denied, Google tags write no new advertising cookies and read no existing ones. Full page URLs, click ID included, are still collected.
With ads_data_redaction on, Google redacts ad-click identifiers and the page URLs that carry them. Without it, a conversion on the landing page can still send the click ID from the URL.
A conversion on a later page carries the click ID only if the site turns on URL passthrough, which passes it through URL parameters on links to the same domain.
In our capture with ad_storage denied, no _gcl_aw cookie was written. The conversion request went to pagead2.googlesyndication.com with gclaw taken from the URL.
To spot it, read the consent state of the conversion event in GTM Preview.
How to check gclid by hand
Follow one test click ID from the URL to the conversion request.
- Open the landing page with
?gclid=TEST123at the end of the URL, or&gclid=TEST123when it already has a query string. Check that the parameter is still in the address bar after the page loads. - In Chrome DevTools, open Application, then Cookies, and pick your domain. Find
_gcl_aw. If it is missing, the Google tag or the Conversion Linker did not run, or consent was denied. - Read the cookie’s value. Google does not document its format; in our capture it read
GCL.1796128765.TEST123, aGCLprefix, a time stamp in seconds and the click ID. - Open the site in GTM Preview, submit the test conversion and open DevTools, Network. Filter for
pagead/conversion: it matches the request onwww.googleadservices.comand the denied-consent one onpagead2.googlesyndication.com. - Open the request and look for
gclaw=TEST123in its query string. Ifgclawis missing, read the consent state for that event in Preview.
In TagALead
The template reads gclid from the page URL and records the time it read it there, or else from _gcl_aw and records the time in the cookie; the click ID with the latest known time is the lead’s source. A lead with no click ID is flagged as one that cannot be matched to an ad click. When ad_storage is denied, the template drops the click ID and still sends the lead ID.
Related
Sources
- Google Ads Help: About auto-tagging. Checked 1 December 2026.
- Tag Manager Help: Conversion linker. Checked 1 December 2026.
- Google for Developers: Consent mode overview. Checked 1 December 2026.
- Google: Cookie information for Google’s ad products. Checked 1 December 2026.
- Google Ads Help: How Google Ads tracks website conversions. Checked 1 December 2026.
- Google for Developers: Set up consent mode on websites. Checked 1 December 2026.
- Google for Developers: Google tag (gtag.js) API reference. Checked 1 December 2026.