Lost click IDs: where gclids go missing and how to check
A Google Ads conversion without its click ID is still a sale, but Google Ads cannot tell which ad earned it. This article walks the route from ad click to conversion and stops at each place where the gclid can fall off. Each place comes with a check and a fix.
Part of the Google Ads measurement series. The basics, what the click IDs are and how the Conversion Linker stores them, are in the Conversion Linker and the click IDs.
The route a click ID has to survive
Four things have to go right, in this order:
- Google adds the click ID to the ad's final URL. That needs auto-tagging.
- The click ID is still in the URL when your page, and the tags on it, load.
- A tag is allowed to store it in a first-party cookie.
- That cookie still exists, in the same browser and on the same domain, when the conversion happens.
Every loss below breaks one of those four. Start with the test that covers the first two.
The two-minute test
Google's own check needs no ad click. Take the final URL of an ad, add ?gclid=TeSter-123 (use & instead of ? when the URL already has a question mark, and put it before any #), and open it in a normal browser window with the developer tools on the Network tab.
- The address bar. After the page has loaded, the parameter should still be there, spelled exactly the same, capitals included.
- The cookie. Accept the consent banner, then look under Application › Cookies for
_gcl_aw. It should containTeSter-123.
Use the final URL exactly as it is in the ad, with the same https, www and trailing slash: the differences are where redirects hide. Repeat it for each type of landing page.
1 · Redirects that drop the parameter
The most common cause. The ad points at http://acme.nl/sale, the server answers with a redirect to https://www.acme.nl/sale/, and the rule that does it rebuilds the address without the query string. The click ID is gone before any tag has run. Google's requirement is plain: a redirect, and any click tracker in between, has to pass the GCLID on to the landing page. The same goes for gbraid, wbraid and the gad_ parameters.
Check. In the Network tab, look at the first requests of the test. A status of 301 or 302 is a redirect; its Location response header shows where the browser was sent. A redirect can have several legs; follow them one by one.
Related faults that the same test reveals:
- Changed case. A rule that forces URLs to lower case turns the click ID into a different, invalid one.
- Cut off. A gclid can be up to 100 characters long. A database column or redirect rule with a shorter limit truncates it.
Fix. Use the final address as the ad's final URL, so no redirect is needed, and change the redirect rules so they keep the query string. With parallel tracking, which Google makes mandatory for most campaign types, the visitor goes straight from the ad to your final URL, so the redirects that matter are your own.
2 · The consent banner
With Consent Mode, the Conversion Linker stores nothing while ad_storage is denied. That is intended. The loss is in what happens around the banner.
- The banner reloads or redirects. Some consent setups reload the page after the choice, or send first-time visitors through a consent page. If that reload goes to the clean URL, the visitor has accepted and the click ID is no longer there to store.
- Consent comes on page two. The visitor ignores the banner, clicks through to a product, and accepts there. The click ID was only in the URL of page one.
Check. Open the test URL in a private window. Wait, then accept the banner. The _gcl_aw cookie should appear without you loading another page, and the address bar should still show the parameter. Then repeat it, clicking to a second page before accepting.
Fix. For the second case Google has a setting: URL passthrough (url_passthrough) appends the ad click information to the links of your own site while cookies are not allowed, so it is still in the URL when consent arrives. It works within one domain and only if your own redirects keep the parameters. For the first case the consent setup itself has to change: no reload to a stripped URL. See Consent Mode v2 in Tag Manager.
3 · A second domain, a booking tool, a payment page
The cookie belongs to the domain that set it. A checkout, booking engine or ticket shop on another domain starts with empty hands unless the click information is handed over in the link. That hand-over is the Conversion Linker's cross-domain option, which adds a _gl parameter to links to the other domain. It gets lost when the other domain is not in the list, when that domain redirects and drops _gl, or when the visitor gets there through a form or scripted button that is not decorated. Google also says the parameter expires after two minutes.
Payment pages are a different case. A visitor who pays at a payment provider and comes back to your thank-you page still has your cookie. The conversion is lost when they do not come back in the same browser. A banking app that opens the return link in another browser is the usual example, as is a customer who closes the tab once the payment is confirmed. Then the conversion tag fires in a browser without the cookie, or does not fire at all.
Check. Click through to the other domain and look for _gl= in the address bar, then for the _gcl_ cookies on that domain. For payments, compare a week of paid orders in the shop with the purchases your tag sent. A gap that is larger for one payment method points at the return step.
Fix. The linker settings are in the Conversion Linker article and, more broadly, in cross-domain tracking. For customers who never return, the answers are enhanced conversions and offline conversions sent from the order system.
4 · In-app browsers
An ad tapped inside a social or mail app often opens in that app's own built-in browser. The click ID arrives and the cookie is written, but in a storage that belongs to the app. If they come back later through Safari or Chrome, they come back without the cookie. No tag setting changes that.
Check. Segment your landing page sessions by browser. In-app browsers show up under their own names. A high share of them next to a low conversion rate is the pattern.
Fix. Make the first visit count, with a short route to the conversion. A known email address is what lets enhanced conversions connect a later purchase to the earlier click.
5 · Safari: stripped parameters and short cookies
Safari takes away click IDs in two ways, and they are easy to confuse.
The first is Link Tracking Protection. Since Safari 17 it is on in Private Browsing, and a setting under Safari's advanced options extends it to all browsing. Apple describes it as removing query parameters that identify an individual click or user, while parameters that only describe a campaign are left alone. A gclid is of the first kind.
The second is cookie lifetime. Google's _gcl_ cookies ask for 90 days. Safari limits cookies written by scripts, and cookies set by a server it does not consider part of your site, to seven days. The mechanics are in cookie lifetime on Safari and the Safari cookie cap.
Check. Run the two-minute test in a Safari private window: the parameter is removed from the address bar. For lifetime, look at the expiry date of _gcl_aw in Safari's web inspector.
Fix. Neither can be solved in the web container, because both happen before or outside your tags. They need a second copy of the click ID under a name Safari does not remove, and cookies set from your own site. That is what the last section is about.
6 and 7 · No click ID was ever sent
Two cases look like a loss and are not.
Auto-tagging is off. Then there is nothing to lose. Check Admin › Account settings › Auto-tagging in Google Ads. With conversions tracked from a manager account, Google requires it in every child account.
The click came from iOS without a gclid. For part of the traffic from Google's own apps on iOS 14 and later, Google sends wbraid or gbraid in place of the gclid. Those conversions are still measured, in aggregate, but they are missing from any system that only stores the gclid, such as a hidden form field. Store all three. The difference between them is explained in the Conversion Linker article.
When you run this through a server container
A server container does not see the landing page URL before the browser does. So redirects, a reloading consent banner, an undecorated link to another domain and an in-app browser lose click IDs in exactly the same way, and every check in this article still applies. Consent does not change either.
What does change is the Safari part. A server container on your own domain can set the advertising cookies in its response instead of leaving that to a script, and it sees every request before your tags do, which makes it the place where a missing click ID can be put back.
On Measurebase that is two power-ups. Click ID Restorer restores a gclid that Safari removed, from a backup parameter you add as a Final URL suffix in Google Ads, and Cookie Keeper with Same-Origin Tracking keeps the cookie for its full lifetime on Safari. Once Google Ads is connected, the Health tab of a domain shows how many Google Ads clicks reached your tagging server with their click ID, so you can see how large the problem is before and after a fix.
Frequently asked questions
Why are my Google Ads conversions missing a gclid?
Most often because a redirect on the landing page drops the query string. Other causes are a consent banner that reloads the page, a checkout on another domain, a visit that started in an in-app browser, and Safari, which removes click IDs in Private Browsing and shortens cookie lifetime.
How do I test whether my site keeps the gclid?
Open an ad's final URL with ?gclid=TeSter-123 added. After loading, the parameter should still be in the address bar in the same upper and lower case, and after accepting the consent banner the _gcl_aw cookie should hold the same value.
Does Safari remove the gclid?
In Private Browsing, yes: Safari's Link Tracking Protection removes parameters that identify a single click before the page loads. In normal browsing the parameter arrives, but the cookie that stores it is often limited to seven days.
Can I get a lost gclid back afterwards?
No. A click ID that never reached your site or your systems cannot be looked up later. What you can do is prevent the loss, send a second copy under another parameter name, and add customer data to conversions so Google can match them without a click ID.