Connecting Statamic to Customer.io
Statamic is a flat-file CMS on Laravel, usually chosen by agencies for content sites where commerce is bolted on rather than central. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Statamic or Laravel order record before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Statamic forms to Customer.io: keep staging out of live campaigns
Send identify and event calls to Customer.io from a Laravel listener on Statamic's form submission event, keyed on email, with every attribute campaigns read: form handle, source entry, consent state. Give staging and local their own workspaces or no credentials, so tests do not trigger real sequences. Check the honeypot first and consider waiting for double opt-in.
Customer.io acts on events the moment they arrive, and Statamic projects usually run several environments, local, staging and production, each with its own .env file. The pair-specific accident is a staging site sharing production's Customer.io credentials: an editor tests the newsletter form on staging and a real welcome sequence starts for a real address. Give each environment its own Customer.io workspace, or no credentials at all outside production.
Send the identify and the event from a Laravel listener on Statamic's form submission event, with the person identifier set from the email, and include every attribute your campaign conditions read: form handle, page or entry it was submitted from, consent checkbox state. A missing attribute does not stop the campaign; it sends a message with an empty placeholder.
Statamic forms carry a honeypot field, and spam that slips past it still triggers the listener. Check the honeypot before forwarding, and consider waiting for confirmation, such as a double opt-in link, before identifying the person in Customer.io. Otherwise bot submissions with real victims' addresses get onboarding emails, which damages sender reputation and annoys people who never visited the site.
Statamic → Customer.io · what breaks
Why this join usually fails — Statamic → Customer.io
- 01
The person identifier you assign 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.
- 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.
- 03
A test event sending a real email
Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.
- 04
Nothing reconciles afterwards
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
Statamic → Customer.io · the fix
What working looks like — Statamic → Customer.io
The person identifier you assign on every order
Conversions arriving in Customer.io
The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.
Reconciled against the source
Statamic → Customer.io · architecture
How Statamic and Customer.io actually connect
- 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
Customer.io needs a click to match
Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.
- 3
The identifier is the bridge
The person identifier you assign, captured at the visit and carried into the Statamic or Laravel order record.
- 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
Deduplication at the destination
Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.
Statamic → Customer.io · normal or broken
Working vs. broken, side by side — Statamic → Customer.io
Normal, not a fault
The person identifier you assign present on the order
Sent from your Laravel application's order event
Deduplicated correctly
Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.
Reconciles with the source
Actually broken
The person identifier you assign 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
Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.
Nobody has reconciled it
Statamic → Customer.io · diagnose
Diagnostic order — Statamic → Customer.io
- 01
Count orders carrying the person identifier you assign
- 02
Follow one real conversion end to end
- 03
Check whether full static caching is enabled
If it is, any per-request logic in a template is not running and never was.
- 04
Confirm which workspace you are writing to before sending anything
Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.
- 05
Read the match rate, not the success message
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
Statamic → Customer.io · prove
How it gets proven — Statamic → Customer.io
Source of truth
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
- The person identifier you assign confirmed present on a live order.
- Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
- Order data confirmed persisted on a purchase made while full static caching was active.
Statamic → Customer.io · free audit
What we check in the free audit
- Count orders carrying the person identifier you assign
- Follow one real conversion end to end
- Check whether full static caching is enabled
- Confirm which workspace you are writing to before sending anything
- Read the match rate, not the success message
Checked against
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
Free30 minutesNo obligation
Statamic → Customer.io · when not to buy
When you don't need this — Statamic → Customer.io
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the person identifier you assign.
- If commerce lives in a separate system entirely, work there — Statamic is the content layer.
- If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.
Statamic → Customer.io · what we deliver
What gets built — Statamic → Customer.io
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 Customer.io
The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.
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.
From $400 · See packages
FAQ
Statamic → Customer.io questions, answered
Use a Laravel listener on Statamic's form submission event to identify the person and track the event server-side, with every attribute your campaigns reference.
Staging is probably using production's Customer.io credentials. Give each environment its own workspace or no credentials.
Almost always because the person identifier you assign never reached the Statamic or Laravel order record. 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. Measure coverage before debugging the dispatch.
Customer.io identifies people by an ID you control, with email as a common choice. Anonymous events can be sent and later merged, but a mismatch creates a second profile — and a second profile means a second copy of every campaign that person is enrolled in.
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.
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
More on Statamic → Customer.io
- Stripe → Customer.ioConnecting Stripe to Customer.io
- PayPal → Customer.ioConnecting PayPal to Customer.io
- Shopify → Customer.ioConnecting Shopify to Customer.io
RELATED GUIDES
Where Statamic → Customer.io fits in the rest of your tracking
- Duda → Customer.ioConnecting Duda to Customer.io
- Concrete CMS → Customer.ioConnecting Concrete CMS to Customer.io
- Craft → Customer.ioConnecting Craft CMS to Customer.io
- Statamic → AttentiveConnecting Statamic to Attentive
- Statamic → Marketing CloudConnecting Statamic to Salesforce Marketing Cloud
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sanity → Customer.ioConnecting Sanity to Customer.io
- Sitecore → Customer.ioConnecting Sitecore to Customer.io
Free · 30 min
Get Statamic and Customer.io joined properly
Free30 minutesNo obligation
