Connecting WooCommerce to HubSpot
WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. 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 WooCommerce order 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
WooCommerce to HubSpot: orders as deals without duplicate contacts
Make each WooCommerce order a deal in an ecommerce pipeline, associated to one contact by billing email, avoiding two plugins that both create contacts. Map statuses explicitly: processing or completed to closed won, refunded and cancelled to lost, pending and failed to nothing. Check caching and consent plugins are not blocking HubSpot's tracking code.
HubSpot connects to WooCommerce through WordPress plugins: HubSpot's own WordPress plugin handles forms and the tracking code, and separate sync plugins push customers and orders. Check which ones the store has, because a common setup has two plugins both creating contacts. Each WooCommerce order should become a deal in an ecommerce pipeline, associated to one contact by billing email, with the order total and status.
Original source depends on HubSpot's tracking code running on the store, and WooCommerce's caching, optimization and consent plugins are exactly what breaks it. If a performance plugin delays or strips the HubSpot script, or a consent plugin blocks it, hubspotutk never gets set and contacts created from orders show offline sources. Check a few recent order-created contacts: if most show offline sources while the store buys paid traffic, the script isn't running.
Status mapping is the decision specific to this pair. Map WooCommerce statuses explicitly: processing or completed to closed won (pick one), refunded and cancelled to closed lost or a refund stage, pending payment and failed to nothing. Guest checkout needs care too, since one shopper can buy with two emails across orders and become two contacts that HubSpot won't merge on its own.
WooCommerce → HubSpot · what breaks
Why this join usually fails — WooCommerce → HubSpot
- 01
The contact identity — email, or the hubspotutk cookie never reaches WooCommerce
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
- 02
Caching and optimization plugins eat the tracking
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
- 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.
WooCommerce → HubSpot · the fix
What working looks like — WooCommerce → HubSpot
The contact identity — email, or the hubspotutk cookie on every order
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
WooCommerce → HubSpot · architecture
How WooCommerce and HubSpot actually connect
- 1
WooCommerce holds the truth
You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.
- 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 WooCommerce order.
- 4
The event source decides reliability
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
- 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.
WooCommerce → HubSpot · normal or broken
Working vs. broken, side by side — WooCommerce → HubSpot
Normal, not a fault
The contact identity — email, or the hubspotutk cookie present on the order
Sent from the woocommerce_payment_complete 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
WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.
Sent from the browser
The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.
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
WooCommerce → HubSpot · diagnose
Diagnostic order — WooCommerce → HubSpot
- 01
Count orders carrying the contact identity — email, or the hubspotutk cookie
- 02
Follow one real conversion end to end
- 03
Check order meta on ten recent orders
Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, 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.
WooCommerce → HubSpot · prove
How it gets proven — WooCommerce → HubSpot
Source of truth
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
- The contact identity — email, or the hubspotutk cookie confirmed present on a live order.
- One contact record confirmed, not two, with the property visible on the contact rather than only on the submission.
- Order meta confirmed present on orders placed while full page caching was active.
WooCommerce → HubSpot · free audit
What we check in the free audit
- Count orders carrying the contact identity — email, or the hubspotutk cookie
- Follow one real conversion end to end
- Check order meta on ten recent orders
- Search for the test contact by email after sending
- Read the match rate, not the success message
Checked against
WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.
Free30 minutesNo obligation
WooCommerce → HubSpot · when not to buy
When you don't need this — WooCommerce → HubSpot
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the contact identity — email, or the hubspotutk cookie.
- If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
- 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.
WooCommerce → HubSpot · what we deliver
What gets built — WooCommerce → HubSpot
Identifier capture into WooCommerce
Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.
Event source: the woocommerce_payment_complete hook
Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
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
The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.
Written guarantee
95%+ tracking accuracy
Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
WooCommerce → HubSpot questions, answered
A WooCommerce-to-HubSpot sync plugin or a server-side integration that creates deals from orders by billing email. Make sure only one tool creates contacts.
Usually HubSpot's tracking code is blocked or delayed by a caching, optimization or consent plugin, so no hubspotutk links the visit to the order.
Almost always because the contact identity — email, or the hubspotutk cookie never reached the WooCommerce order. WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently. 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 woocommerce_payment_complete hook. Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.
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 WooCommerce → HubSpot
- WooCommerce Subscriptions → HubSpotConnecting WooCommerce Subscriptions to HubSpot
- Stripe → HubSpotConnecting Stripe to HubSpot
- Shopify → HubSpotConnecting Shopify to HubSpot
RELATED GUIDES
Where WooCommerce → HubSpot fits in the rest of your tracking
- WooCommerce Subscriptions → HubSpotConnecting WooCommerce Subscriptions to HubSpot
- Wix → HubSpotConnecting Wix Stores to HubSpot
- Saleor → HubSpotConnecting Saleor to HubSpot
- WooCommerce → 6senseConnecting WooCommerce to 6sense
- WooCommerce → SalesforceConnecting WooCommerce to Salesforce
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Swell → HubSpotConnecting Swell to HubSpot
- Ecwid → HubSpotConnecting Ecwid to HubSpot
Free · 30 min
Get WooCommerce and HubSpot joined properly
Free30 minutesNo obligation
