Skip to main content
Medusa → CriteoIntegration guide

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

  1. 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.

  2. 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.

  3. 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.

  4. 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. 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. 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. 3

    The identifier is the bridge

    The Criteo user identifier and product IDs, captured at the visit and carried into the Medusa order.

  4. 4

    The event source decides reliability

    Send orders at payment capture, at the paid total.

  5. 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

  1. 01

    Count orders carrying the Criteo user identifier and product IDs

  2. 02

    Follow one real conversion end to end

  3. 03

    Check which event your subscriber listens to

    One line of code, and it decides whether you are counting orders or counting money.

  4. 04

    Compare product IDs in a real conversion against the catalogue feed

    They must match exactly. This single check explains most Criteo value discrepancies.

  5. 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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get Medusa and Criteo joined properly

Free30 minutesNo obligation