Skip to content

Capture the GCLID in WPForms and send it to Google Ads

Google Ads shows clicks, but not automatically the leads or customers behind them. Capturing the Google Click ID (GCLID) on each WPForms submission links a form entry back to the ad click, so the value can be stored in a CRM and returned to Google Ads as an offline conversion.

Why the GCLID matters

Default Google Ads reporting focuses on impressions and clicks. Without extra setup it does not show how many of those clicks became leads or customers. The GCLID is the click-level identifier that closes that gap: when it travels with the form submission, the resulting lead can be matched back to the originating ad click.

Three-step capture workflow

  1. Install the attribution code on the site. On WordPress this can be added through a theme header area, a header/footer plugin, or Google Tag Manager. 2. Add a hidden field named GCLID to the WPForms form. 3. When a visitor arrives from a Google Ads click, the tool reads the GCLID from the landing URL and stores it in the browser. 4. At submission, the stored value is written into the hidden field and captured alongside name, email and other entries. 5. Forward the submission to a CRM or other tool using WPForms integrations or an integration platform such as Zapier.

Why browser storage beats reading the URL at submit

Reading the URL only at submit time fails for normal browsing: a visitor may land on the homepage, view other pages, and only later reach the contact form, by which time the GCLID is no longer in the URL. Browser storage solves this by keeping the original click identifier across pages and return visits until a form is completed.

Return the GCLID as an offline conversion

In Google Ads, go to Goals then Conversions, create a new conversion, choose Offline Conversion, and select Add data source later. Then decide which milestone counts: a closed deal gives the strongest signal but may be too infrequent, while an earlier event such as deal creation gives bidding strategies more data. In Zapier, trigger on that milestone, choose Google Ads Send Offline Conversion as the action, and map the GCLID stored in the CRM to the matching field. Test the flow before increasing ad spend.

What else travels with the submission

Beyond the click ID, attribution data can include UTM parameters and channel breakdowns for paid visits, and channel details for organic search, social, referral and direct visits. For example, a paid visit may carry channel, source, campaign, keyword and ad breakdowns, while an organic visit may carry channel, source, referring domain and search term where available. Stored with the lead, these fields make it possible to compare campaign performance and organic efforts in the CRM.

GCLID capture checklist
CheckWhat to confirm
Hidden fieldA hidden field named GCLID exists on every WPForms form that must capture it
Browser storageThe GCLID is stored on the landing visit, not only read from the URL at submit time
CRM mappingThe GCLID field maps to the correct CRM field on submission
Offline conversionA Google Ads offline conversion exists and the integration maps the stored GCLID to it
Milestone choiceThe reported event is frequent enough for bidding, or closed deals are frequent enough

Use as a pre-launch checklist; confirm each item in your own account before spending.

Frequently asked questions

Why does a GCLID disappear before the form is submitted?

No. If the identifier is only read from the URL at submission time, it will be missing after the visitor moves to another page. Storing it in the browser on the landing visit preserves it for later forms.

What is the order for sending a stored GCLID back to Google Ads?

Create the offline conversion in Google Ads first, choose the sales milestone to report, then use an integration tool to trigger on that milestone and map the stored GCLID to the Google Ads offline conversion action.

Can the same setup capture more than the GCLID?

Yes. The same stored attribution can include UTM and channel details for paid visits, and channel details for organic search, social, referral and direct visits, so reporting is not limited to paid clicks.