Skip to main content
Sanity → PinterestIntegration guide

Connecting Sanity to Pinterest

Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. Pinterest is a save-now-buy-later platform, which makes its attribution window the loosest of any network here and its conversion data the most delayed. The join between them succeeds or fails on one thing: whether the epik click identifier reaches the front-end conversion, not a Sanity record before the conversion happens, because Pinterest can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Sanity editorial sites and Pinterest: content earns the click

Render Rich Pin metadata from Sanity fields in server-side HTML. Capture epik on landing, persist it server-side, pass it to checkout, and send Pinterest's checkout event from the commerce order with the tag's event_id and hashed email. Send page_visit on every client-side route change, and check whether Pinterest's Shopify app covers a headless storefront.

Sanity often runs image-heavy editorial and commerce sites, such as recipe collections, home goods and fashion lookbooks, which is the content Pinterest rewards. Rich Pins read the page's metadata, and on a headless site that metadata is rendered by the front end from Sanity fields. Check that product and article pages output title, description, image and price metadata in the server-rendered HTML, not after hydration.

The conversion still lives in the commerce system. Capture the epik value on landing, persist it server-side, and pass it to checkout, then send the Pinterest checkout event from the order with the same event_id the tag used on the confirmation page. If you run headless Shopify, check whether Pinterest's Shopify app covers a custom storefront at all, or whether its events only fire on Shopify's own theme pages.

Route changes matter here too: the Pinterest tag's page_visit event has to be sent on each client-side navigation, or Pinterest only sees landing pages. Pinterest's save-now-buy-later behavior means editorial pins often convert months later with no epik left, so hashed email on the checkout event carries a large share of the matches.

Sanity → Pinterest · what breaks

Why this join usually fails — Sanity → Pinterest

  1. 01

    The epik 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

    The save-now-buy-later gap

    Pinterest's whole behaviour model is saving something for later. A share of the revenue it genuinely drives arrives months after the click and outside any attribution window, and no build changes that. Say it before anyone sets a target.

  4. 04

    Nothing reconciles afterwards

    Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.

Sanity → Pinterest · the fix

What working looks like — Sanity → Pinterest

  • The epik click identifier on every conversion

  • Conversions arriving in Pinterest

    Conversions appear in Pinterest Ads Manager against the campaign, with the value you sent, and become usable for optimization.

  • Reconciled against the source

Sanity → Pinterest · architecture

How Sanity and Pinterest 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

    Pinterest needs a click to match

    Pinterest matches server events using the click identifier where present and hashed customer information otherwise. Confirm current endpoint and field names against Pinterest's own documentation — its Conversions API has been through more than one revision.

  3. 3

    The identifier is the bridge

    The epik 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

    Pinterest deduplicates on event_id, so the tag and the server event must carry the same value for the same conversion. Pinterest volumes are often low enough that a doubling reads as a good week rather than a bug, which is why this needs testing deliberately rather than assuming.

Sanity → Pinterest · normal or broken

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

Normal, not a fault

  • The epik click identifier present on the conversion

  • Sent from your commerce or CRM system

  • Deduplicated correctly

    Pinterest deduplicates on event_id, so the tag and the server event must carry the same value for the same conversion. Pinterest volumes are often low enough that a doubling reads as a good week rather than a bug, which is why this needs testing deliberately rather than assuming.

  • Reconciles with the source

Actually broken

  • The epik 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

    Pinterest's whole behaviour model is saving something for later. A share of the revenue it genuinely drives arrives months after the click and outside any attribution window, and no build changes that. Say it before anyone sets a target.

  • Nobody has reconciled it

Sanity → Pinterest · diagnose

Diagnostic order — Sanity → Pinterest

  1. 01

    Count conversions carrying the epik 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

    Check the event delivery and match reporting in Pinterest Ads Manager

    Not the API response code. A 200 means Pinterest accepted the payload, not that it matched it to a click.

  5. 05

    Read the match rate, not the success message

    Pinterest Ads Manager reports events received and their match status. A successful API call is not a matched conversion — reconcile Pinterest's reported conversions against your own records for the same window and expect a structural gap from the save-then-buy delay.

Sanity → Pinterest · prove

How it gets proven — Sanity → Pinterest

Source of truth

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

  • The epik click identifier confirmed present on a live conversion.
  • Deduplication confirmed on a real conversion, and the attribution window your reporting uses stated explicitly.
  • The conversion confirmed sourced from the commerce system, with front-end routing verified separately.

Sanity → Pinterest · free audit

What we check in the free audit

  • Count conversions carrying the epik click identifier
  • Follow one real conversion end to end
  • Identify the front-end framework, not the CMS
  • Check the event delivery and match reporting in Pinterest Ads Manager
  • 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 → Pinterest · when not to buy

When you don't need this — Sanity → Pinterest

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the epik click identifier.
  • There is no Sanity-specific build. Fix the front end and the commerce integration; the CMS is not in the path.
  • If Pinterest is a small test line on your media plan, the Conversions API is more work than the signal is worth this quarter.

Sanity → Pinterest · what we deliver

What gets built — Sanity → Pinterest

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

    Server events to the Pinterest Conversions API with the click identifier, hashed customer data and a matched event_id.

  • 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 → Pinterest questions, answered

Yes, if the front end renders the metadata from Sanity fields in the server HTML. Check a page's source, not the rendered DOM.

Free · 30 min

Get Sanity and Pinterest joined properly

Free30 minutesNo obligation