Connecting Gravity Forms to HubSpot
Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. HubSpot is where sales works, so a conversion that never reaches it is invisible to the people who decide what a lead was worth. The join between them succeeds or fails on one thing: whether the contact identity — email, or the hubspotutk cookie reaches the Gravity Forms entry before the conversion happens, because HubSpot can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Gravity Forms entries into HubSpot with source attribution
Use Gravity Forms' official HubSpot add-on, but check it sends real form submissions carrying the hubspotutk cookie, not bare contact creates recorded as Offline Sources. Verify gclid, msclkid and li_fat_id hidden fields on a cached anonymous submission and map them to contact properties. Don't also run HubSpot's collected forms; pick one route.
Gravity Forms has an official HubSpot add-on that maps form fields to HubSpot properties. Before building anything custom, check what your version sends: whether submissions arrive as HubSpot form submissions carrying the hubspotutk cookie, or as bare contact creates. Only the first lets HubSpot attach the visitor's earlier page views and keep the original source; the second creates the contact with Offline Sources.
There is a useful asymmetry with caching here. The hubspotutk is a cookie read at submission time, so it survives a cached page in a way that URL-populated hidden fields do not. The gclid, msclkid or li_fat_id you also want on the HubSpot contact still depend on dynamic population or a cookie fallback, so verify those fields on an anonymous submission through the cache, then map them to contact properties for later offline imports.
Gravity Forms often runs alongside HubSpot's collected forms feature (non-HubSpot forms), which also captures WordPress form submissions from the browser. Running both creates two submissions per entry and occasionally two contacts if field mapping differs. Pick one route. And since an entry is a lead, not revenue, the conversion that matters is the deal stage the contact reaches later, which HubSpot can only attribute if the entry created the contact correctly.
Gravity Forms → HubSpot · what breaks
Why this join usually fails — Gravity Forms → HubSpot
- 01
The contact identity — email, or the hubspotutk cookie never reaches Gravity Forms
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
- 02
Dynamic population fails silently under page caching
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
- 03
Duplicate contacts
Two records for one person, each with half the history. Every downstream report is then wrong in a way that looks like a data problem rather than an integration problem.
- 04
Nothing reconciles afterwards
HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.
Gravity Forms → HubSpot · the fix
What working looks like — Gravity Forms → HubSpot
The contact identity — email, or the hubspotutk cookie on every entry
Conversions arriving in HubSpot
The revenue or conversion lands on the contact record and its associated deal, where sales can see it and where HubSpot's own attribution reporting can use it.
Reconciled against the source
Gravity Forms → HubSpot · architecture
How Gravity Forms and HubSpot actually connect
- 1
Gravity Forms holds the truth
The entry lives in your database with every field value attached. You can query it, back it up and reconcile against it without depending on any third party, which is a real advantage over hosted form tools.
- 2
HubSpot needs a click to match
HubSpot needs to resolve the incoming data to an existing contact or create one. Without an email or a hubspotutk it creates duplicates, and duplicate contacts break every report built on top of them.
- 3
The identifier is the bridge
The contact identity — email, or the hubspotutk cookie, captured at the visit and carried into the Gravity Forms entry.
- 4
The event source decides reliability
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
- 5
Deduplication at the destination
HubSpot deduplicates contacts on email address. Events and property updates against the same contact are idempotent by design, but a second contact created for the same person is not detected, and merging them afterwards is manual work.
Gravity Forms → HubSpot · normal or broken
Working vs. broken, side by side — Gravity Forms → HubSpot
Normal, not a fault
The contact identity — email, or the hubspotutk cookie present on the entry
Sent from the gform_after_submission hook
Deduplicated correctly
HubSpot deduplicates contacts on email address. Events and property updates against the same contact are idempotent by design, but a second contact created for the same person is not detected, and merging them afterwards is manual work.
Reconciles with the source
Actually broken
The contact identity — email, or the hubspotutk cookie missing on most records
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
Sent from the browser
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
Counted twice, or not at all
Two records for one person, each with half the history. Every downstream report is then wrong in a way that looks like a data problem rather than an integration problem.
Nobody has reconciled it
Gravity Forms → HubSpot · diagnose
Diagnostic order — Gravity Forms → HubSpot
- 01
Count entrys carrying the contact identity — email, or the hubspotutk cookie
- 02
Follow one real conversion end to end
- 03
Submit a test entry through a cached page
Not through a logged-in admin session, which bypasses the cache. If the hidden field is empty on the cached path and populated on the admin path, caching is your cause.
- 04
Search for the test contact by email after sending
One record or two? Then check whether the properties landed on the contact or only on the form submission — they are different things and only the first is usable.
- 05
Read the match rate, not the success message
HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.
Gravity Forms → HubSpot · prove
How it gets proven — Gravity Forms → HubSpot
Source of truth
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
- The contact identity — email, or the hubspotutk cookie confirmed present on a live entry.
- One contact record confirmed, not two, with the property visible on the contact rather than only on the submission.
- Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.
Gravity Forms → HubSpot · free audit
What we check in the free audit
- Count entrys carrying the contact identity — email, or the hubspotutk cookie
- Follow one real conversion end to end
- Submit a test entry through a cached page
- Search for the test contact by email after sending
- Read the match rate, not the success message
Checked against
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
Free30 minutesNo obligation
Gravity Forms → HubSpot · when not to buy
When you don't need this — Gravity Forms → HubSpot
- Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry the contact identity — email, or the hubspotutk cookie.
- If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
- HubSpot's native form and tracking code already handle the straightforward cases well. This is worth building when the conversion happens somewhere HubSpot's code cannot see.
Gravity Forms → HubSpot · what we deliver
What gets built — Gravity Forms → HubSpot
Identifier capture into Gravity Forms
Hidden field with 'allow field to be populated dynamically' enabled and a parameter name set, plus a cookie fallback via a gform filter so the identifier survives a visitor who browsed several pages before converting.
Event source: the gform_after_submission hook
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
Dispatch to HubSpot
The HubSpot API — contact create-or-update with the properties, or a custom behavioral event where you need the timeline entry rather than a property.
Reversals where they exist
Nothing to reverse, though entries marked spam should be excluded from the send.
Written guarantee
95%+ tracking accuracy
Measured against The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Gravity Forms → HubSpot questions, answered
Only if it sends the hubspotutk cookie with the submission. Check a test contact: if its original source is Offline Sources while the visitor came from an ad, the cookie is not getting through.
Usually both the add-on and HubSpot's own collection of non-HubSpot forms are capturing the same submission. Turn one of them off for that form.
Almost always because the contact identity — email, or the hubspotutk cookie never reached the Gravity Forms entry. The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce. Measure coverage before debugging the dispatch.
HubSpot resolves to a contact by email address, or by the hubspotutk cookie value which ties an anonymous visitor to their eventual contact record. Sending the hubspotutk with a form submission is what lets HubSpot stitch the pre-conversion page views to the contact, which is where the original source attribution comes from.
The gform_after_submission hook. Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.
More on Gravity Forms → HubSpot
- Gravity Forms → Google AdsConnecting Gravity Forms to Google Ads
- Gravity Forms → MetaConnecting Gravity Forms to Meta Conversions API
- Gravity Forms → GA4Connecting Gravity Forms to GA4
RELATED GUIDES
Where Gravity Forms → HubSpot fits in the rest of your tracking
- Cognito Forms → HubSpotConnecting Cognito Forms to HubSpot
- Formstack → HubSpotConnecting Formstack to HubSpot
- Paperform → HubSpotConnecting Paperform to HubSpot
- Gravity Forms → SalesforceConnecting Gravity Forms to Salesforce
- Gravity Forms → 6senseConnecting Gravity Forms to 6sense
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Contact Form 7 → HubSpotConnecting Contact Form 7 to HubSpot
- Jotform → HubSpotConnecting Jotform to HubSpot
Free · 30 min
Get Gravity Forms and HubSpot joined properly
Free30 minutesNo obligation
