A gclid (Google Click Identifier) is a code Google Ads adds to your landing page address when someone clicks your ad, so Google can tie a later sale or enquiry back to that click. The code doesn't show you the campaign or keyword by itself, because only Google can match it. Saved with the lead, though, it lets you match a customer back to the ad click that brought them.
TL;DR
Google Ads auto-tagging (a setting that adds the code for you) puts the gclid on the address of the page people land on after clicking your ad.
You can't read a campaign or keyword from it, so keep UTM tags (labels you add to your ad links yourself) as the readable name of each campaign.
Save the gclid with each lead so won deals can be matched to the ad click, and expect some Google Ads leads to arrive without one.
- What is gclid?
- Why is there a gclid in my URL or my form entries?
- Can a gclid tell you which campaign or keyword a lead came from?
- How is gclid different from UTM tags?
- What is gclid tracking, and why should I save the gclid with each lead?
- Why do some of my Google Ads leads have no gclid?
- Common questions
What is gclid?
A gclid, short for Google Click Identifier, is a unique code that Google Ads adds to the end of your landing page address each time someone clicks one of your ads. It's a long jumble of letters and numbers that looks like a cat walked across the keyboard.
Google's glossary entry on the GCLID calls it a URL parameter passed with ad clicks. A parameter is a label and a value added after a question mark at the end of a web address. Google says the gclid identifies the campaign and other details of the click, so Google can track the ad and credit the right campaign, and that it's switched on through the auto-tagging setting in Google Ads.
Google uses the code to connect a conversion, such as a form sent on your site or a sale you report later, back to the exact click that started it. Each click gets its own code, so two people who click the same ad arrive with two different gclids.
What happens to that code once the visitor fills in your form depends on your website. TrackLeadSource is a lead source tracking tool that records where each visitor came from, including click IDs such as the gclid, and which pages they viewed. It then fills your form's hidden fields with those details, so they reach your CRM or spreadsheet with the enquiry.
Why is there a gclid in my URL or my form entries?
You see a gclid because Google Ads auto-tagging is on and someone clicked your ad. Auto-tagging adds a gclid parameter, gclid= followed by a long code, to the URL (web address) of the page people land on, and a form entry shows it only if something on your site saved it into the form.
A landing page address with a gclid looks something like this (made up for this example):
https://example.com/services/?gclid=EAIaIQobChMI8x2k
If the address already has a question mark in it, the code is added after an & instead.
Auto-tagging is the Google Ads setting that adds the code automatically. As of November 2026, Google's auto-tagging help page says it's on by default for new accounts, so many advertisers have it without ever choosing it. To check your own account, go to Admin > Account settings > Auto-tagging in Google Ads and make sure the box "Tag the URL that people click through from my ad" is ticked.
Seeing the gclid in your browser and seeing it in a form entry mean different things. In the address bar, it only tells you an ad click happened. In a saved form entry, it means your form has a hidden field (a form box the visitor never sees) and something on your site filled that field with the code before the form was sent. Without that hidden field, the code stays in the address bar and never reaches your lead. If you want to keep source details in your website forms, that guide walks through the general process.
Can a gclid tell you which campaign or keyword a lead came from?
You can't tell the campaign or keyword from a gclid by looking at it. It's a code only Google can match to a campaign and the other details of the click, so on its own it tells you the visitor arrived by clicking one of your Google ads (or through a copy of that link), and nothing about which campaign it was.
Google holds the record of each click. The code isn't meant for people to read, and there's no campaign name hidden inside it that you can pick out. Matching it to a campaign happens inside Google's systems.
Treat a gclid as strong evidence of an ad click rather than proof of one. If someone copies the address from their browser and sends it to a colleague, the colleague's visit carries the same gclid.
The two lead records below are made up to show the difference, since we haven't run a live test for this article. Both people clicked a Google ad and asked for a quote. Lead A's form saved only the gclid. Lead B's campaign name comes from UTM tags on the ad link, and its pages viewed come from a tool that kept them while the person browsed and saved them with the form. In "google / cpc", google is the source (the site the visit came from) and cpc (cost per click) is the medium, the usual label for paid ad traffic.
| Field | Lead A | Lead B |
|---|---|---|
| gclid | EAIaIQobChMI8x2k | EAIaIQobChMI4p7w |
| Source / medium | Empty | google / cpc |
| Campaign | Empty | spring_services |
| Pages viewed before the form | Empty | Services > Pricing > Contact |
Lead A tells your sales team the person most likely came from a Google Ads click, and nothing more until someone looks it up in Google. Lead B shows at a glance that the person came from the spring services campaign and read your pricing page before getting in touch.
TrackLeadSource records click IDs such as the gclid alongside the source, medium and campaign of the visit, the source journey (the visits the person made before getting in touch and where each one came from) and the pages they viewed. When the visitor sends the enquiry, it fills your form's hidden fields with all of that, so the readable label and Google's code sit on the same lead in your CRM or sheet.
TrackLeadSource
See the story behind each lead.
Keep source, campaign, and journey context together when a visitor becomes a lead.
What is gclid tracking, and why should I save the gclid with each lead?
Gclid tracking means keeping the gclid from the ad click and storing it with the lead, so that when the lead later becomes a customer you can tell Google Ads which click produced that sale.
Google calls this importing offline conversions, meaning results that happen away from your website, such as a phone call that qualifies a lead. Its guide to offline conversions using GCLID describes the setup: a hidden form field for the gclid on each form, and each gclid stored with the prospect's information. Later, you import what happened offline, such as a qualified lead, against that click, so Google Ads can show what happened after someone clicked your ad.
There's a time limit. As of November 2026, Google's offline conversion import FAQ says it keeps the gclid for 90 days, so a result has to be imported within 90 days of the click. The same offline conversions guide also tells advertisers who haven't used offline imports before to start with a different Google Ads setup, enhanced conversions for leads, which Google describes as easier to set up. Both are set up in your Google Ads account, usually by whoever manages it.
Saving the gclid also pays off without any upload to Google. When each lead carries its readable source and campaign from your UTM tags, and your CRM or sheet holds the sales outcome, you can compare campaigns by the customers they bring as well as by form fills. The gclid's part in that is narrower: it confirms the lead came through a paid click, and it's the key you'll need if you later import results into Google Ads. Here is a made-up quarter for a home services company:
| Campaign | Leads | Became customers |
|---|---|---|
| spring_services | 30 | 3 |
| emergency_repairs | 12 | 5 |
Spring services brings more than twice the enquiries, while emergency repairs brings more customers from fewer than half the leads. Before the next budget review, put each campaign's spend next to the customers it brought. Most tools tell you which channels generate leads. TrackLeadSource helps you understand which channels generate customers. To set up the comparison itself, see how to compare lead quality by source and how to store the source in your CRM.
Matching clicks to sales still leaves judgement calls. Someone who clicked an ad, came back a week later through your newsletter and then asked for a quote touched two channels, and how attribution shares credit is a rule you choose.
Why do some of my Google Ads leads have no gclid?
A Google Ads lead usually arrives without a gclid because auto-tagging is off, or because the code got lost between the landing page and the form through a redirect or a click to another page. It can also go missing when the visitor comes back another way, when browser privacy settings stop the site keeping it, or on some iPhone traffic, where Google sends different codes.
In a 2022 HubSpot community thread, an advertiser reported that about a quarter of their paid Google Search contacts had UTM source and campaign values but no gclid. The common causes, in plain terms:
- Auto-tagging is off. Google Ads adds no code, so there's nothing to save.
- A redirect drops it. A redirect sends visitors from one address to another, and if the new address doesn't carry the code, it's gone. Google's auto-tagging page tells sites that use redirects to make sure the gclid reaches the final landing page, and warns that a small share of websites refuse unknown additions to the address and show an error page.
- The form is on another page. The visitor lands on Services, clicks through to Contact, and the code is no longer in the address. Unless something kept it, the form has nothing to fill in.
- They came back another way. Someone who clicks your ad on Monday and types your address on Friday arrives with no code on Friday.
- Browser privacy settings. Some browsers and privacy settings stop a site remembering anything from one page to the next, so the code is lost when the visitor moves on.
- iPhone traffic. As of November 2026, Google's iOS measurement page says it no longer sends a gclid for iOS 14 traffic from ads in a handful of Google apps. Those clicks can carry gbraid or wbraid instead.
To see how big the gap is for you, open your last 20 Google Ads leads in your CRM or sheet and count how many carry a gclid. If none do, either auto-tagging is off or your forms don't save the code yet. If some do and some don't, the other causes above are the likelier ones.
Keeping the code from the landing page to the form is most of the work when you track lead source for Google Ads enquiries. TrackLeadSource keeps the source details from the visit, including click IDs such as the gclid, while the visitor browses your site and across return visits. When they send the form, it fills your hidden fields. The visitor who landed on Services and filled in the form on Contact can still reach your CRM with their gclid, and the Friday visit can appear as a second step in their source journey.
Setup is a one-time job for whoever manages your website. They add a small piece of code to the site once, add hidden fields to your enquiry forms, and connect those fields to your CRM or spreadsheet, usually with Make.com or Zapier (services that move data between apps). For one form tool in detail, the Gravity Forms guide shows why the values disappear when visitors browse first, and what keeps them until the form is sent.
No method records every visit. A click on a phone followed by an enquiry from a laptop, or a visit that passes nothing about where it came from, still leaves a gap.
Common questions
Google Ads keeps a record of each click and its gclid, but it doesn't tie those clicks to the people who filled in your website forms. Developers can pull the click records, one day at a time and up to 90 days back, from the Google Ads API's click view report. To see which lead had which gclid, look at what your form or CRM saved, because that's the only place the link between the two exists.
Yes, and your forms and CRM can save the UTM tags with each lead while Google uses the gclid. Google's auto-tagging page notes that in Google Analytics 4, auto-tagging takes priority over manual tagging, so GA4 labels those Google Ads visits with Google Ads data even if your UTM tags say something different. That doesn't change what your forms save, and you don't need to do anything about it.
For importing results back into Google Ads, 90 days from the click, which is how long Google keeps it. On your own lead records it lasts as long as you keep it, and after Google's window closes it still shows that the lead most likely came from a click on one of your Google ads.
Google treats a landing page address ending in a gclid as a duplicate of the same page without it, and the usual way to keep that tidy is a canonical tag, a line in the page's code that names the main version. Google's page on consolidating duplicate URLs uses an address ending in ?gclid=ABCD as an example of an address that should point to the main version. Ask whoever manages your site to check your landing pages have a canonical tag, and don't strip the gclid with a redirect, because Google may then fail to track conversions from that click.
They're codes Google Ads uses for some ad clicks on iPhones, in place of the gclid, to fit Apple's privacy rules. Google's page on iOS measurement says it no longer sends the gclid for iOS 14 traffic from ads in a handful of Google apps, and its Analytics help describes gbraid as a privacy-preserving identifier that measures conversions without linking them to individual users. For you, it means some real Google Ads leads from iPhones will arrive with no gclid.
Helping marketers connect website form submissions to their source, campaign, and customer journey.


