Connecting Medusa to The Trade Desk
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. 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 Medusa 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
Medusa to The Trade Desk: UID2 from every checkout email
Normalize each Medusa order email exactly to UID2's rules, including Gmail dots and plus suffixes, then send conversions from the payment-capture subscriber or a batch with order ID, paid total, currency and capture time. Check whether your seat uses real-time or offline files. Match rates are limited by impressions, and much credit is view-through.
Every paid Medusa order carries an email, guest or registered, which makes a store's purchase data unusually addressable for UID2. The work is normalization before hashing, done exactly to UID2's published rules, including the Gmail-specific handling of dots and plus suffixes. Do it in the payment-capture subscriber or a batch job, then send the conversion to The Trade Desk with the hashed identity, the order ID, paid total, currency and capture timestamp. Check whether your seat takes conversions through a real-time server endpoint or offline files; both exist depending on the setup.
The match ceiling is on the impression side, not the order side. A buyer only matches if they were served an impression that carried a UID2 or another resolvable ID, so high-quality Medusa emails still produce a modest match rate on open-web inventory. Read the match rate before blaming the pipeline.
Medusa regions can price in several currencies, and bidding models compare values across orders, so send each conversion's currency explicitly. Most of what a DSP reports for a store is view-through, so keep the click-through number from Medusa's own records as the floor and use a holdout to test the rest.
Medusa → The Trade Desk · what breaks
Why this join usually fails — Medusa → The Trade Desk
- 01
Unified ID 2.0, derived from a hashed email never reaches Medusa
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
- 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.
- 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.
Medusa → The Trade Desk · the fix
What working looks like — Medusa → 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
Medusa → The Trade Desk · architecture
How Medusa and The Trade Desk actually connect
- 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
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 Medusa order.
- 4
The event source decides reliability
Send orders at payment capture, at the paid total.
- 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.
Medusa → The Trade Desk · normal or broken
Working vs. broken, side by side — Medusa → The Trade Desk
Normal, not a fault
Unified ID 2.0, derived from a hashed email present on the order
Sent from a Medusa subscriber on order payment capture
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
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
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
Medusa → The Trade Desk · diagnose
Diagnostic order — Medusa → 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
Check which event your subscriber listens to
One line of code, and it decides whether you are counting orders or counting money.
- 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.
Medusa → The Trade Desk · prove
How it gets proven — Medusa → The Trade Desk
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- 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.
- Payment-captured orders reconciled against imported conversions.
Medusa → 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
- Check which event your subscriber listens to
- Split reported conversions into click-through and view-through
- Read the match rate, not the success message
Checked against
Medusa orders by payment status, emitted from your own subscriber code.
Free30 minutesNo obligation
Medusa → The Trade Desk · when not to buy
When you don't need this — Medusa → 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 every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- 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.
Medusa → The Trade Desk · what we deliver
What gets built — Medusa → The Trade Desk
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 The Trade Desk
Server-side conversion upload with the hashed identity and value, from your order system.
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.
From $400 · See packages
FAQ
Medusa → The Trade Desk questions, answered
Normalize and hash the order email to UID2's rules, then upload the conversion with order ID, value and currency. Confirm with your account team whether your seat uses the server API or offline files.
The match depends on whether those buyers saw an impression that carried a resolvable ID. Your order data can be perfect and still match modestly.
Almost always because Unified ID 2.0, derived from a hashed email never reached the Medusa order. The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created. 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.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
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 Medusa → 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 Medusa → The Trade Desk fits in the rest of your tracking
- Braintree → The Trade DeskConnecting Braintree to The Trade Desk
- Squarespace → The Trade DeskConnecting Squarespace Commerce to The Trade Desk
- nopCommerce → The Trade DeskConnecting nopCommerce to The Trade Desk
- Medusa → Instacart AdsConnecting Medusa to Instacart Ads
- Medusa → DV360Connecting Medusa to Display & Video 360
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Gumroad → The Trade DeskConnecting Gumroad to The Trade Desk
- Shopify POS → The Trade DeskConnecting Shopify POS to The Trade Desk
Free · 30 min
Get Medusa and The Trade Desk joined properly
Free30 minutesNo obligation
