Skip to main content
Shopify → HubSpotIntegration guide

Connecting Shopify to HubSpot

Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. 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 Shopify 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

Shopify orders in HubSpot: native sync, deals and original source

HubSpot's Shopify integration already syncs customers, orders as deals, and products, so don't build a duplicate. Its gap is attribution: write the hubspotutk cookie into a cart attribute and, from the orders/paid webhook, submit the order email with it through HubSpot's forms submission API so earlier anonymous visits attach to the contact. Check deal-stage mapping and keep POS orders out.

HubSpot's Shopify integration syncs customers to contacts, orders to deals in an ecommerce pipeline, and products to the product library. For most stores that's the right starting point, and building your own sync on top duplicates it. Check how your portal maps paid, fulfilled, refunded and canceled orders to deal stages, because every revenue report depends on which stage counts.

Where the sync stops is attribution. Original source for a Shopify customer comes from the HubSpot tracking code on your storefront and the hubspotutk cookie, and anonymous visits are only stitched to a contact when the visitor identifies themselves. A shopper who buys without ever submitting a form gets a contact created by the order sync, often with an offline original source, while their earlier sessions stay anonymous. A common fix is to write the hubspotutk into a cart attribute and, from the orders/paid webhook, submit the order email with it through HubSpot's forms submission API so the prior visits attach.

Duplicate contacts are the usual damage: guest checkouts with a typo or an alternate email, and B2B buyers with a work email on a form and a personal email on the order. If POS orders sync in your setup, they carry no web history, so keep them out of original-source reports. Refunds should change the existing deal's amount, not create a negative deal.

Shopify → HubSpot · what breaks

Why this join usually fails — Shopify → HubSpot

  1. 01

    The contact identity — email, or the hubspotutk cookie never reaches Shopify

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  2. 02

    Checkout extensibility hides what you need

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  3. 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.

  4. 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.

Shopify → HubSpot · the fix

What working looks like — Shopify → 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

Shopify → HubSpot · architecture

How Shopify and HubSpot actually connect

  1. 1

    Shopify holds the truth

    The order carries line items, discounts, shipping, tax, currency and the customer. Note which figure you intend to report — total, subtotal, or net of shipping and tax — because most mismatches between Shopify and an ad platform turn out to be two people comparing two different numbers.

  2. 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. 3

    The identifier is the bridge

    The contact identity — email, or the hubspotutk cookie, captured at the visit and carried into the Shopify order.

  4. 4

    The event source decides reliability

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  5. 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.

Shopify → HubSpot · normal or broken

Working vs. broken, side by side — Shopify → HubSpot

Normal, not a fault

  • The contact identity — email, or the hubspotutk cookie present on the order

  • Sent from the orders/paid webhook

  • 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

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  • Sent from the browser

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  • 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

Shopify → HubSpot · diagnose

Diagnostic order — Shopify → HubSpot

  1. 01

    Count orders carrying the contact identity — email, or the hubspotutk cookie

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent paid order and read its note attributes

    If the identifier is not on the order, nothing downstream can attribute it. Check ten orders, not one — partial coverage is the normal failure, not total absence.

  4. 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.

  5. 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.

Shopify → HubSpot · prove

How it gets proven — Shopify → HubSpot

Source of truth

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

  • 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 totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.

Shopify → 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
  • Open a recent paid order and read its note attributes
  • Search for the test contact by email after sending
  • Read the match rate, not the success message

Checked against

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Shopify → HubSpot · when not to buy

When you don't need this — Shopify → HubSpot

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the contact identity — email, or the hubspotutk cookie.
  • Shopify's own native channel integrations already cover simple single-currency stores adequately. If your admin numbers and platform numbers already agree, you do not need this.
  • 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.

Shopify → HubSpot · what we deliver

What gets built — Shopify → HubSpot

  • Identifier capture into Shopify

    Capture the click identifier on the storefront, write it to a cart attribute so it becomes an order note attribute, and read it back server-side from the order. That path survives the checkout domain hop that breaks cookie-based approaches.

  • Event source: the orders/paid webhook

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  • 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

    refunds/create fires with the original order reference, so refunds and cancellations can be reversed at the destination.

Written guarantee

95%+ tracking accuracy

Measured against Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Shopify → HubSpot questions, answered

Yes; HubSpot's Shopify app syncs contacts, products and orders as deals. It doesn't solve attribution by itself, so check that the storefront tracking code and the order email resolve to the same contact.

Free · 30 min

Get Shopify and HubSpot joined properly

Free30 minutesNo obligation