Monitor your first website free, no card needed. Explore SENRIKO

GCLID not passing to your CRM? Where the click ID goes missing

A lead arrived, but the GCLID field in your CRM is empty, so the sale cannot be tied back to the ad click that started it. Start from the landing URL and follow one known value all the way to the lead record. That finds the step where the click ID disappears.

The path of an ad click ID from the landing URL to a CRM field
Contents
  1. Why store the GCLID with the lead?
  2. Where does the click ID go missing?
  3. Two cases from our team’s work
  4. How do you trace a lost click ID?
  5. How do you fix a missing GCLID?
  6. What can SENRIKO show you?

Why store the GCLID with the lead?

The GCLID, Google Click Identifier, is the parameter Google Ads adds to your landing URL when auto-tagging is on. Stored with the lead, it lets you import the sale back into Google Ads as an offline conversion and tie it to the click that started it.

None of this happens by default. Your site has to capture the value on landing, keep it, and send it with the form, and your CRM integration has to write it to the right field. Google’s own setup guide uses a hidden form field and keeps the ID in localStorage for 90 days.

An empty GCLID is not always a fault. For some iOS traffic Google uses GBRAID or WBRAID instead, so to diagnose, pick a visit that really arrived with a gclid. Google’s enhanced conversions for leads supplements imported conversions with hashed user-provided data such as an email address; it helps measurement, and it does not replace fixing the path.

Where does the click ID go missing?

Find the first stage where the original value is gone. If the ID is in the form’s request, move on to the server handler and the CRM integration.

StageWhat to checkWhere to look
RedirectThe parameter is on the landing URL but not on the final oneA redirect rule that drops everything after ?
Moving around the siteThe ID is there on landing but gone when the form opensA script that reads only the current URL, with nothing saved earlier
Form requestThe ID was saved but is missing from the data the form sendsHow the field is filled and the request is built
CRMThe ID is in the request but the lead record is emptyThe handler, the field mapping and the CRM’s own rules

Two cases from our team’s work

CaseAnonymous caseGoogle Ads · redirect

An HTTP to HTTPS redirect

What we saw
The Google Ads link carried gclid, but the server answered with a 301 to an address without any parameters.
What we found
In the Network tab of the browser’s developer tools, the Location header, the address of the redirect, held a clean URL. The ID never reached the form.
What was done
Once the server rule was fixed, the query string survived the redirect and the GCLID started reaching the CRM.
  • 301to an address without parameters

CaseAnonymous caseFacebook ads · blog and pricing

From a blog post to the pricing page

What we saw
In the second project the ID being lost was fbclid, Facebook’s click ID, but a GCLID breaks the same way. Visitors arrived from an ad, read a blog post and opened the form on the pricing page.
What we found
The script read the ID from the current URL at the moment of submission, and on the new page the parameter was no longer there. The value only came through when the lead was sent from the first page the visitor landed on.
What was done
We captured the ID on landing and saved it in a cookie, and the form now reads the saved value. This project chose a 30-day lifetime for the cookie.
  • 30 dayscookie lifetime in this project

How do you trace a lost click ID?

Follow one known click ID, the identifier of a single ad click, from the landing URL to the CRM record, along the route a visitor really takes to the form.

  1. Compare the landing and final URLs

    In the Network tab, turn on Preserve log to keep the whole chain, and check the parameter after every redirect. For server redirects, curl shows the same chain from a terminal.

    Terminal
    curl -sIL "https://example.com/?gclid=test" | grep -i "^location"
  2. Open the form the way visitors do

    Reach it through the menu and other pages, and check whether the value is kept in the cookie or the browser storage your site uses, in the Application tab.

  3. Send a test lead

    An empty hidden field before submit is not always an error: some form tools fill it on submit or on the server. Compare the saved ID with the form’s request, then with what your server handler received. Keep the full value and its letter case.

  4. Find the lead in the CRM

    Compare the ID field with what you sent. If the ID was in the request but the record is empty, read the logs of the handler and the integration.

How do you fix a missing GCLID?

A redirect has to forward the query string, which is also Google’s advice on redirects losing click data. In Nginx that means $request_uri rather than $uri; our article on UTM parameters lost after a redirect covers Apache and Cloudflare too.

For a form on a later page, capture the ID on landing, keep it, and fill the hidden field from storage. Choose a lifetime that covers your sales cycle and the import window of the source you upload from: Google’s guide keeps the ID for 90 days, and the second case above chose 30. The same capture carries UTM parameters; our article on empty UTM hidden fields has a short script.

Safari keeps it for seven days

WebKit deletes a site’s script-written storage, localStorage included, after seven days of Safari use without interaction on the site. If leads take longer than that, keep a copy on your server as well.

What can SENRIKO show you?

The free UTM Survival Test helps with the first two rows of the table: redirects and the way to the form. It opens the page in a real browser, follows server, script and meta redirects, and reads form fields and browser storage. A form on another address is opened directly.

If a redirect rule or a script drops the whole query string, gclid goes with the UTM parameters, and the test shows that break. It does not check ad click IDs themselves, fill in or send the form, accept a cookie banner or see your CRM, so a clean UTM result does not prove that your click IDs get through.

SENRIKO’s form monitoring is on every plan, Free included. After you sign up and verify that you own the site, it opens your form in a browser on a schedule and submits it with test data or, in safe mode, stops the request before it reaches your systems. The report shows what was confirmed: the server’s response, the conversion signal, the confirmation email.

Its campaign data check, also on every plan, adds utm_medium=senriko-check and utm_campaign=senriko-attribution to the test visits and shows the step where they are lost before the form is sent.

SENRIKO does not check ad click IDs (gclid, fbclid, msclkid, gbraid, wbraid) and does not track whether a lead reaches your CRM. To find its test leads in your CRM, or filter them out, use the fixed test details and the filter recipes SENRIKO gives you. Matching the click ID on the lead record is the manual check above.

Why is the GCLID missing from my CRM?
Most often a redirect dropped the query string before the page loaded, or the form is on a later page and its script reads the ID only from the current URL. If the ID is in the form’s request but not in the record, look at the CRM integration’s field mapping.
How long should I keep the GCLID?
Long enough to cover your sales cycle and the import window of the source you upload conversions from. Google’s setup guide keeps it for 90 days.
Why do some Google Ads visits arrive without a gclid?
Auto-tagging may be off, or, for some iOS traffic, Google sends gbraid or wbraid instead. Diagnose with a visit that really arrived with a gclid.
Does the UTM Survival Test check gclid?
No. It tests with its own UTM values. It can show a redirect that drops the whole query string, which takes gclid with it, but it does not check ad click IDs, send forms or see your CRM.

Who writes this

SENRIKO team

We build the checks SENRIKO runs on websites and write about the breakages they catch.

How SENRIKO works

Hear about a breakage before your customers do

SENRIKO checks the forms, tags and cookie consent on your site and writes when something stops working. The first site is free.

Start free