Connecting Mailgun to Criteo
Mailgun is developer-facing email infrastructure, which means the sending logic lives in your application and the marketing team frequently does not know what is being sent or when. 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 Mailgun message 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
Mailgun and Criteo: keep email-driven sales from becoming Criteo's
Nothing in Mailgun belongs in Criteo; transactions with feed-matching product IDs come from your order system. Tag Mailgun template links with UTMs naming the send type and store landing UTMs on orders, so you can separate email-started orders when Criteo's view-through results look too good. Don't use Mailgun recipient lists for Criteo matching.
Nothing in Mailgun belongs in Criteo. Criteo needs transactions with product IDs, and those come from your order system, not from email infrastructure. The real interaction between the two is an attribution overlap: a customer clicks a restock or cart reminder sent through Mailgun, buys, and Criteo claims the sale because the same person saw a Criteo banner the day before.
Criteo's reporting includes view-through credit, so this overlap is built in, and it tends to be largest on exactly the customers your transactional emails target. Tag every link in your Mailgun templates with UTM parameters naming the send type, store the landing UTMs on the order, and when you compare Criteo-attributed revenue with your own orders, separate the orders whose session started from an email click. That's the number to bring up when Criteo's results look too good.
Don't try to use Mailgun data to improve Criteo's matching. Criteo resolves identity on its side, and if you pass it hashed email at all, that should come from the logged-in session or the order, not from an email recipient list. Leave the Criteo sale event exactly where it is, sent from the order with feed-matching product IDs, and treat Mailgun purely as a source of UTM-tagged clicks.
Mailgun → Criteo · what breaks
Why this join usually fails — Mailgun → Criteo
- 01
The Criteo user identifier and product IDs never reaches Mailgun
No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool.
- 02
Nobody able to say why a message was sent
When send logic lives in application code, the marketing team cannot audit it and the engineering team is not thinking about attribution. Messages accumulate, nobody owns the list, and any analysis of email's contribution is unreliable.
- 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.
Mailgun → Criteo · the fix
What working looks like — Mailgun → Criteo
The Criteo user identifier and product IDs on every message
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
Mailgun → Criteo · architecture
How Mailgun and Criteo actually connect
- 1
Mailgun holds the truth
Because sends are triggered in code, the only reliable description of why a message went out lives in your application, not in Mailgun's logs.
- 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 Mailgun message.
- 4
The event source decides reliability
Send orders. Use Mailgun events for deliverability monitoring only.
- 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.
Mailgun → Criteo · normal or broken
Working vs. broken, side by side — Mailgun → Criteo
Normal, not a fault
The Criteo user identifier and product IDs present on the message
Sent from your order system
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
No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool.
Sent from the browser
When send logic lives in application code, the marketing team cannot audit it and the engineering team is not thinking about attribution. Messages accumulate, nobody owns the list, and any analysis of email's contribution is unreliable.
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
Mailgun → Criteo · diagnose
Diagnostic order — Mailgun → Criteo
- 01
Count messages carrying the Criteo user identifier and product IDs
- 02
Follow one real conversion end to end
- 03
Inventory every code path that triggers a send
Usually the first time anyone has, and it frequently finds sends nobody remembers building.
- 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.
Mailgun → Criteo · prove
How it gets proven — Mailgun → Criteo
Source of truth
Your application's own record of what triggered the send, joined to the order.
- The Criteo user identifier and product IDs confirmed present on a live message.
- Product IDs in a live conversion confirmed to match the catalogue feed exactly.
- Orders reconciled against imported conversions, with the send inventory documented.
Mailgun → Criteo · free audit
What we check in the free audit
- Count messages carrying the Criteo user identifier and product IDs
- Follow one real conversion end to end
- Inventory every code path that triggers a send
- Compare product IDs in a real conversion against the catalogue feed
- Read the match rate, not the success message
Checked against
Your application's own record of what triggered the send, joined to the order.
Free30 minutesNo obligation
Mailgun → Criteo · when not to buy
When you don't need this — Mailgun → Criteo
- Measure identifier coverage yourself first — pull your last hundred messages and count how many carry the Criteo user identifier and product IDs.
- Deliverability monitoring is the right use of Mailgun's data. Attribution belongs at the order.
- If you do not sell products with a catalogue, Criteo's model does not fit and the effort is misdirected.
Mailgun → Criteo · what we deliver
What gets built — Mailgun → Criteo
Identifier capture into Mailgun
Record the trigger reason on the message in your own system and attribute at the order.
Event source: your order system
Send orders. Use Mailgun events for deliverability monitoring only.
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 reverse at the order.
Written guarantee
95%+ tracking accuracy
Measured against Your application's own record of what triggered the send, joined to the order.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Mailgun → Criteo questions, answered
There's no useful reason to. Criteo needs order events with product IDs from your store; Mailgun's role is to tag email links so you can see where Criteo takes credit for email-driven sales.
Criteo counts view-through conversions, so a buyer who saw a Criteo ad and later bought from an email click can be credited to Criteo. Store landing UTMs on each order and separate email-click orders when you compare.
Almost always because the Criteo user identifier and product IDs never reached the Mailgun message. No session, no click, and the trigger conditions are buried in application code rather than in a campaign tool. 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.
Your order system. Send orders. Use Mailgun events for deliverability monitoring only.
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 Mailgun → Criteo
- Stripe → CriteoConnecting Stripe to Criteo
- PayPal → CriteoConnecting PayPal to Criteo
- Shopify → CriteoConnecting Shopify to Criteo
RELATED GUIDES
Where Mailgun → Criteo fits in the rest of your tracking
- Postmark → CriteoConnecting Postmark to Criteo
- Resend → CriteoConnecting Resend to Criteo
- SendGrid → CriteoConnecting SendGrid to Criteo
- Mailgun → OutbrainConnecting Mailgun to Outbrain
- Mailgun → The Trade DeskConnecting Mailgun to The Trade Desk
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
Free · 30 min
Get Mailgun and Criteo joined properly
Free30 minutesNo obligation
