Connecting Shopify to Meta Conversions API
Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. Meta's pixel loses a large share of conversions to Safari, ad blockers and iOS, and the Conversions API exists because of it. The join between them succeeds or fails on one thing: whether the fbc and fbp values reaches the Shopify order before the conversion happens, because Meta can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Shopify to Meta CAPI: the Facebook app, or your own server events
Shopify's Facebook & Instagram app can send Conversions API events, and a second sender with its own event_ids double counts. To build your own, turn off the app's server events, write an event_id, fbc and fbp to a cart attribute, and use that event_id on both the pixel Purchase and a server Purchase from orders/paid with hashed email and phone.
Shopify's Facebook & Instagram app already sends Conversions API events when its data sharing is set to the highest level, and for a single-currency, online-only store that may be all you need. Trouble starts when a second CAPI sender is added on top, such as a server GTM container or a tracking app, with its own event_ids: Meta can't pair them with the app's events, and purchases are counted twice.
If you build your own, turn the app's server events off and own both halves. Generate the event_id on the storefront, write it to a cart attribute with fbc and fbp, use it on the pixel Purchase, and send the server Purchase from orders/paid with the same event_id, hashed email and phone from the order, and the order total as value. orders/paid also covers orders created in the admin, which the pixel never sees.
Set action_source by where the order came from: website for online orders, physical_store for POS sales, so in-person sales aren't reported as web conversions. Meta rejects website events with an event_time more than seven days old, so a draft order paid long after it was created should be stamped with the paid time, not the creation time.
Shopify → Meta · what breaks
Why this join usually fails — Shopify → Meta
- 01
The fbc and fbp values 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
Double counting from broken deduplication
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
- 04
Nothing reconciles afterwards
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Shopify → Meta · the fix
What working looks like — Shopify → Meta
The fbc and fbp values on every order
Conversions arriving in Meta
Events appear in Events Manager with an Event Match Quality score, deduplicated against the pixel, and become usable for optimization and attribution.
Reconciled against the source
Shopify → Meta · architecture
How Shopify and Meta 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
Meta Conversions API needs a click to match
Meta matches server events to people using whatever identifiers you send, hashed with SHA-256 where required. There is no single mandatory key, which is why quality varies so much between implementations — a poorly matched event is accepted, reported, and worth much less than it appears.
- 3
The identifier is the bridge
The fbc and fbp values, 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
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Shopify → Meta · normal or broken
Working vs. broken, side by side — Shopify → Meta
Normal, not a fault
The fbc and fbp values present on the order
Sent from the orders/paid webhook
Deduplicated correctly
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Reconciles with the source
Actually broken
The fbc and fbp values 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
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
Nobody has reconciled it
Shopify → Meta · diagnose
Diagnostic order — Shopify → Meta
- 01
Count orders carrying the fbc and fbp values
- 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
Read Event Match Quality and the deduplication indicator
In Events Manager, open the event and check both. A low match quality means weak identifiers; a missing deduplication indicator means your event_id pairing is broken.
- 05
Read the match rate, not the success message
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Shopify → Meta · prove
How it gets proven — Shopify → Meta
Source of truth
Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.
- The fbc and fbp values confirmed present on a live order.
- Deduplication confirmed in Events Manager on a real purchase, with the browser and server events visibly paired rather than counted twice.
- Order totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.
Shopify → Meta · free audit
What we check in the free audit
- Count orders carrying the fbc and fbp values
- Follow one real conversion end to end
- Open a recent paid order and read its note attributes
- Read Event Match Quality and the deduplication indicator
- 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 → Meta · when not to buy
When you don't need this — Shopify → Meta
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the fbc and fbp values.
- 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 you are not running Meta ads at meaningful spend, the Conversions API is effort without payoff. It earns its cost when the optimization signal is worth improving.
Shopify → Meta · what we deliver
What gets built — Shopify → Meta
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 Meta
Server-side events to the Conversions API with the event_id matched to the pixel, action_source set correctly, and customer data hashed before it leaves your infrastructure.
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 → Meta questions, answered
Not if its highest data-sharing level is on and Meta purchases reconcile with Shopify orders. Add your own only to replace the app's server events, not alongside them.
Usually two server senders with different event_ids, or a pixel and server event that don't share one. Meta only deduplicates on a matching event_name and event_id.
Almost always because the fbc and fbp values 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.
Two things. The _fbc cookie, derived from the fbclid parameter on the landing URL in the format fb.1.<timestamp>.<fbclid>, is the click identifier. The _fbp cookie is the browser identifier. Beyond those, Meta matches on hashed customer information — email, phone, name, city, country — and every additional field raises the Event Match Quality score. Unlike Google, Meta does not need a click ID at all if the customer data is good, but match quality drops noticeably without it.
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.
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
More on Shopify → Meta
- Shopify POS → MetaConnecting Shopify POS to Meta Conversions API
- Checkout Extensibility → MetaConnecting Shopify Checkout Extensibility to Meta Conversions API
- Meta purchases don't match ShopifyWhy don't my Meta purchases match Shopify?
RELATED GUIDES
Where Shopify → Meta fits in the rest of your tracking
- Meta · Jewelry ecommerceMeta Ads conversion tracking for jewelry ecommerce brands
- Meta · FashionMeta Ads conversion tracking for fashion brands
- Meta × Ecommerce OrdersHow to reconcile Meta Ads against your store's order table
- Meta · Add to cart → purchaseHow to track add to cart to purchase for Meta Ads
- Ecwid → MetaConnecting Ecwid to Meta Conversions API
- Shopify → Amazon AdsConnecting Shopify to Amazon Ads
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Medusa → MetaConnecting Medusa to Meta Conversions API
Free · 30 min
Get Shopify and Meta joined properly
Free30 minutesNo obligation
