Connecting Medusa to Meta Conversions API
Medusa is a Node commerce engine you extend in your own codebase, which makes the conversion event a piece of application code — and therefore something that can be tested rather than hoped for. 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 Medusa 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
Medusa to Meta CAPI: browser context in cart metadata
Have the storefront write fbc and fbp into Medusa cart metadata and refresh IP and user agent at checkout, then send Purchase from the payment-captured subscriber with the order ID as event_id, value, currency and contents. Meta dedupes only within about 48 hours, so capture promptly or drop the browser Purchase.
Meta's website events need more than an email: fbc, fbp, the client IP address and the user agent all lift match quality, and a Medusa subscriber running on the backend has none of them. Have the storefront write fbc and fbp into cart metadata at first touch and refresh the IP and user agent at checkout, so the order carries the shopper's browser context when the payment-captured subscriber builds the Conversions API event.
Use the Medusa order ID as event_id, and have the storefront pixel send the same ID with its Purchase on the confirmation page. The pair-specific risk is timing. The pixel fires when the order is placed; the server fires at payment capture. Meta only deduplicates matching events received within a limited window (48 hours, per Meta's documentation at the time of writing), so a store that captures payment at shipment several days later gets two Purchases for one order. Either capture promptly or drop the browser Purchase.
Send value and currency from the captured total and the order's line items as contents, so catalog and dynamic ads keep working. Meta's seven-day event_time limit is rarely an issue when the subscriber fires on capture, but a backfill script replaying old orders will be rejected. Refunds have no reversal event in Meta; record them on your side and exclude refunded customers from value-based audiences if that matters to you.
Medusa → Meta · what breaks
Why this join usually fails — Medusa → Meta
- 01
The fbc and fbp values never reaches Medusa
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
- 02
Firing on order placed rather than payment captured
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
- 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.
Medusa → Meta · the fix
What working looks like — Medusa → 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
Medusa → Meta · architecture
How Medusa and Meta actually connect
- 1
Medusa holds the truth
Because you own the event handlers, the conversion can fire from the payment-captured event specifically rather than from whatever the frontend happened to render.
- 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 Medusa order.
- 4
The event source decides reliability
Send orders at payment capture, at the paid total.
- 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.
Medusa → Meta · normal or broken
Working vs. broken, side by side — Medusa → Meta
Normal, not a fault
The fbc and fbp values present on the order
Sent from a Medusa subscriber on order payment capture
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
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
Sent from the browser
They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.
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
Medusa → Meta · diagnose
Diagnostic order — Medusa → Meta
- 01
Count orders carrying the fbc and fbp values
- 02
Follow one real conversion end to end
- 03
Check which event your subscriber listens to
One line of code, and it decides whether you are counting orders or counting money.
- 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.
Medusa → Meta · prove
How it gets proven — Medusa → Meta
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- 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.
- Payment-captured orders reconciled against imported conversions.
Medusa → 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
- Check which event your subscriber listens to
- Read Event Match Quality and the deduplication indicator
- Read the match rate, not the success message
Checked against
Medusa orders by payment status, emitted from your own subscriber code.
Free30 minutesNo obligation
Medusa → Meta · when not to buy
When you don't need this — Medusa → Meta
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the fbc and fbp values.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- 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.
Medusa → Meta · what we deliver
What gets built — Medusa → Meta
Identifier capture into Medusa
Write the identifier into cart metadata at first touch so it is carried onto the order automatically at completion.
Event source: a Medusa subscriber on order payment capture
Send orders at payment capture, at the paid total.
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 emit their own event and should reverse.
Written guarantee
95%+ tracking accuracy
Measured against Medusa orders by payment status, emitted from your own subscriber code.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Medusa → Meta questions, answered
Fire it from a subscriber on payment capture, using fbc, fbp, IP and user agent stored in cart metadata by the storefront, with the order ID as event_id. Make the pixel send the same event_id.
The pixel fires at order placement and the server event at payment capture, and if capture comes days later they fall outside Meta's deduplication window. Capture promptly or remove the browser Purchase.
Almost always because the fbc and fbp values never reached the Medusa order. The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created. 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.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
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 Medusa → 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 Medusa → Meta fits in the rest of your tracking
- Meta · BeautyMeta Ads conversion tracking for beauty brands
- Meta · Jewelry ecommerceMeta Ads conversion tracking for jewelry ecommerce brands
- Meta × Ecommerce OrdersHow to reconcile Meta Ads against your store's order table
- Meta · Checkout → purchaseHow to track checkout to purchase for Meta Ads
- Shopify POS → MetaConnecting Shopify POS to Meta Conversions API
- Medusa → X AdsConnecting Medusa to X Ads
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Wix → MetaConnecting Wix Stores to Meta Conversions API
Free · 30 min
Get Medusa and Meta joined properly
Free30 minutesNo obligation
