Connecting Shopify to Salesforce
Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the Shopify order before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Shopify orders into Salesforce: wholesale and high-value buyers
Send Shopify orders to Salesforce for B2B, wholesale or high-ticket stores where sales follows up. Upsert a Contact or Person Account on an External ID holding the Shopify customer ID, falling back to email, then write the order with its order ID as External ID and first-touch click IDs and UTMs from note attributes.
Pushing every Shopify order into Salesforce CRM makes sense for B2B, wholesale or high-ticket stores where sales follows up, and rarely for a consumer store with thousands of small orders. Check the Shopify App Store and AppExchange for connectors and what they map; many write orders to Salesforce's Order object or to a custom object, and few carry marketing fields by default.
Match the buyer first. Upsert a Contact or Person Account on an External ID holding the Shopify customer ID, falling back to email, so repeat buyers attach to one record instead of creating a duplicate per order. Then write the order with the order ID as its own External ID. Read the click IDs and UTMs from the order's note attributes and write them to custom fields on the first order and the Contact; later orders from the same customer should not overwrite first-touch values.
Decide where revenue lives. If wholesale quotes become Opportunities and Shopify then processes the payment, the Opportunity is the conversion for ad uploads and the Shopify order is fulfilment; recording both as wins counts the deal twice. Refunds from refunds/create should update the Salesforce order status, or reports built on it overstate revenue.
Shopify → Salesforce · what breaks
Why this join usually fails — Shopify → Salesforce
- 01
The Lead or Contact identity 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.
- 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.
- 03
Writes that succeed and change nothing
Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.
- 04
Nothing reconciles afterwards
Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.
Shopify → Salesforce · the fix
What working looks like — Shopify → Salesforce
The Lead or Contact identity on every order
Conversions arriving in Salesforce
The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.
Reconciled against the source
Shopify → Salesforce · architecture
How Shopify and Salesforce actually connect
- 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
Salesforce needs a click to match
Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.
- 3
The identifier is the bridge
The Lead or Contact identity, captured at the visit and carried into the Shopify order.
- 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
Deduplication at the destination
Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.
Shopify → Salesforce · normal or broken
Working vs. broken, side by side — Shopify → Salesforce
Normal, not a fault
The Lead or Contact identity present on the order
Sent from the orders/paid webhook
Deduplicated correctly
Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.
Reconciles with the source
Actually broken
The Lead or Contact identity 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
Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.
Nobody has reconciled it
Shopify → Salesforce · diagnose
Diagnostic order — Shopify → Salesforce
- 01
Count orders carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 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.
- 04
Write a test value and open the record in the UI
The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.
- 05
Read the match rate, not the success message
Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.
Shopify → Salesforce · prove
How it gets proven — Shopify → Salesforce
Source of truth
Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.
- The Lead or Contact identity confirmed present on a live order.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- Order totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.
Shopify → Salesforce · free audit
What we check in the free audit
- Count orders carrying the Lead or Contact identity
- Follow one real conversion end to end
- Open a recent paid order and read its note attributes
- Write a test value and open the record in the UI
- 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.
Free30 minutesNo obligation
Shopify → Salesforce · when not to buy
When you don't need this — Shopify → Salesforce
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Lead or Contact identity.
- 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.
- If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.
Shopify → Salesforce · what we deliver
What gets built — Shopify → Salesforce
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 Salesforce
API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.
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.
From $400 · See packages
FAQ
Shopify → Salesforce questions, answered
Usually only for B2B, wholesale or high-value orders where a salesperson acts on them. Consumer stores rarely need it.
Upsert on an External ID holding the Shopify customer ID, with email as a fallback match, rather than inserting a contact per order.
Almost always because the Lead or Contact identity never reached the Shopify order. 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. Measure coverage before debugging the dispatch.
Salesforce resolves on its own record identity — a Lead, a Contact, or an Account — rather than on a click identifier. What you are doing here is attaching marketing context to a record so the pipeline carries it, which means the click identifier arrives as a custom field value rather than as a matching key. The hazard is duplicates: two Leads for one person means two records with half the history each.
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.
Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.
More on Shopify → Salesforce
- Shopify POS → SalesforceConnecting Shopify POS to Salesforce
- Shopify → Marketing CloudConnecting Shopify to Salesforce Marketing Cloud
- Shopify POS → Marketing CloudConnecting Shopify POS to Salesforce Marketing Cloud
RELATED GUIDES
Where Shopify → Salesforce fits in the rest of your tracking
- Checkout Extensibility → SalesforceConnecting Shopify Checkout Extensibility to Salesforce
- OpenCart → SalesforceConnecting OpenCart to Salesforce
- Ecwid → SalesforceConnecting Ecwid to Salesforce
- Shopify → MarketoConnecting Shopify to Marketo
- Shopify → HubSpotConnecting Shopify to HubSpot
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- Squarespace → SalesforceConnecting Squarespace Commerce to Salesforce
- BigCommerce → SalesforceConnecting BigCommerce to Salesforce
Free · 30 min
Get Shopify and Salesforce joined properly
Free30 minutesNo obligation
