Connecting Drupal Commerce to Criteo
Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. 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 Drupal Commerce 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
Drupal Commerce to Criteo: SKU versus variation ID in the feed
Use one product identifier, usually the variation SKU, in Criteo's catalog feed, browser tags and server transactions, since Drupal feeds often use variation IDs instead. Send transactions from the order's place transition with SKU, quantity and unit price, sharing the order ID with any OneTag fire. Check multilingual feeds for duplicate rows.
In Drupal Commerce, what customers see as a product is split into a product entity and its variations, each variation with its own numeric ID and a SKU. Criteo only resolves a sale when the item IDs in the transaction match the IDs in the catalog feed, and on Drupal it is common for the feed, built by a module or a Views export, to use the variation ID while the theme's sales tag uses the SKU or the parent product ID. Pick one, usually the SKU since it survives migrations, and use it in the feed, the browser tags and the server transaction.
Send the transaction from an event subscriber on the order's place transition, reading lines from commerce_order_item with variation SKU, quantity and unit price. The OneTag sales tag on the checkout completion page is the fragile part on Drupal: that page can be cached or replaced by a contributed checkout pane, and may never run the tag. If both fire, they need the same order ID.
Multilingual and multi-currency stores add a second catalog problem. A product translated into three languages is still one variation, but some feed setups emit one row per translation with different IDs. Check that a live order's IDs appear exactly once in the feed for the market the shopper bought in, and that the feed's prices are in the transaction's currency.
Drupal Commerce → Criteo · what breaks
Why this join usually fails — Drupal Commerce → Criteo
- 01
The Criteo user identifier and product IDs never reaches Drupal Commerce
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
- 02
Configurable workflow states nobody agreed on
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
- 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.
Drupal Commerce → Criteo · the fix
What working looks like — Drupal Commerce → 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
Drupal Commerce → Criteo · architecture
How Drupal Commerce and Criteo actually connect
- 1
Drupal Commerce holds the truth
You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.
- 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 Drupal Commerce order.
- 4
The event source decides reliability
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
- 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.
Drupal Commerce → Criteo · normal or broken
Working vs. broken, side by side — Drupal Commerce → Criteo
Normal, not a fault
The Criteo user identifier and product IDs present on the order
Sent from the Drupal Commerce order placement hook
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
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
Sent from the browser
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
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
Drupal Commerce → Criteo · diagnose
Diagnostic order — Drupal Commerce → Criteo
- 01
Count orders carrying the Criteo user identifier and product IDs
- 02
Follow one real conversion end to end
- 03
List the order states in use and agree which count as revenue
Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.
- 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.
Drupal Commerce → Criteo · prove
How it gets proven — Drupal Commerce → Criteo
Source of truth
Drupal's commerce_order records in your own database, filtered to completed states.
- 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 field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.
Drupal Commerce → 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
- List the order states in use and agree which count as revenue
- Compare product IDs in a real conversion against the catalogue feed
- Read the match rate, not the success message
Checked against
Drupal's commerce_order records in your own database, filtered to completed states.
Free30 minutesNo obligation
Drupal Commerce → Criteo · when not to buy
When you don't need this — Drupal Commerce → 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 Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
- If you do not sell products with a catalogue, Criteo's model does not fit and the effort is misdirected.
Drupal Commerce → Criteo · what we deliver
What gets built — Drupal Commerce → Criteo
Identifier capture into Drupal Commerce
Capture the identifier and persist it as order field data through a hook on order placement, server-side, so it never depends on what the cache served.
Event source: the Drupal Commerce order placement hook
Fire server-side from the hook rather than the checkout completion template, which is cacheable 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
Order state transitions to refunded or cancelled are recorded and can drive reversals.
Written guarantee
95%+ tracking accuracy
Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Drupal Commerce → Criteo questions, answered
The same one your Criteo feed uses, commonly the variation SKU. Compare a real order's line items with the feed; mismatched IDs are the usual cause of low Criteo sales value.
Check drupal.org for one maintained on your Drupal and Commerce versions. Many installs add OneTag through the theme or a tag manager and send transactions server-side.
Almost always because the Criteo user identifier and product IDs never reached the Drupal Commerce order. Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run. 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.
The Drupal Commerce order placement hook. Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
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 Drupal Commerce → Criteo
- Squarespace → CriteoConnecting Squarespace Commerce to Criteo
- Drupal Commerce → Google AdsConnecting Drupal Commerce to Google Ads
- Drupal Commerce → MetaConnecting Drupal Commerce to Meta Conversions API
RELATED GUIDES
Where Drupal Commerce → Criteo fits in the rest of your tracking
- Sitecore → CriteoConnecting Sitecore to Criteo
- Webflow → CriteoConnecting Webflow to Criteo
- Concrete CMS → CriteoConnecting Concrete CMS to Criteo
- Drupal Commerce → LiveRampConnecting Drupal Commerce to LiveRamp
- Drupal Commerce → RokuConnecting Drupal Commerce to Roku Ads
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sanity → CriteoConnecting Sanity to Criteo
- AEM → CriteoConnecting Adobe Experience Manager to Criteo
Free · 30 min
Get Drupal Commerce and Criteo joined properly
Free30 minutesNo obligation
