Customer Impact

Advertising

How to store the GCLID and pass it to your CRM (without losing offline conversions)

Copy for AI

Offline conversion imports are how you tell Google Ads which leads actually became customers. But that entire chain hinges on one technical detail: the GCLID. If that ID is missing from your leads, you can export the tidiest deal values from your CRM and Google will still refuse them or attach them to nothing. In this article you will learn what the GCLID is, why it is the breaking point of offline conversion tracking, and how to store the GCLID in CRM step by step without losing conversions along the way.

This is not a side issue. If your paid campaigns exist to buy pipeline rather than to collect clicks, then the feedback loop from won deal back to campaign is the most important measurement point you have. The GCLID is the thread that closes that loop.

THE CLOSED LOOP From paid click to campaign insight repeat & accelerate 01 Paid click GCLID in URL 02 Lead form hidden field 03 CRM field fixed, exportable 04 Offline import deal back to Ads The GCLID is the thread that closes the loop.

What exactly is the GCLID?

GCLID stands for Google Click Identifier. It is a unique code that Google appends to the URL every time someone clicks your paid ad. You recognise it as a long parameter behind your landing page URL, something along the lines of ?gclid=Cj0KCQ.... Every click gets its own, unique GCLID.

That code contains no personal data, but it does hold the key to all the campaign data behind that click: which campaign, which ad group, which keyword, which device and which moment. Google keeps that link on its own side. So you do not have to store all the details, only the GCLID itself. If you send it back later with a conversion attached, Google puts the won deal back on the right campaign.

To properly understand where that click comes from, it helps to know how search ads actually work: the GCLID is literally the proof that one specific paid click led to one specific enquiry.

Why offline conversion imports fail without a GCLID

In B2B, the road from click to customer rarely fits into a single session. Someone clicks your ad, fills in a form, and only signs weeks later. That deal is closed in your CRM or in a sales conversation, far outside Google Ads. So Google never sees that revenue on its own.

The offline conversion import solves that: you export your won deals back to Google with the message “this click eventually became a customer worth X euros”. But Google only accepts that import if you supply three things per conversion: the GCLID, the time of the conversion and optionally the value. Without the GCLID, Google has no idea which click to hang that revenue on, and the row is rejected.

This is exactly where most teams come unstuck. They neatly set up conversion tracking on the website, but forget that the GCLID has to be captured the moment the form is submitted. A few weeks later, when the deal closes, that ID is nowhere to be found. The data needed for the import simply no longer exists. That is why storing the GCLID is not an optional extra, but the technical precondition that decides whether your offline conversions can succeed at all.

How do you capture and store the GCLID?

The logic is simple: capture the GCLID the moment the visitor lands on your landing page, and make sure it travels along with the lead form into your CRM. In practice that runs in a few steps.

  1. Read the GCLID from the URL. When someone arrives via an ad, the GCLID sits in the address bar. A small script or your tag management tool reads that parameter as soon as the page loads.
  2. Keep it temporarily in the browser. Store the GCLID in a cookie or in browser storage. That way it survives if the visitor first browses a few other pages before filling in the form.
  3. Write it into a hidden form field. Add a hidden field to your lead form, for example gclid. Fill that field automatically with the stored value. The visitor sees nothing of it, but the moment they submit, the GCLID travels along.
  4. Map the field to a fixed CRM field. Create a separate, fixed field for the GCLID in your CRM, next to email and company name. Not as a loose note or free text field, but as a structured field you can export later.

The pitfall is almost always in steps three and four. A hidden field that accidentally stays empty, or a CRM mapping that truncates the value, produces empty GCLIDs that you only discover when the import fails. The same discipline you apply to UTM parameters applies here: the field has to be filled correctly for every single lead, otherwise it is worthless.

What else do you keep alongside the GCLID?

The GCLID alone is enough to identify the click, but a complete import asks for two extra pieces of data. Capture them right away, because reconstructing them afterwards is hard.

The first is the time of the conversion: the moment the deal was won. Google uses it to place the conversion in the right period and to check whether the GCLID still falls within the permitted lookback window. A GCLID that is too old is no longer accepted by Google, so the faster you import your won deals, the better.

The second is the value of the deal. Only when you send real revenue along can Google learn which campaigns and keywords deliver not just leads, but valuable leads. A campaign that produces plenty of cheap enquiries but never a deal looks fine in your standard report and is in reality a money pit. With deal value in your import, that illusion flips. This is the difference between steering on the volume of Google ads and steering on pipeline.

Capture these two fields in your CRM just as structurally as the GCLID itself. Three clean fields, ready to export, is all a successful import needs.

Test the chain before you go live

The cheapest mistake to prevent is a chain that adds up on paper but passes through empty fields in reality. So always run one real test before you rely on it.

Click a live ad yourself, or manually paste a test value as the GCLID behind your landing page URL. Fill in your own form. Then go to your CRM and check whether the GCLID field on that test lead is genuinely filled, and whether the full value is in there without truncation. A GCLID that is cut off halfway is just as worthless as an empty one.

If that goes well, export that single test lead as an offline conversion and see whether Google accepts it. Only once that complete loop works, from click to accepted import, can you build on it. This belongs in the same routine as tracking down tracking errors elsewhere in your setup: testing thoroughly once saves months of silent data leaks.

Frequently asked questions about storing the GCLID

Does the GCLID contain personal data?

No. The GCLID is a random-looking code that points to campaign data on Google’s side, not to the identity of the visitor. Of course you do link it in your CRM to a lead with contact details, so handle the whole thing properly within your privacy policy, but the ID itself is not personal data.

How long does a GCLID stay valid for import?

Google applies a lookback window within which you may tie a conversion to a GCLID. In B2B with long sales cycles, that is the real risk: a deal that only closes after many months can fall outside that window. So import your won deals regularly instead of once a year.

Does this also work with third-party forms or an external tool?

Yes, as long as that tool can pass a hidden field to your CRM. The core stays the same: read the GCLID from the URL, keep it in the browser, write it into a hidden field and map that field to your CRM. If that hand-off is not possible, that form is unsuitable for offline conversion tracking.

What if some leads have no GCLID?

That is normal: not every lead arrives via a paid click. Organic visitors, direct traffic and referrals have no GCLID. In the import you simply send along only the leads that do have one. The rest you ignore for this purpose.

Ready to tie your deals back to your campaigns?

Storing the GCLID is not a sexy job, but it is the hinge on which your entire paid measurement model turns. Without that ID your reports stop at leads and you never know which campaign euros produced which deals. With that ID you steer your budget on pipeline instead of on click noise.

We help Benelux companies connect their paid campaigns to their CRM and their won deals, so that every euro of media budget can be traced back to revenue. Would you like a google ads specialist to review your GCLID chain and offline conversion setup? Book your free intake

Free website scan

Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.

Where should we send your report?

We only use your details for your scan. No spam, unsubscribe anytime.