Skip to main content
Sanity → NextdoorIntegration guide

Connecting Sanity to Nextdoor Ads

Sanity is a headless content platform, which means like every headless CMS it holds no commercial record and the tracking question lives elsewhere. Nextdoor is hyperlocal by construction, which makes it unusually good for home services and unusually easy to misread at low volume. The join between them succeeds or fails on one thing: whether the ndclid click identifier reaches the front-end conversion, not a Sanity record before the conversion happens, because Nextdoor can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Nextdoor ads to Sanity location pages: keep ndclid to the form

Land Nextdoor neighbourhood campaigns on matching Sanity location pages, capturing ndclid in middleware or client code into a first-party cookie since static pages run no server code. Send the quote or booking server-side to Nextdoor's Conversions API from the form tool or CRM, with ndclid, hashed email and phone and the pixel's event ID. Judge results by service area.

Local service businesses on Sanity usually generate a page per service area from location documents. Nextdoor campaigns targeted at specific neighbourhoods should land on the matching location page, and the conversion, a quote request or booked visit, has to carry ndclid from that landing. If location pages are statically generated, no server code reads the URL per visit, so capture ndclid in middleware or client code into a first-party cookie before the visitor moves to the contact route.

Send the conversion server-side to Nextdoor's Conversions API from the form tool or CRM, with ndclid, hashed email and phone, and the event identifier the pixel also used. Verify current field names against Nextdoor's documentation; it is a younger API than Meta's. Phone calls from a location page need call tracking as their own source of truth.

Per-neighbourhood landing pages split volume that is already small. Twenty location pages each showing one or two Nextdoor conversions a week will look like winners and losers by chance. Group results by the service area field on the Sanity location document and judge campaigns over weeks, not per page.

Sanity → Nextdoor · what breaks

Why this join usually fails — Sanity → Nextdoor

  1. 01

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

    Small numbers read as trends

    Hyperlocal audiences produce low weekly volumes. Three conversions instead of six looks like a fifty percent collapse and is usually noise, so judge Nextdoor over longer windows than you would use elsewhere.

  4. 04

    Nothing reconciles afterwards

    Nextdoor Ads Manager reports received and matched conversions. Reconcile against your own records over a month rather than a week — at these volumes shorter windows are noise.

Sanity → Nextdoor · the fix

What working looks like — Sanity → Nextdoor

  • The ndclid click identifier on every conversion

  • Conversions arriving in Nextdoor

    Conversions appear in Nextdoor Ads Manager against the campaign and neighbourhood targeting, with the value you sent.

  • Reconciled against the source

Sanity → Nextdoor · architecture

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

    Nextdoor Ads needs a click to match

    Nextdoor matches server events on the click identifier and hashed customer information. Verify the current Conversions API endpoint and field names against Nextdoor's own documentation — this is a younger API than Meta's.

  3. 3

    The identifier is the bridge

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

    Nextdoor deduplicates on an event identifier shared between the pixel and the Conversions API. At Nextdoor's typical volumes a doubling is easy to miss because the absolute numbers stay small, so this needs testing rather than assuming.

Sanity → Nextdoor · normal or broken

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

Normal, not a fault

  • The ndclid click identifier present on the conversion

  • Sent from your commerce or CRM system

  • Deduplicated correctly

    Nextdoor deduplicates on an event identifier shared between the pixel and the Conversions API. At Nextdoor's typical volumes a doubling is easy to miss because the absolute numbers stay small, so this needs testing rather than assuming.

  • Reconciles with the source

Actually broken

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

    Hyperlocal audiences produce low weekly volumes. Three conversions instead of six looks like a fifty percent collapse and is usually noise, so judge Nextdoor over longer windows than you would use elsewhere.

  • Nobody has reconciled it

Sanity → Nextdoor · diagnose

Diagnostic order — Sanity → Nextdoor

  1. 01

    Count conversions carrying the ndclid 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 volume before reading the trend

    If weekly conversions are in single figures, week-over-week comparison is not telling you anything about campaign performance.

  5. 05

    Read the match rate, not the success message

    Nextdoor Ads Manager reports received and matched conversions. Reconcile against your own records over a month rather than a week — at these volumes shorter windows are noise.

Sanity → Nextdoor · prove

How it gets proven — Sanity → Nextdoor

Source of truth

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

  • The ndclid click identifier confirmed present on a live conversion.
  • Deduplication confirmed on a real conversion, and the reporting window set long enough for the volume.
  • The conversion confirmed sourced from the commerce system, with front-end routing verified separately.

Sanity → Nextdoor · free audit

What we check in the free audit

  • Count conversions carrying the ndclid click identifier
  • Follow one real conversion end to end
  • Identify the front-end framework, not the CMS
  • Check the volume before reading the trend
  • 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 → Nextdoor · when not to buy

When you don't need this — Sanity → Nextdoor

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the ndclid 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 do not serve a defined local area, Nextdoor's entire value proposition does not apply to you.

Sanity → Nextdoor · what we deliver

What gets built — Sanity → Nextdoor

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

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

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

Read it in middleware or client code on landing and store it in a first-party cookie, then attach it to the form submission.

Free · 30 min

Get Sanity and Nextdoor joined properly

Free30 minutesNo obligation