Skip to main content
Statamic → AttentiveIntegration guide

Connecting Statamic to Attentive

Statamic is a flat-file CMS on Laravel, usually chosen by agencies for content sites where commerce is bolted on rather than central. 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 Statamic or Laravel order 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

Statamic SMS sign-ups to Attentive: consent and where numbers live

Most Statamic sites should use Attentive's own JavaScript sign-up units, which work on cached pages and handle opt-in language. If you build a Statamic form, post the number from a Laravel listener only when consent is checked, storing the disclosure text, checkbox state and timestamp. Check that Statamic's Git automation does not commit stored phone numbers into your repository.

Most Statamic sites can let Attentive's own sign-up units collect phone numbers; they run in JavaScript, so static caching does not affect them, and they handle the opt-in language and confirmation flow. Building your own Statamic form for SMS opt-in instead means you own the consent record: the exact disclosure text shown, the checkbox state and the timestamp, all of which you must send or store alongside the number.

If you do build it, post the number to Attentive from a Laravel listener on Statamic's form submission event, never from the template, and only when the consent field is checked. Check Attentive's subscriber API for how it expects the opt-in source and confirmation step, because an event about a number that never confirmed cannot be messaged.

The Statamic-specific risk is storage. Form submissions are saved in Statamic's storage by default, and Statamic's Git automation can include form submission paths in what it commits, so phone numbers can end up in your repository history. Check config/statamic/git.php and your form's store setting; if submissions only exist to forward to Attentive, turn off storing them, or exclude that path from Git.

Statamic → Attentive · what breaks

Why this join usually fails — Statamic → Attentive

  1. 01

    The subscriber's phone number never reaches Statamic

    Statamic's static caching serves pre-rendered files with no PHP execution at all, which means anything expecting server-side rendering per request simply does not run.

  2. 02

    Static caching bypassing PHP entirely

    Statamic's full static caching serves a file from disk. No PHP runs, so nothing dynamic happens — and this is invisible because the page looks perfect.

  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.

Statamic → Attentive · the fix

What working looks like — Statamic → Attentive

  • The subscriber's phone number on every order

  • 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

Statamic → Attentive · architecture

How Statamic and Attentive actually connect

  1. 1

    Statamic holds the truth

    Because Statamic sits on Laravel, the commercial record is usually a database table your developers defined. That is the source of truth and it is fully under your control.

  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 Statamic or Laravel order record.

  4. 4

    The event source decides reliability

    Fire from the application event. Static caching means the template that rendered the page may never have executed anything.

  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.

Statamic → Attentive · normal or broken

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

Normal, not a fault

  • The subscriber's phone number present on the order

  • Sent from your Laravel application's order event

  • 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

    Statamic's static caching serves pre-rendered files with no PHP execution at all, which means anything expecting server-side rendering per request simply does not run.

  • Sent from the browser

    Statamic's full static caching serves a file from disk. No PHP runs, so nothing dynamic happens — and this is invisible because the page looks perfect.

  • 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

Statamic → Attentive · diagnose

Diagnostic order — Statamic → Attentive

  1. 01

    Count orders carrying the subscriber's phone number

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether full static caching is enabled

    If it is, any per-request logic in a template is not running and never was.

  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.

Statamic → Attentive · prove

How it gets proven — Statamic → Attentive

Source of truth

Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.

  • The subscriber's phone number confirmed present on a live order.
  • Events confirmed on subscriber records with consent state verified, and a test proving a non-consented profile does not trigger a send.
  • Order data confirmed persisted on a purchase made while full static caching was active.

Statamic → Attentive · free audit

What we check in the free audit

  • Count orders carrying the subscriber's phone number
  • Follow one real conversion end to end
  • Check whether full static caching is enabled
  • Verify that events for non-consented customers cannot trigger a send
  • Read the match rate, not the success message

Checked against

Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.

Get my free conversion tracking audit

Free30 minutesNo obligation

Statamic → Attentive · when not to buy

When you don't need this — Statamic → Attentive

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the subscriber's phone number.
  • If commerce lives in a separate system entirely, work there — Statamic is the content layer.
  • 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.

Statamic → Attentive · what we deliver

What gets built — Statamic → Attentive

  • Identifier capture into Statamic

    Capture the identifier and persist it through a Laravel event listener into your own order table, entirely outside the static cache path.

  • Event source: your Laravel application's order event

    Fire from the application event. Static caching means the template that rendered the page may never have executed anything.

  • 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

    Whatever your application defines as a refund.

Written guarantee

95%+ tracking accuracy

Measured against Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Statamic → Attentive questions, answered

Yes, but you then own the consent record. Send the number server-side only when the opt-in box is checked, with the disclosure text you showed.

Free · 30 min

Get Statamic and Attentive joined properly

Free30 minutesNo obligation