Skip to main content
Contentful → AttentiveIntegration guide

Connecting Contentful to Attentive

Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. Attentive is SMS, where the identifier is a phone number, the consent rules are legal rather than advisory, and a mistake reaches the customer's pocket within seconds. The join between them succeeds or fails on one thing: whether the subscriber's phone number reaches the front-end conversion, not a Contentful record before the conversion happens, because Attentive can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Contentful storefronts and Attentive: the tag the theme used to add

On a headless Contentful storefront, Attentive's theme-injected tag usually disappears, so install it in the front-end app yourself and fire it on client-side route changes. Send product viewed events with the commerce product ID, not the Contentful entry ID; orders still come from the commerce backend. Never wire Contentful publish webhooks to Attentive as subscriber events.

A common Contentful build is a headless storefront with Shopify or another commerce engine behind it. Attentive's commerce app integrations typically inject Attentive's tag through the platform's own theme. A headless front end does not render that theme, so the sign-up unit, browse and add-to-cart events can quietly disappear while order events, sent from the commerce backend, keep arriving. Check which events your integration still delivers.

Install Attentive's tag in the front-end application yourself, and make sure it reacts to client-side route changes. Sign-up units with page-targeting rules evaluate on page load, so on a single-page app a unit set for product pages may never show after the first navigation. Browse abandonment journeys need the product viewed event on each route, carrying the commerce product ID, not the Contentful entry ID.

Do not wire Contentful publish webhooks to Attentive as subscriber events. A webhook fires when an editor publishes, with no subscriber attached. If you want a text when a new collection page goes live, that is a campaign someone schedules in Attentive against a consented segment, not an automated event. A republished typo fix would otherwise text the whole list again.

Contentful → Attentive · what breaks

Why this join usually fails — Contentful → Attentive

  1. 01

    The subscriber's phone number never reaches Contentful

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  2. 02

    Blaming the CMS for a front-end problem

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  3. 03

    Consent state treated as a tracking detail rather than a legal one

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  4. 04

    Nothing reconciles afterwards

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

Contentful → Attentive · the fix

What working looks like — Contentful → Attentive

  • The subscriber's phone number on every conversion

  • Conversions arriving in Attentive

    The event lands on the subscriber, triggers the journeys that depend on it, and becomes available for segmentation.

  • Reconciled against the source

Contentful → Attentive · architecture

How Contentful and Attentive actually connect

  1. 1

    Contentful holds the truth

    Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.

  2. 2

    Attentive needs a click to match

    Attentive needs the subscriber's phone number, the event name and its properties. It also needs the subscriber to have consented — an event about someone who never opted in cannot legally be messaged, whatever the event says.

  3. 3

    The identifier is the bridge

    The subscriber's phone number, captured at the visit and carried into the front-end conversion, not a Contentful record.

  4. 4

    The event source decides reliability

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  5. 5

    Deduplication at the destination

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

Contentful → Attentive · normal or broken

Working vs. broken, side by side — Contentful → Attentive

Normal, not a fault

  • The subscriber's phone number present on the conversion

  • Sent from your commerce, CRM or billing system

  • Deduplicated correctly

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

  • Reconciles with the source

Actually broken

  • The subscriber's phone number missing on most records

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  • Sent from the browser

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  • Counted twice, or not at all

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  • Nobody has reconciled it

Contentful → Attentive · diagnose

Diagnostic order — Contentful → Attentive

  1. 01

    Count conversions carrying the subscriber's phone number

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish which system holds the conversion before anything else

    In a headless stack it is never the CMS, and starting there wastes the engagement.

  4. 04

    Verify that events for non-consented customers cannot trigger a send

    Check the journey's entry conditions, not the event pipeline. The pipeline will happily deliver an event about someone who never opted in; the journey is what must refuse to act on it.

  5. 05

    Read the match rate, not the success message

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

Contentful → Attentive · prove

How it gets proven — Contentful → Attentive

Source of truth

Whatever system takes the money — Contentful holds none of it.

  • The subscriber's phone number confirmed present on a live conversion.
  • Events confirmed on subscriber records with consent state verified, and a test proving a non-consented profile does not trigger a send.
  • The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.

Contentful → Attentive · free audit

What we check in the free audit

  • Count conversions carrying the subscriber's phone number
  • Follow one real conversion end to end
  • Establish which system holds the conversion before anything else
  • Verify that events for non-consented customers cannot trigger a send
  • Read the match rate, not the success message

Checked against

Whatever system takes the money — Contentful holds none of it.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contentful → Attentive · when not to buy

When you don't need this — Contentful → Attentive

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the subscriber's phone number.
  • There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
  • If you do not have a consented SMS list, the integration is the least of the work. Building the list compliantly comes first, and no event pipeline substitutes for it.

Contentful → Attentive · what we deliver

What gets built — Contentful → Attentive

  • Identifier capture into Contentful

    Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.

  • Event source: your commerce, CRM or billing system

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  • Dispatch to Attentive

    The Attentive events API, posted server-side from your order system with the subscriber's phone number and the event properties.

  • Reversals where they exist

    Handled wherever the money lives.

Written guarantee

95%+ tracking accuracy

Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contentful → Attentive questions, answered

Yes, but the tag usually has to be installed in your front-end app by hand, because platform theme injection does not reach a headless site.

Free · 30 min

Get Contentful and Attentive joined properly

Free30 minutesNo obligation