Skip to main content
Magento → CriteoIntegration guide

Connecting Magento to Criteo

Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. 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 Magento 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

Magento to Criteo: parent vs child SKU decides the match

The Magento problem with Criteo is configurable products: feeds often list the parent while orders contain the child SKU. Pick one level and match events to it. Send the transaction server-side from the order placement observer with item IDs, quantity, price and increment_id as transaction ID, and have any success-page OneTag share that ID.

The Magento-specific Criteo failure is configurable products. The catalog feed often lists the parent product, the one with the image and the URL, while the order contains the simple child SKU of the size or color that was bought. Criteo receives a transaction with IDs it cannot find in the feed, retargeting shows nothing useful, and revenue attributes poorly. Decide which level the feed lists and make the events send the same.

Product and listing views can come from the browser tag, since the SKU on a product page is the same for every visitor even through full-page cache. The transaction should come from the order placement observer, server-side, with each item's ID at the feed's level, quantity, price and the increment_id as the transaction ID. If Criteo's OneTag also fires on the cached success page, it must send the same transaction ID or the order counts twice.

Check whether a Criteo extension for Magento is already installed and how it builds IDs; extensions often pick the child SKU by default. Feed and events maintained by two different modules is how the mismatch survives for months.

Magento → Criteo · what breaks

Why this join usually fails — Magento → Criteo

  1. 01

    The Criteo user identifier and product IDs never reaches Magento

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  2. 02

    Full-page cache between the visitor and your code

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  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.

Magento → Criteo · the fix

What working looks like — Magento → 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

Magento → Criteo · architecture

How Magento and Criteo actually connect

  1. 1

    Magento holds the truth

    You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.

  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 Magento order.

  4. 4

    The event source decides reliability

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

  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.

Magento → Criteo · normal or broken

Working vs. broken, side by side — Magento → Criteo

Normal, not a fault

  • The Criteo user identifier and product IDs present on the order

  • Sent from the Magento order placement observer

  • 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

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  • Sent from the browser

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  • 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

Magento → Criteo · diagnose

Diagnostic order — Magento → Criteo

  1. 01

    Count orders carrying the Criteo user identifier and product IDs

  2. 02

    Follow one real conversion end to end

  3. 03

    Place a test order as an anonymous visitor through cache

    Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.

  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.

Magento → Criteo · prove

How it gets proven — Magento → Criteo

Source of truth

Magento's sales order records in your own database, for the same window and order status set.

  • 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.
  • Order data confirmed populated on an order placed through a fully warmed cache.

Magento → 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
  • Place a test order as an anonymous visitor through cache
  • Compare product IDs in a real conversion against the catalogue feed
  • Read the match rate, not the success message

Checked against

Magento's sales order records in your own database, for the same window and order status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

Magento → Criteo · when not to buy

When you don't need this — Magento → Criteo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Criteo user identifier and product IDs.
  • If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
  • If you do not sell products with a catalogue, Criteo's model does not fit and the effort is misdirected.

Magento → Criteo · what we deliver

What gets built — Magento → Criteo

  • Identifier capture into Magento

    Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.

  • Event source: the Magento order placement observer

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

  • 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

    Credit memos are recorded against the original order and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Magento → Criteo questions, answered

Whichever the catalog feed lists, exactly. Most mismatches come from the feed using parents and the purchase event using children.

Free · 30 min

Get Magento and Criteo joined properly

Free30 minutesNo obligation