Connecting Sanity to The Trade Desk
Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. 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 front-end conversion, not a Sanity record 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
The Trade Desk and a Sanity site: UID2 starts at the sign-up form
A Sanity site creates UID2 identity only where visitors give an email; the token is generated by your front end or server, never Sanity. Lock the required disclosure in sign-up copy so editors cannot remove it. Upload purchases or leads server-side from commerce with hashed email or UID2, value and timestamp, and fire the tag on route changes.
UID2 is built from email addresses, so a Sanity site produces addressable identity only where people give you one: newsletter sign-ups, gated downloads, accounts. Reading articles creates nothing The Trade Desk can match. The token is generated by the front end or your server through the UID2 tooling, after the email is collected with the required notice, never by Sanity itself.
The notice is where Sanity comes in. Privacy and sign-up form copy often lives in Sanity, and UID2 participation requires that users are told how their email is used. An editor tidying the form text can remove that disclosure. Keep it in a locked field or component, and confirm the exact requirements with The Trade Desk or your UID2 operator.
Purchases go from the commerce system as a server-side conversion upload with hashed email or UID2, value and timestamp. On content-led sites where the conversion is a lead form, send the submission the same way. Fire The Trade Desk's tag on client-side route changes too, or a reader who lands on an article and converts three pages later is never seen by its pixel.
Sanity → The Trade Desk · what breaks
Why this join usually fails — Sanity → The Trade Desk
- 01
Unified ID 2.0, derived from a hashed email never reaches Sanity
The front-end application does the routing, the caching and the identifier capture. Single-page navigation is the usual failure and it belongs to the framework rather than to Sanity.
- 02
A headless stack diagnosed at the wrong layer
Route changes not tracked, identifiers lost between pages — these are front-end framework problems that get filed against the CMS because that is the name everyone knows.
- 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.
Sanity → The Trade Desk · the fix
What working looks like — Sanity → The Trade Desk
Unified ID 2.0, derived from a hashed email on every conversion
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
Sanity → The Trade Desk · architecture
How Sanity and The Trade Desk actually connect
- 1
Sanity holds the truth
Sanity's real-time content APIs make it excellent at what it does and irrelevant to conversion measurement. Establishing that early saves the client money.
- 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 front-end conversion, not a Sanity record.
- 4
The event source decides reliability
Send from wherever the money is recorded, not from the content layer.
- 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.
Sanity → The Trade Desk · normal or broken
Working vs. broken, side by side — Sanity → The Trade Desk
Normal, not a fault
Unified ID 2.0, derived from a hashed email present on the conversion
Sent from your commerce or CRM system
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 front-end application does the routing, the caching and the identifier capture. Single-page navigation is the usual failure and it belongs to the framework rather than to Sanity.
Sent from the browser
Route changes not tracked, identifiers lost between pages — these are front-end framework problems that get filed against the CMS because that is the name everyone knows.
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
Sanity → The Trade Desk · diagnose
Diagnostic order — Sanity → The Trade Desk
- 01
Count conversions carrying Unified ID 2.0, derived from a hashed email
- 02
Follow one real conversion end to end
- 03
Identify the front-end framework, not the CMS
The routing behaviour that breaks tracking belongs to Next.js, Nuxt or whatever renders the site.
- 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.
Sanity → The Trade Desk · prove
How it gets proven — Sanity → The Trade Desk
Source of truth
Your commerce, CRM or billing system — Sanity has no orders and no customers.
- Unified ID 2.0, derived from a hashed email confirmed present on a live conversion.
- Matched conversions reconciled against your own order records, with the click-through and view-through split stated.
- The conversion confirmed sourced from the commerce system, with front-end routing verified separately.
Sanity → The Trade Desk · free audit
What we check in the free audit
- Count conversions carrying Unified ID 2.0, derived from a hashed email
- Follow one real conversion end to end
- Identify the front-end framework, not the CMS
- Split reported conversions into click-through and view-through
- Read the match rate, not the success message
Checked against
Your commerce, CRM or billing system — Sanity has no orders and no customers.
Free30 minutesNo obligation
Sanity → The Trade Desk · when not to buy
When you don't need this — Sanity → The Trade Desk
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry Unified ID 2.0, derived from a hashed email.
- There is no Sanity-specific build. Fix the front end and the commerce integration; the CMS is not in the path.
- 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.
Sanity → The Trade Desk · what we deliver
What gets built — Sanity → The Trade Desk
Identifier capture into Sanity
Capture and persist the identifier server-side in the front-end application, then carry it into the system that records the sale.
Event source: your commerce or CRM system
Send from wherever the money is recorded, not from the content layer.
Dispatch to The Trade Desk
Server-side conversion upload with the hashed identity and value, from your order system.
Reversals where they exist
Handled by the commerce system.
Written guarantee
95%+ tracking accuracy
Measured against Your commerce, CRM or billing system — Sanity has no orders and no customers.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Sanity → The Trade Desk questions, answered
From emails people submit through forms or logins, tokenized by your front end or server with UID2 tooling, with the required notice shown.
Not through UID2. Only visitors who have given an email are addressable that way.
Almost always because Unified ID 2.0, derived from a hashed email never reached the front-end conversion, not a Sanity record. The front-end application does the routing, the caching and the identifier capture. Single-page navigation is the usual failure and it belongs to the framework rather than to Sanity. 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.
Your commerce or CRM system. Send from wherever the money is recorded, not from the content layer.
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 Sanity → 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 Sanity → The Trade Desk fits in the rest of your tracking
- Umbraco → The Trade DeskConnecting Umbraco to The Trade Desk
- Sitecore → The Trade DeskConnecting Sitecore to The Trade Desk
- Webflow → The Trade DeskConnecting Webflow to The Trade Desk
- Sanity → Instacart AdsConnecting Sanity to Instacart Ads
- Sanity → OutbrainConnecting Sanity to Outbrain
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Statamic → The Trade DeskConnecting Statamic to The Trade Desk
- Duda → The Trade DeskConnecting Duda to The Trade Desk
Free · 30 min
Get Sanity and The Trade Desk joined properly
Free30 minutesNo obligation
