Definition
GCLID stands for Google Click Identifier. It is a long string of letters and numbers that Google adds to your URL when a person clicks your ad. It looks like this: yoursite.com/demo?gclid=Cj0KCQjw...
Each click gets its own GCLID. No two are the same. That one code is how Google links a click to whatever happens next.
What the GCLID actually stores
The code itself is just an ID. The details sit on Google's side, tied to that ID.
[table]
What Google links to the GCLID | Why it matters to you
The campaign, ad group and ad | You learn which ad drove a real deal, not just a click
The exact search term typed | You see which words bring buyers, not just browsers
Device, location and time | You spot patterns in who converts and when
The keyword and match type | You can cut match types that waste money
The auction and bid data | Smart Bidding uses it to learn
[/table]
You do not need to read any of that yourself. You only need to save the GCLID and hand it back to Google later.
Why B2B SaaS needs it more than anyone
In B2B, the sale does not happen on the website. Someone fills in a demo form today. They close 60 days later. By then the browser cookie is often gone.
The GCLID solves that. You capture it in a hidden form field when the person submits. You save it in your CRM on their record. Two months later, when that deal closes, you send the GCLID back to Google with the deal value.
Google matches the code to the original click. The revenue lands on the right campaign. Without the GCLID, that link is broken and you are guessing. Our offline conversion tracking guide walks through the full setup.
How to set it up
Three steps. A developer can do all three in an afternoon.
- Turn on auto-tagging in Google Ads. It is on by default in most accounts. Check it under Account Settings.
- Add a hidden field called gclid to every form on your site. A small script reads the code from the URL and drops it into the field.
- Map that field to a custom field on the lead record in your CRM, so it follows the person through every stage.
After that, offline conversion import sends the GCLID plus the deal value back to Google when the stage changes.
Why most B2B SaaS GCLID setups break
Two problems cause most failures.
The code is captured but never passed on. The hidden field works. The GCLID lands on the lead record. Then the lead becomes a contact, or an opportunity, and the field does not copy across. The code is lost at the exact moment it becomes useful.
It expires before the deal closes. Google only accepts a GCLID for 90 days after the click. If your average sales cycle is 75 days and a deal takes 100, you miss it. Send the SQL stage as a conversion too, not just closed won. That earlier signal lands inside the window.
GCLID at a glance
- A unique code Google adds to your URL on every ad click.
- Created by auto-tagging, which is on by default in Google Ads.
- Google stores the campaign, keyword, search term and device against it.
- You capture it in a hidden form field and save it in your CRM.
- You send it back with a deal value through offline conversion import.
- It expires after 90 days, so send an earlier stage as well as closed won.
The rule for B2B SaaS
Capture the GCLID on day one, before you spend a dollar on ads.
This is a one-time setup that costs a few hours. Skipping it means every click you buy from now on is untraceable once the cookie drops. You cannot go back and add it later for clicks that already happened.
Make sure the field copies through every CRM stage, not just the first one. And send the SQL stage back as well as closed won, so at least one signal always lands inside Google's 90 day window. Once that data flows, Smart Bidding can finally optimise toward revenue instead of form fills.
Common questions about GCLID
What does GCLID stand for?
Google Click Identifier. It is a unique code Google Ads adds to your landing page URL each time someone clicks an ad. Every click gets a different one, which is how Google can tie a later sale back to one specific click.
How do I capture the GCLID on my forms?
Add a hidden field named gclid to each form. A short script reads the code from the page URL and fills that field in. When the form submits, the code travels with the lead into your CRM.
How long does a GCLID last?
Google accepts it for 90 days after the click. If your sales cycle runs longer, send an earlier stage such as SQL back as a conversion, so something lands inside the window even when the deal closes later.
What is the difference between GCLID and UTM parameters?
UTMs are labels you write yourself and they describe the source in plain words. A GCLID is generated by Google and points to real auction data on Google's servers. You can use both, but only the GCLID feeds data back into bidding.
Do I need a GCLID if I already use Google Analytics?
Yes. Analytics shows you what happened on the site. The GCLID is what carries a closed deal back into Google Ads so the bidding can learn from it. They do different jobs.
Book a Free Google Ads Audit