Connecting Magento to The Trade Desk
Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. The Trade Desk buys across the open internet rather than inside a walled garden, which means it cannot rely on a logged-in graph and has to work with identity you help it construct. The join between them succeeds or fails on one thing: whether Unified ID 2.0, derived from a hashed email reaches the Magento order before the conversion happens, because The Trade Desk can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Magento buyers as UID2 conversions in The Trade Desk
Every Magento order carries an email, so normalize and hash customer_email and send it from the order placement observer with increment_id, base_grand_total and timestamp through The Trade Desk's server-side conversion route, confirming method and fields with your account team. Anonymous browsing can't match. Keep increment_id on every upload and report net revenue from Magento.
The Trade Desk matches conversions through UID2, which is built from an email, so the Magento order is a good fit: every order, guest or registered, has an email by the time it is placed. Anonymous browsing before checkout cannot be matched at all. That leaves placed orders and account creation as the two moments worth sending, and it caps your measurable share at people who bought or registered.
Normalize the order's customer_email, hash it, and send it from the order placement observer with the increment_id, base_grand_total and timestamp through The Trade Desk's server-side conversion route. There is both a pixel and an API path, so confirm the current method and field names with your account team. If you also want UID2 tokens generated on-site, the natural moment is when the shopper enters an email at Magento's shipping step or logs in, and your privacy notice must cover it.
Open-internet campaigns usually run alongside search and social, and an order touched by all three will be claimed by all three. Keep the increment_id on every upload so claims from each platform can be compared against the same order in Magento. We are not aware of a way to reverse a Trade Desk conversion from a credit memo, so report net revenue from Magento.
Magento → The Trade Desk · what breaks
Why this join usually fails — Magento → The Trade Desk
- 01
Unified ID 2.0, derived from a hashed email 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.
- 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.
- 03
View-through conversions on the open internet
A large share of what a DSP claims is view-through: the person saw a display impression and later converted without clicking. Some of that is real influence and some of it is coincidence, and no post-click reporting can separate them. Treat the click-attributed number as the floor and prove the rest with a holdout.
- 04
Nothing reconciles afterwards
The Trade Desk reports match rates on uploaded conversions. Read the match rate — a low one means your authenticated share is the constraint, and no amount of pipeline work will change that.
Magento → The Trade Desk · the fix
What working looks like — Magento → The Trade Desk
Unified ID 2.0, derived from a hashed email on every order
Conversions arriving in The Trade Desk
The conversion is matched to an impression or click where identity resolves, and feeds the bidding models.
Reconciled against the source
Magento → The Trade Desk · architecture
How Magento and The Trade Desk actually connect
- 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
The Trade Desk needs a click to match
The Trade Desk needs the conversion with a UID2 or a hashed email it can resolve, plus the value and timestamp. Conversions from anonymous visitors cannot be matched at all.
- 3
The identifier is the bridge
Unified ID 2.0, derived from a hashed email, captured at the visit and carried into the Magento order.
- 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
Deduplication at the destination
Deduplication is on your conversion identifier. Because open-internet buying frequently runs alongside search and social, the more consequential deduplication is across platforms rather than within this one.
Magento → The Trade Desk · normal or broken
Working vs. broken, side by side — Magento → The Trade Desk
Normal, not a fault
Unified ID 2.0, derived from a hashed email present on the order
Sent from the Magento order placement observer
Deduplicated correctly
Deduplication is on your conversion identifier. Because open-internet buying frequently runs alongside search and social, the more consequential deduplication is across platforms rather than within this one.
Reconciles with the source
Actually broken
Unified ID 2.0, derived from a hashed email 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
A large share of what a DSP claims is view-through: the person saw a display impression and later converted without clicking. Some of that is real influence and some of it is coincidence, and no post-click reporting can separate them. Treat the click-attributed number as the floor and prove the rest with a holdout.
Nobody has reconciled it
Magento → The Trade Desk · diagnose
Diagnostic order — Magento → The Trade Desk
- 01
Count orders carrying Unified ID 2.0, derived from a hashed email
- 02
Follow one real conversion end to end
- 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.
- 04
Split reported conversions into click-through and view-through
If the great majority are view-through, the honest next step is an incrementality test rather than a bid adjustment.
- 05
Read the match rate, not the success message
The Trade Desk reports match rates on uploaded conversions. Read the match rate — a low one means your authenticated share is the constraint, and no amount of pipeline work will change that.
Magento → The Trade Desk · prove
How it gets proven — Magento → The Trade Desk
Source of truth
Magento's sales order records in your own database, for the same window and order status set.
- Unified ID 2.0, derived from a hashed email confirmed present on a live order.
- Matched conversions reconciled against your own order records, with the click-through and view-through split stated.
- Order data confirmed populated on an order placed through a fully warmed cache.
Magento → The Trade Desk · free audit
What we check in the free audit
- Count orders carrying Unified ID 2.0, derived from a hashed email
- Follow one real conversion end to end
- Place a test order as an anonymous visitor through cache
- Split reported conversions into click-through and view-through
- 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.
Free30 minutesNo obligation
Magento → The Trade Desk · when not to buy
When you don't need this — Magento → The Trade Desk
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry Unified ID 2.0, derived from a hashed email.
- If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
- If you cannot collect email addresses from a meaningful share of your buyers, UID2 has little to work with and the open internet is not yet an addressable channel for you.
Magento → The Trade Desk · what we deliver
What gets built — Magento → The Trade Desk
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 The Trade Desk
Server-side conversion upload with the hashed identity and value, from your order system.
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.
From $400 · See packages
FAQ
Magento → The Trade Desk questions, answered
Yes. Guests enter an email before the order is placed, and that normalized, hashed email is what UID2 is built from.
From the order placement observer, server-side, with the hashed email, order ID, value and timestamp. Confirm the current conversion method and field names with your Trade Desk account team.
Almost always because Unified ID 2.0, derived from a hashed email never reached the Magento order. 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. Measure coverage before debugging the dispatch.
UID2 is built from a hashed and salted email address rather than from a cookie, which is the point: it is designed to survive third-party cookie deprecation. It also means the identifier only exists for people who gave you an email, so your addressable share is capped by your own authenticated traffic, not by the platform.
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.
The Trade Desk reports match rates on uploaded conversions. Read the match rate — a low one means your authenticated share is the constraint, and no amount of pipeline work will change that.
More on Magento → The Trade Desk
- Stripe → The Trade DeskConnecting Stripe to The Trade Desk
- PayPal → The Trade DeskConnecting PayPal to The Trade Desk
- Shopify → The Trade DeskConnecting Shopify to The Trade Desk
RELATED GUIDES
Where Magento → The Trade Desk fits in the rest of your tracking
- Squarespace → The Trade DeskConnecting Squarespace Commerce to The Trade Desk
- nopCommerce → The Trade DeskConnecting nopCommerce to The Trade Desk
- BigCommerce → The Trade DeskConnecting BigCommerce to The Trade Desk
- Magento → DV360Connecting Magento to Display & Video 360
- Magento → OutbrainConnecting Magento to Outbrain
- SupplementsConversion tracking for supplement brands, built around subscription value
- PrestaShop → The Trade DeskConnecting PrestaShop to The Trade Desk
- Wix → The Trade DeskConnecting Wix Stores to The Trade Desk
Free · 30 min
Get Magento and The Trade Desk joined properly
Free30 minutesNo obligation
