Connecting Sanity to Adobe Analytics
Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. Adobe Analytics processes data on the way in through rules you configure, which means the same event can be recorded differently by two report suites and both will look authoritative. The join between them succeeds or fails on one thing: whether the Experience Cloud ID, plus whatever eVar you designate reaches the front-end conversion, not a Sanity record before the conversion happens, because Adobe Analytics can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Sanity content in Adobe Analytics: key variables on document ID
Put the Sanity document _id in an Adobe prop or eVar as page identity and attach title, content type and author through classifications, so retitled pages keep one record. Set allocation and expiry per content eVar deliberately. Send purchases from commerce via Data Insertion or Edge API with the ECID and order number, and suppress Studio preview hits.
Adobe implementations on a Sanity front end often set pageName from the document title. Editors change titles in Sanity constantly, and each rename starts a new line item in Adobe with the page's history stranded under the old name. Put the Sanity document _id in a prop or eVar as the page's identity, and attach the current title, content type and author afterwards through Adobe's classification tools, so a retitled article keeps one continuous record.
Sanity fields make good Adobe dimensions, but each one needs a deliberate allocation and expiry. An eVar holding the content type with visit expiry and most-recent allocation credits an order to whatever was read last. For a buying guide that does its work early in the journey, original allocation tells a different story. Decide per variable and write the decision down, because nobody will remember why the settings differ in a year.
Orders are not in Sanity. Send purchases from the commerce platform through the Data Insertion or Edge API, with the ECID captured on the front end and the order number as purchase ID. Two leaks to close on the Sanity side: preview iframes in the Studio load the real site and fire page views unless the front end detects draft mode, and statically generated pages carry whatever field values existed at the last build, so a renamed category can report its old value until the page regenerates.
Sanity → Adobe Analytics · what breaks
Why this join usually fails — Sanity → Adobe Analytics
- 01
The Experience Cloud ID, plus whatever eVar you designate 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
Processing rules rewriting data before anyone sees it
Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.
- 04
Nothing reconciles afterwards
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
Sanity → Adobe Analytics · the fix
What working looks like — Sanity → Adobe Analytics
The Experience Cloud ID, plus whatever eVar you designate on every conversion
Conversions arriving in Adobe Analytics
The hit is processed through VISTA and processing rules, lands in the report suite, and becomes available under whatever allocation the eVar specifies.
Reconciled against the source
Sanity → Adobe Analytics · architecture
How Sanity and Adobe Analytics 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
Adobe Analytics needs a click to match
An eVar with the right persistence and allocation, an event configured in the report suite, and processing rules that do not quietly rewrite what arrived.
- 3
The identifier is the bridge
The Experience Cloud ID, plus whatever eVar you designate, 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
Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.
Sanity → Adobe Analytics · normal or broken
Working vs. broken, side by side — Sanity → Adobe Analytics
Normal, not a fault
The Experience Cloud ID, plus whatever eVar you designate present on the conversion
Sent from your commerce or CRM system
Deduplicated correctly
Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.
Reconciles with the source
Actually broken
The Experience Cloud ID, plus whatever eVar you designate 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
Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.
Nobody has reconciled it
Sanity → Adobe Analytics · diagnose
Diagnostic order — Sanity → Adobe Analytics
- 01
Count conversions carrying the Experience Cloud ID, plus whatever eVar you designate
- 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
Read the processing rules and the eVar allocation settings
Before debugging the tag. On mature Adobe implementations the explanation is upstream of the browser far more often than in it.
- 05
Read the match rate, not the success message
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
Sanity → Adobe Analytics · prove
How it gets proven — Sanity → Adobe Analytics
Source of truth
Your commerce, CRM or billing system — Sanity has no orders and no customers.
- The Experience Cloud ID, plus whatever eVar you designate confirmed present on a live conversion.
- Orders reconciled against the raw feed with purchase ID deduplication verified, then against the processed report suite.
- The conversion confirmed sourced from the commerce system, with front-end routing verified separately.
Sanity → Adobe Analytics · free audit
What we check in the free audit
- Count conversions carrying the Experience Cloud ID, plus whatever eVar you designate
- Follow one real conversion end to end
- Identify the front-end framework, not the CMS
- Read the processing rules and the eVar allocation settings
- 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 → Adobe Analytics · when not to buy
When you don't need this — Sanity → Adobe Analytics
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the Experience Cloud ID, plus whatever eVar you designate.
- There is no Sanity-specific build. Fix the front end and the commerce integration; the CMS is not in the path.
- If you are already on GA4 and not obliged to use Adobe, running both means two versions of every number and a standing argument about which is right.
Sanity → Adobe Analytics · what we deliver
What gets built — Sanity → Adobe Analytics
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 Adobe Analytics
Server-side via the Data Insertion or Edge API, with the ECID and the configured variables.
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 → Adobe Analytics questions, answered
No. Titles change and each change splits the history. Use the document ID as the identity and classify it with the current title.
Detect draft or preview mode in the front-end app and skip loading the Adobe tags there, or send that traffic to a development report suite.
Almost always because the Experience Cloud ID, plus whatever eVar you designate 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.
Identity is the ECID, with visitor stitching configurable on top. The click identifier is not native — it lives in an eVar you assign, with an expiry and an allocation model you choose, and those two settings silently decide what your attribution reports say.
Your commerce or CRM system. Send from wherever the money is recorded, not from the content layer.
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
More on Sanity → Adobe Analytics
- Stripe → Adobe AnalyticsConnecting Stripe to Adobe Analytics
- PayPal → Adobe AnalyticsConnecting PayPal to Adobe Analytics
- Shopify → Adobe AnalyticsConnecting Shopify to Adobe Analytics
RELATED GUIDES
Where Sanity → Adobe Analytics fits in the rest of your tracking
- Webflow → Adobe AnalyticsConnecting Webflow to Adobe Analytics
- Umbraco → Adobe AnalyticsConnecting Umbraco to Adobe Analytics
- Drupal Commerce → Adobe AnalyticsConnecting Drupal Commerce to Adobe Analytics
- Sanity → GA4Connecting Sanity to GA4
- Sanity → PostHogConnecting Sanity to PostHog
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Craft → Adobe AnalyticsConnecting Craft CMS to Adobe Analytics
- Duda → Adobe AnalyticsConnecting Duda to Adobe Analytics
Free · 30 min
Get Sanity and Adobe Analytics joined properly
Free30 minutesNo obligation
