A GCLID (Google Click Identifier) is a value Google Ads adds to the landing page URL when someone clicks an ad, as a gclid parameter, for example example.com/?gclid=EAIaIQob.... It ties everything that happens after the click back to that click: the campaign, ad group, keyword and time. Google calls it required for Google Ads website conversion tracking. For lead generation it matters even more, because the GCLID saved with a lead is what lets you import the sale weeks later and have Google credit the right click.
Most agencies only think about the GCLID when an offline import fails or the CRM shows paid leads as "direct". This guide explains how it works end to end, where it gets lost, what the import errors actually mean, and a checklist for keeping it intact from the ad to the CRM.
How the GCLID is created
The GCLID comes from auto-tagging, a setting at the Google Ads account level. With auto-tagging on, every ad click gets a fresh gclid appended to the final URL. With it off, there is no GCLID, website conversion tracking loses most of its attribution, and Google Ads data in GA4 shows up incomplete. Auto-tagging is on by default in new accounts, but inherited accounts are worth checking: it is the first item in any conversion tracking audit.
Three properties of the value matter in practice:
- It is case sensitive. Google states this directly. A server, CMS or CRM that lowercases URLs or field values turns a valid GCLID into an invalid one.
- It should be stored and sent unmodified. Do not trim, decode, parse or shorten it. An import that fails with "could not be decoded" is almost always a value that was altered somewhere.
- Leave room for it. Google does not publish a fixed length, so do not cap the field tightly. Google's own Salesforce guidance uses a 255-character, read-only field, which is a sensible default for any CRM.
Where the GCLID is stored
The URL parameter only exists on the landing page. To survive the visitor moving to a second page before converting, it has to be stored.
- Conversion linker. In Google Tag Manager the Conversion Linker tag (and the Google tag on its own) reads the click information and stores it in first-party cookies on the client's domain, such as
_gcl_aw, set on the top-level domain at the root path. It also keeps a copy in local storage. When the conversion tag fires later, it reads that stored value. If the Conversion Linker is missing in GTM, or fires after the conversion tag, conversions lose their click. Sites that use the Google tag directly instead of GTM get the same behaviour built in; see Google tag vs Google Tag Manager for how the two differ. - Cross-domain. When the journey crosses domains, for example a site on one domain and a booking tool on another, the linker passes cookie values in a
_glURL parameter. Both domains need to be configured for it. Our cross-domain tracking guide covers the setup. - Your own storage. For offline conversions you also need the GCLID in a place you control: a hidden form field, then the CRM record. Cookies expire and browsers clear them; the CRM record is what you will import from.
GBRAID and WBRAID: when there is no GCLID
Some iOS traffic does not get a GCLID. Google uses wbraid for clicks on ads in iOS apps that lead to a web page, and gbraid for clicks on web ads that lead to an iOS app. If your form only captures gclid, those leads arrive with no click ID at all. Capture all three. Our GBRAID and WBRAID import guide covers how to upload them, including the restriction that you cannot send both on the same conversion.
Why GCLIDs go missing
In audits the GCLID gets lost in the same handful of places. Work through them in order, because the first one that applies usually explains most of the gap.
1. Auto-tagging is off, or overridden
Check the account setting first. Then check that no tracking template or manual tagging scheme replaces the final URL in a way that drops parameters.
2. The site rejects or rewrites unknown parameters
Google warns that a small share of websites do not allow arbitrary URL parameters and serve an error page when auto-tagging is on. More often, a server rewrite rule lowercases the URL, which corrupts the case-sensitive value. Google's own test is simple: add ?gclid=TeSter-123 to the landing page URL, load it, and confirm the page works and the value arrives with its original case. If it comes back as tester-123, something is rewriting it. Our free GCLID and UTM redirect checker runs this test for you across every redirect, along with fbclid, wbraid and UTMs.
3. Redirects strip the query string
Vanity URLs, HTTP to HTTPS hops, trailing-slash redirects, language redirects and link shorteners can all drop everything after the ?. Every 301 or 302 between the ad and the final page must keep the query string. Click a real ad, or the test URL above, and watch the final address in the browser.
4. Consent is denied
Under Consent Mode, when ad_storage is denied the tag does not store ad click information in cookies. Turning on URL passthrough lets the click identifiers (gclid, wbraid, _gl and others) travel through the URL from page to page instead, so a conversion in the same visit can still be measured. It does not help a visitor who comes back days later. The Consent Mode v2 guide covers the settings.
5. Browsers shorten cookie life
Safari's tracking prevention caps cookies set by JavaScript at 24 hours when the visitor lands from a link carrying a click ID, and at 7 days otherwise without interaction. A lead who converts on day three may have no stored GCLID left in Safari. This is one reason to capture the value into a form field on the first page view and keep it with the lead, rather than relying on the cookie alone. Server-set cookies, such as those from server-side GTM on a first-party subdomain, are another.
6. The form or CRM never saves it
This is the most common gap for lead-gen clients. The GCLID is in the cookie, but the form has no hidden field, the form tool does not pass hidden fields to the CRM, or the CRM field exists but is never mapped. Embedded tools in iframes are a frequent cause, because a script on the parent page cannot fill a field inside an iframe from another domain without the tool's own support. Each form tool has its own way of handling this; our guides for HubSpot forms, GoHighLevel and CRM lead source attribution cover the common ones.
