Connecting Contact Form 7 to HubSpot
Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. 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 Contact Form 7 submission 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
Contact Form 7 to HubSpot: Forms API with hutk, not a bare contact
Post Contact Form 7 submissions server-side from wpcf7_before_send_mail to HubSpot's Forms submission API, passing the hubspotutk cookie as hutk with the page URL, so original source and page history attach. Creating contacts through the CRM contacts API instead shows offline sources. Check the HubSpot plugin's collected forms isn't already capturing them, and filter spam first.
The cleanest route for a Contact Form 7 submission into HubSpot is a server-side post from the wpcf7_before_send_mail hook to HubSpot's Forms submission API, with the hubspotutk cookie value passed as hutk in the submission context, plus the page URL. That pairing is what lets HubSpot attach the visitor's earlier page views to the new contact and set original source from the first visit.
The common mistake is creating the contact through the CRM contacts API instead. The contact appears, the email is right, and original source typically reads as an offline source, because the record arrived with no browser history attached. A WordPress site where nearly every lead shows offline sources in HubSpot usually has exactly this cause.
Check the HubSpot WordPress plugin first: its collected-forms feature can capture some non-HubSpot forms, so confirm whether it already picks up your Contact Form 7 forms before adding a second path, or every lead arrives as two submissions. Since Contact Form 7 stores nothing, HubSpot becomes your submission record by default. That is acceptable, but keep the spam check before the post, because spam that reaches HubSpot becomes contacts sales has to clean up.
Contact Form 7 → HubSpot · what breaks
Why this join usually fails — Contact Form 7 → HubSpot
- 01
The contact identity — email, or the hubspotutk cookie never reaches Contact Form 7
There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.
- 02
AJAX submission means no page load to hook
Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.
- 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.
Contact Form 7 → HubSpot · the fix
What working looks like — Contact Form 7 → HubSpot
The contact identity — email, or the hubspotutk cookie on every submission
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
Contact Form 7 → HubSpot · architecture
How Contact Form 7 and HubSpot actually connect
- 1
Contact Form 7 holds the truth
Out of the box Contact Form 7 emails the submission and keeps no record. Before any attribution work is meaningful, submissions have to be stored somewhere queryable. That is step one and it is not optional.
- 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 Contact Form 7 submission.
- 4
The event source decides reliability
Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.
- 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.
Contact Form 7 → HubSpot · normal or broken
Working vs. broken, side by side — Contact Form 7 → HubSpot
Normal, not a fault
The contact identity — email, or the hubspotutk cookie present on the submission
Sent from the wpcf7_mail_sent 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
There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.
Sent from the browser
Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.
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
Contact Form 7 → HubSpot · diagnose
Diagnostic order — Contact Form 7 → HubSpot
- 01
Count submissions carrying the contact identity — email, or the hubspotutk cookie
- 02
Follow one real conversion end to end
- 03
Confirm submissions are being stored at all
If the only record is an email inbox, there is nothing to reconcile and no way to prove any number. Fix storage before touching attribution.
- 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.
Contact Form 7 → HubSpot · prove
How it gets proven — Contact Form 7 → HubSpot
Source of truth
Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.
- The contact identity — email, or the hubspotutk cookie confirmed present on a live submission.
- One contact record confirmed, not two, with the property visible on the contact rather than only on the submission.
- Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.
Contact Form 7 → HubSpot · free audit
What we check in the free audit
- Count submissions carrying the contact identity — email, or the hubspotutk cookie
- Follow one real conversion end to end
- Confirm submissions are being stored at all
- Search for the test contact by email after sending
- Read the match rate, not the success message
Checked against
Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.
Free30 minutesNo obligation
Contact Form 7 → HubSpot · when not to buy
When you don't need this — Contact Form 7 → HubSpot
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the contact identity — email, or the hubspotutk cookie.
- If you are on Contact Form 7 and serious about attribution, moving to a form plugin that stores entries is often cheaper than working around the one that does not. We will say so rather than bill for the workaround.
- 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.
Contact Form 7 → HubSpot · what we deliver
What gets built — Contact Form 7 → HubSpot
Identifier capture into Contact Form 7
Hidden field populated from a first-party cookie, plus a storage layer so the submission and its identifier survive past the email. The wpcf7_before_send_mail hook is where both happen.
Event source: the wpcf7_mail_sent hook
Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.
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. Spam filtering before the send is the equivalent concern.
Written guarantee
95%+ tracking accuracy
Measured against Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Contact Form 7 → HubSpot questions, answered
Post them server-side to HubSpot's Forms API from a Contact Form 7 hook, including the hubspotutk cookie and page URL, or confirm whether the HubSpot WordPress plugin's collected forms already captures them. Do not run both.
They were most likely created through the contacts API without the hubspotutk cookie, so HubSpot had no page-view history to attribute. Submit through the Forms API with hutk instead.
Almost always because the contact identity — email, or the hubspotutk cookie never reached the Contact Form 7 submission. There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires. 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 wpcf7_mail_sent hook. Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.
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 Contact Form 7 → HubSpot
- Contact Form 7 → GA4Connecting Contact Form 7 to GA4
- Contact Form 7 → Google AdsConnecting Contact Form 7 to Google Ads
- Contact Form 7 → MetaConnecting Contact Form 7 to Meta Conversions API
RELATED GUIDES
Where Contact Form 7 → HubSpot fits in the rest of your tracking
- Fluent Forms → HubSpotConnecting Fluent Forms to HubSpot
- Typeform → HubSpotConnecting Typeform to HubSpot
- Formstack → HubSpotConnecting Formstack to HubSpot
- Contact Form 7 → SalesforceConnecting Contact Form 7 to Salesforce
- Contact Form 7 → 6senseConnecting Contact Form 7 to 6sense
- Law firmsConversion tracking for law firms, without sending case details anywhere
- WPForms → HubSpotConnecting WPForms to HubSpot
- Tally → HubSpotConnecting Tally to HubSpot
Free · 30 min
Get Contact Form 7 and HubSpot joined properly
Free30 minutesNo obligation
