GCLID

A GCLID is a unique tracking code that Google Ads adds to the end of your landing page URL every time someone clicks one of your ads.

On this page
What Is Centralized Notification Infrastructure?
The Default State: The Big Notification Mess
Building Workflows Without Engineering Dependency
Easy Debugging with Logs 
Embedded & Branded In-App Inbox
Multi-Tenant Aware Preference Center

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

Frequently asked
questions

What is ScalixAI?

ScalixAI is a performance-driven Google Ads agency specializing in helping high-growth, AI-first companies scale with predictable, profitable customer acquisition. Founded by an ex-Googler with 9 years of insider advertising experience, we manage the entire Google Ads lifecycle—from campaign strategy and account setup to conversion tracking, analytics, and ongoing optimization. Our data-centric, AI-powered approach ensures you know exactly which campaigns are working, why they’re working, and what to do next to outpace your competitors.ScalixAI is a performance-driven Google Ads agency specializing in helping high-growth, AI-first companies scale with predictable, profitable customer acquisition. Founded by an ex-Googler with 9 years of insider advertising experience, we manage the entire Google Ads lifecycle—from campaign strategy and account setup to conversion tracking, analytics, and ongoing optimization.

How fast can I expect results?

Most clients see performance stabilize by month three. Google Ads isn’t a slot machine—it takes time to compound.

Do you require long-term contracts?

No. We work month-to-month. All we ask is that you give us three months to prove the results.

Do you only run Google Ads?

While Google Ads is our entry point, we also support LinkedIn Ads, Reddit, and X campaigns when needed.

What’s included in your CRO audit, and what’s expected from our side?

The CRO audit covers your landing pages, CTAs, forms, and overall user flow. We’ll flag what’s holding back conversions and recommend fixes. If changes require design or dev resources, we’ll hand over clear action steps for your team, so you know exactly what to adjust.

How do you work with internal teams?

We integrate directly. Whether it’s syncing with your PMM on messaging, your design team on creative assets, or RevOps on tracking, we plug into existing workflows so we’re aligned and moving fast.

How do you handle Google rep recommendations that don’t fit our goals?

As an ex-Googler, I know which recommendations are useful, and which are just there to hit Google’s internal targets. We’ll filter their advice for you, implementing only what actually helps us hit revenue goals.

What changes in your approach to ads in B2B vs. B2C?

For B2B, I focus on lead quality, longer sales cycles, and nurturing conversions across the funnel. For B2C, speed and volume matter more, so I optimize for quick wins and scalable growth. Either way, the playbook adapts to your model.

What do your weekly reports include, and how do you define “good” vs. “scalable”?

Weekly reports show spend, conversions, CPL/CPA, and how we’re tracking against projections. “Good” means campaigns are meeting efficiency targets. “Scalable” means we can push budget and expect the same or better efficiency without breaking ROI.

Book a Call