HubSpot form not capturing the GCLID from Google Ads
First check a recent contact who came from an ad: if HubSpot’s Google ad click ID property holds a value, the click ID is already reaching HubSpot without a form field. If it is empty, give the form a field to hold it: create a contact property, add it to the form as a hidden field, and let the landing-page URL fill it.
The finding
The scan shows this as:
Your form has nowhere to store a click ID
no hidden field named gclid, hs_google_click_id, gbraid or wbraid among N form field(s)
N is the number of fields the scan read. The scan checks whether such a field exists, and does not test whether a click ID reaches the field when a real ad click lands on the page.
Confirm it on your own setup
- In Google Ads, open Admin, then Account settings, then the Auto-tagging section, and check that “Tag the URL that people click through from my ad” is ticked. Auto-tagging is what adds the GCLID to the landing-page URL (Google Ads Help: About auto-tagging).
- If the page uses a HubSpot form, open Marketing, then Forms, open the form in the form editor and look for a field marked hidden that is connected to a click-ID property (HubSpot: Pass contact property values with hidden form fields).
- If the page uses a form from another tool, open that form in the tool where you built it and look for the same hidden field. HubSpot’s documentation does not cover other form builders.
HubSpot also has a default contact property, Google ad click ID, which it describes as “automatically set by HubSpot based on a Google Click identifier (GCLID) provided by Google Ads”, provided the HubSpot tracking code fires on the page and the visitor is tied to a contact, for example through a form with tracking enabled (HubSpot’s default contact properties). That path needs no form field, and the scan does not see it.
The setups below leave the same evidence on the page, and the scan cannot tell them apart. Work through the one that matches your form.
The HubSpot form has no click-ID field
A HubSpot form field always stores into a contact property, so the property comes first.
- Create a contact property for the click ID: open Settings, go to Properties, choose Contact properties, click Create property, enter a label such as gclid, choose a single-line text field type and click Create property (HubSpot: Create and edit properties).
- Note the property’s internal name. A query-string parameter fills a form field, hidden fields included, when the parameter name matches the property’s internal name, so the property that should receive
?gclid=needs the internal name gclid (HubSpot: Auto-populate form fields through a query string). - In Marketing, then Forms, open the form, click the + add icon in the top left of the form editor, drag a field onto the form and connect it to the property from step 1 (HubSpot: Create and edit forms).
- Click the field’s edit icon and turn on the Hidden field switch. A field set as required cannot be hidden (HubSpot: Pass contact property values with hidden form fields).
- Click Review and update, then Update, to publish the form (HubSpot: Create and edit forms).
HubSpot’s query-string article restricts only its personalization-token method to HubSpot-hosted pages. It says nothing either way about a static parameter such as gclid on a HubSpot form embedded in another site, so test it after the change.
If you rely on HubSpot’s own Google ad click ID property instead, check that the HubSpot tracking code is on the landing page: Settings, then Tracking & Analytics, then Tracking code. HubSpot adds it automatically to its own landing, website and blog pages (HubSpot: Install the HubSpot tracking code).
The form is not a HubSpot form
- Add a hidden form field for the GCLID to every page with a form that ad clicks can reach (Google Ads Help: Set up offline conversions using Google Click ID).
- Add the script from the same Google page, which reads the GCLID from the URL, keeps it in a cookie or local storage, and writes it into the hidden field.
- Make sure the system that receives the form stores the GCLID with the lead, as the same Google page describes.
- Get the value into HubSpot. HubSpot’s non-HubSpot forms tool “does not collect information from any hidden fields” (HubSpot: Use non-HubSpot forms), so the hidden field has to reach HubSpot through your form tool’s own HubSpot integration. No HubSpot page covers that step for every form tool; check your form tool’s documentation.
Clicks that carry gbraid or wbraid
Not every paid click carries a GCLID. On iOS 14 and later, Google does not append gclid to some ad clicks and uses wbraid for web conversions and gbraid for app conversions instead (Google Ads Help: Updates to iOS 14 campaign measurement). A field built only for gclid stays empty on those clicks. HubSpot describes its Google ad click ID property only in terms of the GCLID. The scan accepts a hidden field named gbraid or wbraid as a place to store a click ID.
Click IDs no site change recovers
Some visitors use browsers or settings that remove the click ID from the URL, or block tracking scripts, before any request reaches your site. Nobody set this up wrong, and no change to the page or the form brings those click IDs back. A scan from our browser cannot see it, because it depends on the visitor’s browser.
Check it again
After you make the change, scan the page again to see whether this finding is still there.
Free, no account. Shows whether the finding is still there.