Connecting Sanity to Iterable
Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. Iterable orchestrates journeys across email, push, SMS and in-app from one user profile, which means a single mis-shaped event can trigger four channels at once. The join between them succeeds or fails on one thing: whether the user ID or email on the profile reaches the front-end conversion, not a Sanity record before the conversion happens, because Iterable can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Sanity content in Iterable journeys: sync deletes, not just publishes
Use a Sanity publish webhook to upsert one Iterable Catalog item per document, keyed on the Sanity _id, with title, URL, image and category projected in GROQ, after confirming Catalog is on your plan. Subscribe to delete events, update URLs on slug changes, and pin the projection to flat strings. User events come from commerce or your app.
Iterable's Catalog lets journeys pull recommendations from a content collection without an API call per send. A Sanity publish webhook can upsert one catalog item per document, an article, recipe or product story, keyed on the Sanity _id, with title, URL, image and category projected in GROQ. Confirm Catalog is available on your Iterable plan before designing around it.
The failure is the half of the sync nobody builds. When an editor unpublishes or deletes a document in Sanity, the catalog item stays, and a journey can keep recommending it by email, push and SMS, each linking to a 404. Subscribe the webhook to delete events and remove the item, and update the URL field when a slug changes rather than creating a second item.
Journeys branch on fields, so the projection must stay stable. If editors restructure categories in Sanity, say by replacing a string with a reference, the category field arrives empty and the journey takes the wrong path without any error. Pin the GROQ projection to output flat strings with defaults. Purchases and sign-ups still reach Iterable from commerce or your app under userId or email; Sanity never sends user events.
Sanity → Iterable · what breaks
Why this join usually fails — Sanity → Iterable
- 01
The user ID or email on the profile 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
One duplicate, four channels
Cross-channel orchestration multiplies the cost of a bad event. Where a duplicate in an ad platform is a reporting error, here it reaches the customer on their phone, in their inbox and inside the app, about a single purchase.
- 04
Nothing reconciles afterwards
Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.
Sanity → Iterable · the fix
What working looks like — Sanity → Iterable
The user ID or email on the profile on every conversion
Conversions arriving in Iterable
The event lands on the user profile, evaluates against every running journey, and may trigger sends across several channels immediately.
Reconciled against the source
Sanity → Iterable · architecture
How Sanity and Iterable 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
Iterable needs a click to match
The user identifier, the event name and the data fields the journey conditions reference. A journey branching on a field that arrives empty will take the wrong path silently.
- 3
The identifier is the bridge
The user ID or email on the profile, 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
Iterable does not deduplicate events. A purchase sent twice can advance a journey twice, and because journeys span channels the duplicate can produce an email, a push and an SMS about one order.
Sanity → Iterable · normal or broken
Working vs. broken, side by side — Sanity → Iterable
Normal, not a fault
The user ID or email on the profile present on the conversion
Sent from your commerce or CRM system
Deduplicated correctly
Iterable does not deduplicate events. A purchase sent twice can advance a journey twice, and because journeys span channels the duplicate can produce an email, a push and an SMS about one order.
Reconciles with the source
Actually broken
The user ID or email on the profile 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
Cross-channel orchestration multiplies the cost of a bad event. Where a duplicate in an ad platform is a reporting error, here it reaches the customer on their phone, in their inbox and inside the app, about a single purchase.
Nobody has reconciled it
Sanity → Iterable · diagnose
Diagnostic order — Sanity → Iterable
- 01
Count conversions carrying the user ID or email on the profile
- 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
Send a test event and read every journey it entered
Not just whether the event arrived — which journeys it triggered and what each one sent. That is the blast radius.
- 05
Read the match rate, not the success message
Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.
Sanity → Iterable · prove
How it gets proven — Sanity → Iterable
Source of truth
Your commerce, CRM or billing system — Sanity has no orders and no customers.
- The user ID or email on the profile confirmed present on a live conversion.
- Purchases confirmed on single user profiles with the triggered journeys verified, tested in a non-production project first.
- The conversion confirmed sourced from the commerce system, with front-end routing verified separately.
Sanity → Iterable · free audit
What we check in the free audit
- Count conversions carrying the user ID or email on the profile
- Follow one real conversion end to end
- Identify the front-end framework, not the CMS
- Send a test event and read every journey it entered
- 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 → Iterable · when not to buy
When you don't need this — Sanity → Iterable
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the user ID or email on the profile.
- There is no Sanity-specific build. Fix the front end and the commerce integration; the CMS is not in the path.
- If you send on a schedule rather than on behaviour, a simpler email platform does the job without the cross-channel blast radius.
Sanity → Iterable · what we deliver
What gets built — Sanity → Iterable
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 Iterable
The Iterable events API, posted server-side with the user identifier and event fields.
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 → Iterable questions, answered
Sync published documents into an Iterable Catalog from a Sanity webhook, keyed on document ID, and handle deletes as well as publishes.
The sync only handles publishes. Remove catalog items on Sanity delete and unpublish events.
Almost always because the user ID or email on the profile 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.
Iterable resolves to a user by userId or email. Sending an event with an email that does not exist creates a new user rather than updating one, which fragments the profile and means a customer can sit in two journeys simultaneously with neither complete.
Your commerce or CRM system. Send from wherever the money is recorded, not from the content layer.
Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.
More on Sanity → Iterable
- Sanity → Google AdsConnecting Sanity to Google Ads
- Sanity → MetaConnecting Sanity to Meta Conversions API
- Sanity → GA4Connecting Sanity to GA4
RELATED GUIDES
Where Sanity → Iterable fits in the rest of your tracking
- Webflow → IterableConnecting Webflow to Iterable
- Contentful → IterableConnecting Contentful to Iterable
- Sitecore → IterableConnecting Sitecore to Iterable
- Sanity → AttentiveConnecting Sanity to Attentive
- Sanity → BrazeConnecting Sanity to Braze
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Concrete CMS → IterableConnecting Concrete CMS to Iterable
- Craft → IterableConnecting Craft CMS to Iterable
Free · 30 min
Get Sanity and Iterable joined properly
Free30 minutesNo obligation
