Connecting Sanity to Roku Ads
Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. Connected TV is a household medium with no click surface, which makes every conversion it reports a matched inference rather than a followed link. The join between them succeeds or fails on one thing: whether household-level identity, not a click reaches the front-end conversion, not a Sanity record before the conversion happens, because Roku can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Roku CTV to a Sanity site: vanity URLs and holdouts, not clicks
Sanity supplies neither Roku's pixel data nor hashed customer conversions; those come from the site tag and the order system. Make the TV vanity landing page its own Sanity document type, keep redirects from dropping query strings, and fire the pixel on route changes. Judge Roku by a regional holdout on commerce orders, with vanity visits as supporting evidence.
TV viewers do not click; they type a short URL or search your brand. On Sanity sites, vanity paths like /tv are usually redirect documents that the front end executes. A redirect that drops the query string, or lands on the generic home page, makes TV response indistinguishable from direct traffic. Make the vanity landing page its own Sanity document with a distinct type, so visits to it are countable without relying on referrers that TV never sends.
Roku's matching needs your pixel on the site and conversions with hashed customer information from the order system. Sanity supplies neither. Make sure the pixel fires on the vanity page and on client-side route changes after it, because a household that lands and then browses is what the match is built on.
Treat vanity-page visits as supporting evidence, not attribution. If the same short URL also runs on radio or podcasts, its traffic is shared. The measurement Roku cannot argue with is a holdout: regions that saw no CTV against regions that did, compared on orders from the commerce system. Matched view-through numbers belong next to that test, not in place of it.
Sanity → Roku · what breaks
Why this join usually fails — Sanity → Roku
- 01
Household-level identity, not a click 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 on a screen nobody clicked
Every CTV conversion is view-through by definition. Some of that influence is real and some is a household that would have bought anyway, and no amount of pixel work separates the two. Only a holdout does.
- 04
Nothing reconciles afterwards
Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.
Sanity → Roku · the fix
What working looks like — Sanity → Roku
Household-level identity, not a click on every conversion
Conversions arriving in Roku
The conversion is matched to an exposed household within the attribution window and feeds the campaign reporting.
Reconciled against the source
Sanity → Roku · architecture
How Sanity and Roku 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
Roku Ads needs a click to match
A pixel or server event on your side that Roku can match against, plus the hashed customer information the match depends on. Without that, the channel is measurable only by holdout.
- 3
The identifier is the bridge
Household-level identity, not a click, 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
The deduplication problem is across platforms, not within this one. A household exposed to a TV ad and later reached by search and social produces a conversion all three will claim.
Sanity → Roku · normal or broken
Working vs. broken, side by side — Sanity → Roku
Normal, not a fault
Household-level identity, not a click present on the conversion
Sent from your commerce or CRM system
Deduplicated correctly
The deduplication problem is across platforms, not within this one. A household exposed to a TV ad and later reached by search and social produces a conversion all three will claim.
Reconciles with the source
Actually broken
Household-level identity, not a click 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
Every CTV conversion is view-through by definition. Some of that influence is real and some is a household that would have bought anyway, and no amount of pixel work separates the two. Only a holdout does.
Nobody has reconciled it
Sanity → Roku · diagnose
Diagnostic order — Sanity → Roku
- 01
Count conversions carrying household-level identity, not a click
- 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
Ask whether a geo or audience holdout exists
If it does not, the reported figure is exposure correlated with purchase, which is not the same as a campaign that caused one.
- 05
Read the match rate, not the success message
Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.
Sanity → Roku · prove
How it gets proven — Sanity → Roku
Source of truth
Your commerce, CRM or billing system — Sanity has no orders and no customers.
- Household-level identity, not a click confirmed present on a live conversion.
- Incremental lift measured against a holdout, with platform-reported conversions shown alongside rather than instead.
- The conversion confirmed sourced from the commerce system, with front-end routing verified separately.
Sanity → Roku · free audit
What we check in the free audit
- Count conversions carrying household-level identity, not a click
- Follow one real conversion end to end
- Identify the front-end framework, not the CMS
- Ask whether a geo or audience holdout exists
- 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 → Roku · when not to buy
When you don't need this — Sanity → Roku
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry household-level identity, not a click.
- There is no Sanity-specific build. Fix the front end and the commerce integration; the CMS is not in the path.
- If you cannot run a holdout, keep CTV budget small and report it as unproven. That is a more useful position than a matched number nobody can check.
Sanity → Roku · what we deliver
What gets built — Sanity → Roku
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 Roku
Server-side conversion upload with hashed identity, 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 → Roku questions, answered
A dedicated vanity landing page, Roku's pixel on the site, hashed conversions from your order system, and a geographic holdout to check the matched numbers.
Viewers type the URL, so there is no referrer. Use a distinct landing page that keeps its query string.
Almost always because household-level identity, not a click 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.
Roku matches exposure on a television to activity on other devices in the same household, using identity graphs and IP. Nobody clicks a TV ad. That means there is no identifier to capture, the match is probabilistic, and the unit of measurement is a household rather than a person.
Your commerce or CRM system. Send from wherever the money is recorded, not from the content layer.
Roku reports matched conversions and match rates. The match rate tells you how much of your audience it could resolve at all — and a geo holdout tells you whether the campaign moved anything.
More on Sanity → Roku
- Sanity → Google AdsConnecting Sanity to Google Ads
- Sanity → Microsoft AdsConnecting Sanity to Microsoft Ads
- Sanity → Apple Search AdsConnecting Sanity to Apple Search Ads
RELATED GUIDES
Where Sanity → Roku fits in the rest of your tracking
- Concrete CMS → RokuConnecting Concrete CMS to Roku Ads
- Craft → RokuConnecting Craft CMS to Roku Ads
- Webflow → RokuConnecting Webflow to Roku Ads
- Sanity → Instacart AdsConnecting Sanity to Instacart Ads
- Sanity → LiveRampConnecting Sanity to LiveRamp
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sitecore → RokuConnecting Sitecore to Roku Ads
- AEM → RokuConnecting Adobe Experience Manager to Roku Ads
Free · 30 min
Get Sanity and Roku joined properly
Free30 minutesNo obligation
