Connecting Medusa to Criteo
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. Criteo is a retargeting and commerce media network built on product-level data, which means its feed matters as much as its conversion events. The join between them succeeds or fails on one thing: whether the Criteo user identifier and product IDs reaches the Medusa order before the conversion happens, because Criteo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Medusa to Criteo: variant IDs, the feed and the subscriber
Send transactions from a Medusa payment-capture subscriber with the order ID and line items whose IDs exactly match the feed, choosing variant IDs or SKUs consistently. Generate the feed from the same Medusa data and regenerate it when products change. A storefront OneTag sale must use the same order ID, read from the cart completion response.
Criteo needs product IDs in the transaction that match the catalog feed exactly, and Medusa gives you several candidates: product IDs, variant IDs (Medusa's own prefixed identifiers) and SKUs. Shoppers buy variants, so if your feed lists items at variant level, send variant IDs or SKUs in both places and never mix them. Generate the feed from the same Medusa data the subscriber reads, ideally through the same code, and the mismatch problem mostly disappears.
Send the transaction from your payment-capture subscriber with the order ID as transaction ID and line items carrying ID, price and quantity. If the Criteo OneTag fires a sales event on the storefront's confirmation page, it must use the same order ID. The storefront only learns that ID when the cart completes, so read it from the completion response instead of generating one in the browser.
Medusa makes the other Criteo failure easy to fall into: products added, renamed or deleted in the admin before the feed refreshes. If your catalog changes often, regenerate the feed when products change rather than once a night, and keep deleted variants resolvable long enough for late conversions to land.
Medusa → Criteo · what breaks
Why this join usually fails — Medusa → Criteo
- 01
The Criteo user identifier and product IDs 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
Product IDs that do not match the feed
Criteo resolves conversions against your catalogue. If the IDs in your purchase events differ from the IDs in your feed — a common outcome when the feed is generated by a different system — the conversion resolves poorly and the reported value is wrong.
- 04
Nothing reconciles afterwards
Criteo reports conversions on its own attribution windows, which include view-through. Reconcile against your own order records and be explicit that view-through credit is included — otherwise the comparison will never balance.
Medusa → Criteo · the fix
What working looks like — Medusa → Criteo
The Criteo user identifier and product IDs on every order
Conversions arriving in Criteo
Conversions appear in Criteo's reporting attributed to its own view- and click-through windows, which are worth understanding before comparing anything.
Reconciled against the source
Medusa → Criteo · architecture
How Medusa and Criteo 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
Criteo needs a click to match
Criteo needs the transaction with its product IDs, quantities and values, matched to your catalogue feed. Identity resolution is Criteo's side of the problem; feed consistency is yours.
- 3
The identifier is the bridge
The Criteo user identifier and product IDs, 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
Criteo deduplicates on the transaction identifier. Sending the same order from both a tag and a server integration without a shared ID counts it twice, and on a retargeting network that inflates the metric the whole channel is judged on.
Medusa → Criteo · normal or broken
Working vs. broken, side by side — Medusa → Criteo
Normal, not a fault
The Criteo user identifier and product IDs present on the order
Sent from a Medusa subscriber on order payment capture
Deduplicated correctly
Criteo deduplicates on the transaction identifier. Sending the same order from both a tag and a server integration without a shared ID counts it twice, and on a retargeting network that inflates the metric the whole channel is judged on.
Reconciles with the source
Actually broken
The Criteo user identifier and product IDs 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
Criteo resolves conversions against your catalogue. If the IDs in your purchase events differ from the IDs in your feed — a common outcome when the feed is generated by a different system — the conversion resolves poorly and the reported value is wrong.
Nobody has reconciled it
Medusa → Criteo · diagnose
Diagnostic order — Medusa → Criteo
- 01
Count orders carrying the Criteo user identifier and product IDs
- 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
Compare product IDs in a real conversion against the catalogue feed
They must match exactly. This single check explains most Criteo value discrepancies.
- 05
Read the match rate, not the success message
Criteo reports conversions on its own attribution windows, which include view-through. Reconcile against your own order records and be explicit that view-through credit is included — otherwise the comparison will never balance.
Medusa → Criteo · prove
How it gets proven — Medusa → Criteo
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- The Criteo user identifier and product IDs confirmed present on a live order.
- Product IDs in a live conversion confirmed to match the catalogue feed exactly.
- Payment-captured orders reconciled against imported conversions.
Medusa → Criteo · free audit
What we check in the free audit
- Count orders carrying the Criteo user identifier and product IDs
- Follow one real conversion end to end
- Check which event your subscriber listens to
- Compare product IDs in a real conversion against the catalogue feed
- 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 → Criteo · when not to buy
When you don't need this — Medusa → Criteo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Criteo user identifier and product IDs.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- If you do not sell products with a catalogue, Criteo's model does not fit and the effort is misdirected.
Medusa → Criteo · what we deliver
What gets built — Medusa → Criteo
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 Criteo
Server-side transaction events with product IDs matching the catalogue feed, plus the feed itself kept in sync.
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 → Criteo questions, answered
Whichever level your feed is built at, used identically in the events. Variant IDs or SKUs usually fit, because shoppers buy variants.
Export products and variants from Medusa's API into the feed format Criteo accepts, using the same IDs your transaction events send. Check Criteo's current feed requirements for your account.
Almost always because the Criteo user identifier and product IDs 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.
Criteo matches through its own identity graph rather than a single click parameter you capture, and it depends heavily on product-level data — the product IDs in your events must match the IDs in your catalogue feed exactly. A conversion that arrives with product IDs Criteo cannot resolve is worth much less than one that resolves, and mismatched IDs between feed and events are the most common failure here.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
Criteo reports conversions on its own attribution windows, which include view-through. Reconcile against your own order records and be explicit that view-through credit is included — otherwise the comparison will never balance.
More on Medusa → Criteo
- Stripe → CriteoConnecting Stripe to Criteo
- PayPal → CriteoConnecting PayPal to Criteo
- Shopify → CriteoConnecting Shopify to Criteo
RELATED GUIDES
Where Medusa → Criteo fits in the rest of your tracking
- WooCommerce → CriteoConnecting WooCommerce to Criteo
- Swell → CriteoConnecting Swell to Criteo
- Magento → CriteoConnecting Magento to Criteo
- Medusa → Walmart ConnectConnecting Medusa to Walmart Connect
- Medusa → The Trade DeskConnecting Medusa to The Trade Desk
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- BigCommerce → CriteoConnecting BigCommerce to Criteo
- Saleor → CriteoConnecting Saleor to Criteo
Free · 30 min
Get Medusa and Criteo joined properly
Free30 minutesNo obligation
