Skip to main content
Sanity → OutbrainIntegration guide

Connecting Sanity to Outbrain

Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. Outbrain is the other major native discovery network, with the same audience-intent problem and its own conversion configuration. The join between them succeeds or fails on one thing: whether the Outbrain click identifier reaches the front-end conversion, not a Sanity record before the conversion happens, because Outbrain can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Outbrain to Sanity articles: count actions deeper than the read

Do not optimize Outbrain on promoted article views. Define deeper conversions, such as newsletter sign-ups or clicks to a product, fired from the front end including after route changes. Render product links through one component that carries Outbrain's click identifier to the store, which sends the purchase server-side with a shared event ID. Keep publisher widget activity separate.

Outbrain campaigns usually promote articles, and on a Sanity site those are the brand's editorial documents. A view of the promoted article is not a conversion worth optimizing on; Outbrain will find people who open it and leave. Define conversions in Outbrain for actions one step deeper, a newsletter sign-up, a click from the article to a product, or a second article, and fire them from the front end on the actual action, including after client-side route changes.

When the article sends readers to a store on another domain, the Outbrain click identifier must travel with them. Render product links from Sanity references through one link component that carries the identifier, rather than letting editors hand-type URLs in Portable Text, where nobody will remember to add it. The store then sends the purchase server-side with the identifier and the event ID shared with the pixel.

If your Sanity site is also an Outbrain publisher, showing its recommendation widget to earn revenue, keep the two relationships apart. Widget clicks out are not your conversions, and on a client-routed site the widget needs refreshing on route changes per Outbrain's publisher guidance, a separate job from the advertiser pixel.

Sanity → Outbrain · what breaks

Why this join usually fails — Sanity → Outbrain

  1. 01

    The Outbrain click identifier 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.

  2. 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.

  3. 03

    Shallow conversions on discovery traffic

    A newsletter signup from discovery traffic converts to revenue at a very different rate than the same signup from search. Optimizing on the shallow event flatters the channel and misleads the budget.

  4. 04

    Nothing reconciles afterwards

    Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.

Sanity → Outbrain · the fix

What working looks like — Sanity → Outbrain

  • The Outbrain click identifier on every conversion

  • Conversions arriving in Outbrain

    Conversions appear against campaigns and publisher sections, which is the level at which the channel is actually managed.

  • Reconciled against the source

Sanity → Outbrain · architecture

How Sanity and Outbrain actually connect

  1. 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. 2

    Outbrain needs a click to match

    Outbrain matches server events on the click identifier and hashed customer information, against conversion definitions configured in its interface.

  3. 3

    The identifier is the bridge

    The Outbrain click identifier, captured at the visit and carried into the front-end conversion, not a Sanity record.

  4. 4

    The event source decides reliability

    Send from wherever the money is recorded, not from the content layer.

  5. 5

    Deduplication at the destination

    Outbrain deduplicates on a shared event identifier between the pixel and the server event.

Sanity → Outbrain · normal or broken

Working vs. broken, side by side — Sanity → Outbrain

Normal, not a fault

  • The Outbrain click identifier present on the conversion

  • Sent from your commerce or CRM system

  • Deduplicated correctly

    Outbrain deduplicates on a shared event identifier between the pixel and the server event.

  • Reconciles with the source

Actually broken

  • The Outbrain click identifier 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 newsletter signup from discovery traffic converts to revenue at a very different rate than the same signup from search. Optimizing on the shallow event flatters the channel and misleads the budget.

  • Nobody has reconciled it

Sanity → Outbrain · diagnose

Diagnostic order — Sanity → Outbrain

  1. 01

    Count conversions carrying the Outbrain click identifier

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    Compare downstream conversion rates for discovery traffic against your other channels

    If they differ substantially — and they usually do — the conversion you optimize toward has to sit deeper in the funnel here.

  5. 05

    Read the match rate, not the success message

    Outbrain reports at campaign and section level. Reconcile against your own records, and compare the downstream conversion rate of discovery traffic against your other channels before judging the numbers.

Sanity → Outbrain · prove

How it gets proven — Sanity → Outbrain

Source of truth

Your commerce, CRM or billing system — Sanity has no orders and no customers.

  • The Outbrain click identifier confirmed present on a live conversion.
  • Downstream conversion rate for Outbrain traffic measured separately from other channels.
  • The conversion confirmed sourced from the commerce system, with front-end routing verified separately.

Sanity → Outbrain · free audit

What we check in the free audit

  • Count conversions carrying the Outbrain click identifier
  • Follow one real conversion end to end
  • Identify the front-end framework, not the CMS
  • Compare downstream conversion rates for discovery traffic against your other channels
  • Read the match rate, not the success message

Checked against

Your commerce, CRM or billing system — Sanity has no orders and no customers.

Get my free conversion tracking audit

Free30 minutesNo obligation

Sanity → Outbrain · when not to buy

When you don't need this — Sanity → Outbrain

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the Outbrain click identifier.
  • There is no Sanity-specific build. Fix the front end and the commerce integration; the CMS is not in the path.
  • If you have no top-of-funnel content worth discovering, native placement has nothing to work with regardless of measurement.

Sanity → Outbrain · what we deliver

What gets built — Sanity → Outbrain

  • 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 Outbrain

    Server events to Outbrain's conversions endpoint with the click identifier and hashed customer data.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Sanity → Outbrain questions, answered

Something past the landing article: a sign-up, a product click or a second article view, defined in Outbrain and fired on that action.

Free · 30 min

Get Sanity and Outbrain joined properly

Free30 minutesNo obligation