Skip to content

Google AdsPublished 11 min read

What Is a GCLID? How It Works and Why It Goes Missing

The Google Click Identifier explained for agencies: how auto-tagging creates it, where it is stored, the places it gets lost, the import errors it causes, and how to keep it from click to CRM.

Muhammad Qitmeer, founder of Augere Labs
Muhammad Qitmeer
Co-founder and CEO, Augere Labs
Share

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 _gl URL 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.

GCLID import errors and what they mean

When you import offline conversions, most failures trace back to the GCLID itself. The errors Google returns are specific, which makes them useful:

ErrorWhat it meansUsual fix
Unparseable GCLID ("could not be decoded")The value is not a valid GCLIDFind where it was altered: lowercased, truncated, URL-encoded twice, or a placeholder like "(not set)"
Identifiers too old / expired eventThe click is older than the import window or the conversion action's click-through windowImport within 90 days of the click, and check the conversion window on the action
Conversion actions not active / created after the clickNo conversion action existed when this click happenedCreate offline conversion actions before campaigns run; imports for older clicks cannot be recovered
Too recent conversion actionThe conversion action was only just createdWait about 6 hours, then import again
Click too recentThe click happened less than 6 hours agoRetry later; schedule imports so they lag clicks
Conversion precedes the clickThe conversion timestamp is earlier than the clickCheck time zones and the timestamp format, which must include the offset, e.g. 2026-11-12 14:30:00+05:00
Click belongs to a different accountThe GCLID came from another Google Ads accountImport into the account that ran the ad, or use a manager account's cross-account conversion action

Google keeps GCLIDs for 90 days and accepts conversions up to 90 days after the click, so a sales cycle longer than that needs a different signal, such as an earlier qualified-lead conversion. Since June 15, 2026, new offline import setups go through Data Manager or the Data Manager API rather than the Google Ads API; see the Data Manager API change and the CRM offline import guide.

GCLID vs UTM parameters

Both sit in the URL, and agencies sometimes treat them as interchangeable. They are not.

  • UTM parameters are labels you write yourself. Any analytics or CRM tool can read them, and they describe source, medium and campaign in human terms. Our UTM naming convention covers keeping them consistent.
  • The GCLID is generated by Google and only Google can decode it. It identifies the exact click, which is what Google Ads needs to attribute conversions and import offline results.

Use both. UTMs make CRM reports readable for the client; the GCLID makes Google Ads attribution and offline imports work. If you have to choose what to protect first, protect the GCLID, because a missing UTM costs a report label while a missing GCLID costs the conversion.

Checklist: keeping the GCLID from click to CRM

  1. Auto-tagging is on in every account, with no tracking template that drops parameters.
  2. The test URL with ?gclid=TeSter-123 loads without errors and keeps its case on the final page.
  3. Every redirect between the ad and the final page keeps the query string.
  4. The Conversion Linker (or Google tag) fires on all pages, before conversion tags, and cross-domain linking is set up where the journey crosses domains.
  5. Consent Mode is configured, with URL passthrough on where the client's consent setup allows it.
  6. Every lead form has hidden fields for gclid, wbraid and gbraid, filled on the first page view and kept through the session.
  7. The CRM has matching fields, long enough and read-only, and the form-to-CRM mapping is tested.
  8. Offline conversion actions exist before campaigns start, and imports run on a schedule that lags clicks by more than 6 hours.
  9. A real test lead from a tagged URL shows the GCLID in the CRM record. Settings are not proof; a logged test lead is.

Getting it fixed

A missing GCLID rarely has one cause. It is usually a redirect here, a form tool there and an unmapped CRM field at the end. Our offline conversions and CRM lead attribution services trace the click ID through each step and prove it with a logged test lead. For a quick first look at a client site, run the tracking health check.

Just one quick fix, not a whole account? Our founder takes small fixed-price jobs on Fiverr: Google Ads conversion tracking fix

Frequently asked questions

What does GCLID stand for?

Google Click Identifier. It is a unique value Google Ads adds to the landing page URL as a gclid parameter when auto-tagging is on, so conversions can be tied back to the exact ad click.

Why is the gclid parameter missing from my landing page URL?

Usually because auto-tagging is off, a redirect strips the query string, or the site rewrites or rejects unknown parameters. Some iOS clicks carry wbraid or gbraid instead of a GCLID. Test by adding ?gclid=TeSter-123 to the landing page and checking it arrives unchanged.

How long is a GCLID valid for offline conversion imports?

Google retains GCLIDs for 90 days and accepts conversions up to 90 days after the click, provided the conversion action's click-through window is long enough and the action existed before the click.

What does an invalid or unparseable GCLID error mean?

The value could not be decoded, which almost always means it was changed after capture: lowercased, truncated, encoded twice or replaced by a placeholder. GCLIDs are case sensitive and must be stored and uploaded exactly as received.

Is a GCLID personal data?

Treat it as part of the advertising data covered by your consent setup. Under Consent Mode, when ad_storage is denied the tag does not store the click ID in cookies, and the client's legal advisor should confirm how click IDs are handled in the privacy notice.

Muhammad Qitmeer

Written by

Muhammad Qitmeer, founder of Augere Labs

Augere Labs is the white-label tracking partner behind marketing agencies. If a client account has numbers you don't trust, I'm happy to look at it with you and tell you straight what's wrong.

Connect on LinkedIn