Capture the GCLID in Contact Form 7 and send it to Google Ads
Google Ads shows clicks and impressions, but not by itself how many of those clicks became leads or customers. Capturing the Google Click ID on every Contact Form 7 submission closes that gap: the ID travels with the lead into your CRM, and can later be returned to Google Ads as an offline conversion so campaign reporting reflects downstream results.
Three steps to capture the GCLID in Contact Form 7
The workflow has three parts. First, place a small site snippet so click data can be collected. Second, add a hidden field named GCLID to each Contact Form 7 form. Third, let the capture tool fill that field automatically when a visitor submits, so the value is stored alongside the name, email and other details they entered. From there, a Contact Form 7 CRM plugin or an integration tool such as Zapier can forward the submission — including the GCLID — to systems such as Salesforce, Pipedrive or HubSpot.
Install the snippet and create the hidden field
On WordPress, the snippet can go in a theme header area, be added with a plugin such as Insert Header and Footer Code, or be loaded through Google Tag Manager. The hidden field is the key form-side change: without it, there is nowhere for the stored click ID to be written at submission time.
Why browser storage beats reading the URL at submit time
This is the distinction that matters most. Methods that read the GCLID from the URL only at submission fail whenever a visitor browses first — for example, landing from an ad, reading several pages, then reaching the contact page after the parameter has left the address bar. Storing the value in the browser on arrival preserves the original click ID across page views and return visits, so it is still available when the form is finally completed.
Pre-launch checklist
Checklist before you rely on the data: the snippet loads on every page where forms appear; every relevant form has the hidden GCLID field; a test submission from a Google Ads landing page arrives in the CRM with a populated GCLID; and the same field is mapped correctly in any Zapier or CRM integration. Test before increasing ad spend, so missing values are caught while volumes are still low.
Set up the offline conversion in Google Ads
In Google Ads, open Goals, then Conversions, create a new conversion and choose Offline Conversion. When asked for a data source, select Add data source later. Then choose the milestone that should count as a conversion. Waiting until a deal is won is the strictest option, but it produces fewer signals; using an earlier milestone such as deal creation gives the bidding system more data, which matters because strategies such as Maximise Conversions, Maximise Conversion Value and Target CPA tend to perform best with more than 50 conversions a month.
Return the GCLID with Zapier
Create a Zap whose trigger matches the chosen milestone — for example, a new deal being created. Set Google Ads as the action and Send Offline Conversion as the event, then map the stored GCLID from the CRM to the matching field. Once that mapping is live, each qualifying CRM event returns its click ID to Google Ads, linking the offline outcome back to the original ad click.
Capture UTM and organic attribution too
Beyond the click ID, the same setup can carry UTM and channel information. For a paid-search visit, a submission might include Channel: Paid Search, Channel Drilldown 1: Google, Channel Drilldown 2: the campaign name, Channel Drilldown 3: the targeted keyword, and Channel Drilldown 4: the ad clicked. For an organic visit, it might instead include Channel: Organic Search, the search engine used, and the keyword searched for when available. Having those fields in the CRM lets you report on SEO, social and referral lead generation alongside paid campaigns, rather than treating Google Ads as the only measurable source.
| Visit type | Fields that can travel with the submission | What it lets you report |
|---|---|---|
| Paid search | GCLID; Channel: Paid Search; drilldowns for Google, campaign, keyword and ad | Which Google Ads campaigns, keywords and ads produced leads and customers |
| Organic search | Channel: Organic Search; search engine; keyword when available | How SEO and other organic channels contribute to leads and customers |
Example values are illustrative, based on the accounting-firm example in the source material.
Frequently asked questions
Does the GCLID have to still be in the URL when the form is submitted?
No. If the click ID is stored in the browser when the visitor first arrives, it can still be written into the form when they submit later, even after browsing other pages or returning in a later session.
Should an offline conversion be sent when a deal is won or when it is created?
Decide which sales milestone should count before building the automation. A later, won-deal milestone gives cleaner revenue attribution, while an earlier milestone such as a newly created deal provides more frequent signals. The source guidance notes that automated bidding strategies tend to work best with more than 50 conversions per month, so low-volume businesses may prefer the earlier event.
Can the form also capture UTM and organic attribution data?
Yes. The same capture approach can also pass UTM and channel details for paid visits, and attribution details for organic search, social, referral and direct visits, so reports can compare sources beyond Google Ads.