Connect Shopify to HubSpot — customers, orders and marketing in sync
Do you sell in Shopify but want to work with your customers in HubSpot? Then customers and orders need to follow automatically, otherwise the lists quickly go stale. With a connection you can segment on purchase history, catch abandoned carts and follow up — without exporting CSV files by hand.
Quick overview
In short: Connecting Shopify to HubSpot means customers and orders from the store automatically land in HubSpot — so you can segment on purchases, run abandoned cart flows, follow up and build a loyalty club, without manual export.
How to get started:
- Decide what you want to achieve: segmentation, abandoned cart, follow-up or loyalty club.
- Map the Shopify customer and order to the HubSpot contact and properties (LTV, most recent purchase, products).
- Build the sync via webhooks, set up workflows in HubSpot and test with real orders.
GDPR: purchase and contact data are personal data — handle consent for marketing, sign a data processing agreement and keep the flow in the EU or self-hosted in Sweden.
Why connect Shopify to HubSpot?
Shopify is good at selling, but weak at working further on the customer relationship over time. HubSpot is the opposite: strong on segmentation, email, flows and follow-up, but knows nothing about what the customer has actually bought unless someone enters it. Without a connection, your valuable purchase history sits locked inside the store.
When Shopify and HubSpot talk to each other, you can segment contacts on real purchase data: who bought most recently, how much they have spent and which products they chose. That makes the marketing relevant instead of generic, and you avoid exporting CSV files every week. We describe the principle behind it in our guide on system integration.
Technically, the connection builds on Shopify sending events (webhooks) when something happens — a new order, a new customer, an abandoned cart — and HubSpot's API receiving contacts and properties. From there, HubSpot's workflows can take over and handle the follow-up automatically.
What gets synced between the systems?
A good connection isn't just about copying email addresses. It's the purchase behaviour that makes HubSpot useful. These are the most common parts to set up:
- Customer → contact: a new Shopify customer creates or updates a contact in HubSpot.
- Order → properties: total purchase value (LTV), number of orders and date of the most recent purchase.
- Products: which products or categories the customer has bought, for segmentation.
- Abandoned cart: an abandoned checkout triggers a reminder flow.
- Subscription and consent: newsletter choices from checkout land correctly in HubSpot.
What you need depends on the goal. If you just want to reach previous customers, customer + most recent purchase is enough, while a real loyalty club with tiers requires purchase value and products to be synced continuously.
Segmentation, abandoned cart and loyalty club
The whole point of the connection is what you do with the data in HubSpot. Here are the most common use cases and what each requires:
| Use case | Data needed | What HubSpot does |
|---|---|---|
| Segmentation | Purchase value, products, most recent purchase | Lists and personalised sends |
| Abandoned cart | Abandoned cart + email | Automatic reminder flow via workflow |
| Follow-up | Order date, product | Post-purchase email, review, repeat purchase |
| Loyalty club | LTV, number of orders | Tiers, VIP segment, rewards |
The beauty is that once the data flows in, HubSpot's workflows can handle most of this without anyone lifting a finger. A customer who passes a certain purchase value is automatically moved to the VIP segment, and an abandoned cart gets a reminder after a few hours.
How the connection works technically
Shopify offers webhooks sent in real time when an event occurs: orders/create, customers/create, checkouts/update and more. These are caught by an integration flow that translates the data and passes it on to HubSpot's API as a contact with the right properties.
In HubSpot you then create workflows that react to the properties — for example "if the most recent purchase is product X, send a related offer". There are ready-made Shopify apps in HubSpot's ecosystem, but they don't always cover Swedish needs around data storage and exactly which fields are synced. A bespoke flow gives you full control over what is transferred and where it runs.
GDPR and marketing
When purchase and contact data flow from Shopify to HubSpot, you are handling personal data, and for marketing there are additional rules on consent. You may not send newsletters to someone who hasn't opted in just because they have bought something. That's why it's important that the consent from checkout follows correctly into HubSpot.
HubSpot largely operates outside Sweden, so the intermediate layer — the integration itself — is worth controlling. Practical advice:
- Only transfer marketing consent where the customer has actually opted in.
- Run the integration flow in the EU or self-hosted in Sweden when the data is sensitive.
- Sign a data processing agreement with the providers in the chain.
- Sync only the fields you need for segmentation and follow-up.
Getting started with the sync
Start with a clear goal rather than syncing everything at once. The most common first step is to get customer and most recent purchase into HubSpot, so you can segment. Once that works, you build on with abandoned cart and loyalty club.
- Choose a goal: segmentation, abandoned cart, follow-up or loyalty club.
- Map the Shopify customer and order to the HubSpot contact and properties.
- Build the sync via webhooks and test with a few real orders.
- Set up workflows in HubSpot and measure the effect.
Want your store and marketing to hang together on their own? See how we think about how to automate the business, or get in touch and we'll look at your Shopify and HubSpot setup together.
Want to see how this looks in practice? Explore our solutions, see case studies and platforms we've built, or get three free suggestions.