Connecting AfterSell to Meta Conversions API
AfterSell works through checkout extensions and post-purchase pages, which puts its offers inside Shopify's sandboxed surfaces where your own scripts cannot reach. 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 AfterSell upsell 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
AfterSell to Meta CAPI: a Purchase value that includes the upsell
Meta dedupes a browser Purchase with the pre-upsell value against a server Purchase, often keeping the smaller one. Send a server-only Purchase to Meta Conversions API from the order webhook after the post-purchase step, with final value, upsell content_ids, fbc and fbp from a cart attribute, and hashed email and phone. Check the app's server-event setting first.
The Facebook & Instagram app's pixel sends Purchase from Shopify's checkout_completed event, which fires on the first AfterSell post-purchase offer page. If you add a server Purchase from the order webhook with the final total and the same event_id, Meta deduplicates the pair and keeps one of them, usually the browser event that arrived first with the smaller pre-upsell value. Deduplication works exactly as designed and still throws away the upsell.
So decide which side owns Purchase. The cleaner option for AfterSell stores is a server-only Purchase from the order webhook after the post-purchase step settles, with value as the final order total and content_ids including the upsell products, and the browser pixel limited to upper-funnel events. That requires fbc and fbp written to a cart attribute on the storefront, plus hashed email and phone from the order, because nothing in checkout can be instrumented to supply them.
Meta's 7-day event_time limit is no constraint here; the upsell decision takes minutes. The constraint is the app: if its data sharing is set to send server events too, you would be running two server Purchases with different event_ids. Check that setting before adding your own sender.
AfterSell → Meta · what breaks
Why this join usually fails — AfterSell → Meta
- 01
The fbc and fbp values never reaches AfterSell
Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.
- 02
Trying to instrument a sandbox
Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.
- 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.
AfterSell → Meta · the fix
What working looks like — AfterSell → 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
AfterSell → Meta · architecture
How AfterSell and Meta actually connect
- 1
AfterSell holds the truth
Checkout UI extensions run sandboxed. Nothing you write can observe them, so the only reliable view of what the customer accepted is the order itself.
- 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 AfterSell upsell order.
- 4
The event source decides reliability
Send the final order total from the webhook, with upsell line items identified.
- 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.
AfterSell → Meta · normal or broken
Working vs. broken, side by side — AfterSell → Meta
Normal, not a fault
The fbc and fbp values present on the order
Sent from the Shopify order 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
Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.
Sent from the browser
Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.
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
AfterSell → Meta · diagnose
Diagnostic order — AfterSell → Meta
- 01
Count orders carrying the fbc and fbp values
- 02
Follow one real conversion end to end
- 03
Confirm the conversion is sourced from the order, not from a page
On modern Shopify checkout there is no supported page-based option left, so this is the only correct architecture.
- 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.
AfterSell → Meta · prove
How it gets proven — AfterSell → Meta
Source of truth
The final Shopify order total, read from the order record.
- 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.
- Final order totals reconciled from the webhook against imported conversions.
AfterSell → 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
- Confirm the conversion is sourced from the order, not from a page
- Read Event Match Quality and the deduplication indicator
- Read the match rate, not the success message
Checked against
The final Shopify order total, read from the order record.
Free30 minutesNo obligation
AfterSell → Meta · when not to buy
When you don't need this — AfterSell → Meta
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the fbc and fbp values.
- If your conversions already come from the order webhook, checkout extensions change nothing for you.
- 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.
AfterSell → Meta · what we deliver
What gets built — AfterSell → Meta
Identifier capture into AfterSell
Do not try to instrument the checkout surface. Read the order server-side, which is the supported and more reliable path anyway.
Event source: the Shopify order webhook
Send the final order total from the webhook, with upsell line items identified.
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 reverse.
Written guarantee
95%+ tracking accuracy
Measured against The final Shopify order total, read from the order record.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
AfterSell → Meta questions, answered
Meta receives the value at checkout_completed, before the post-purchase offer, and deduplication keeps that event rather than a later, larger server one. Send Purchase from the server only, after the upsell settles.
Not reliably; the offer runs in a sandboxed Shopify extension your scripts cannot reach. Read the accepted lines from the order server-side instead.
Almost always because the fbc and fbp values never reached the AfterSell upsell order. Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported. 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 Shopify order webhook. Send the final order total from the webhook, with upsell line items identified.
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 AfterSell → Meta
- Stripe → MetaConnecting Stripe to Meta Conversions API
- Toast → MetaConnecting Toast to Meta Conversions API
- Olo → MetaConnecting Olo to Meta Conversions API
RELATED GUIDES
Where AfterSell → Meta fits in the rest of your tracking
- Meta · SupplementsMeta Ads conversion tracking for supplement 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
- Checkout Champ → MetaConnecting Checkout Champ to Meta Conversions API
- AfterSell → TikTokConnecting AfterSell to TikTok Events API
- FashionConversion tracking for fashion brands, reported net of returns
- Zipify OCU → MetaConnecting Zipify OneClickUpsell to Meta Conversions API
Free · 30 min
Get AfterSell and Meta joined properly
Free30 minutesNo obligation
