Connecting Statamic to Meta Conversions API
Statamic is a flat-file CMS on Laravel, usually chosen by agencies for content sites where commerce is bolted on rather than central. Meta's pixel loses a large share of conversions to Safari, ad blockers and iOS, and the Conversions API exists because of it. The join between them succeeds or fails on one thing: whether the fbc and fbp values reaches the Statamic or Laravel order record before the conversion happens, because Meta can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Statamic to Meta CAPI: fbc set in the browser, sent from Laravel
Set Meta's _fbc in the browser, via the pixel or a small fbclid script, because cached Statamic pages run no PHP. Store _fbc and _fbp on the Laravel order, send Purchase from the order event with the order ID as event_id, and match the pixel to it. Keep the confirmation page uncached, and alert on queue failures.
Meta's _fbc cookie should be set when a visitor lands with an fbclid, and on a Statamic site with full static caching that has to happen in the browser, because the cached landing page never runs PHP. The Meta pixel does this when it loads; without a pixel, a small script that reads fbclid and writes _fbc in Meta's fb.1 format is enough. The Laravel checkout request then reads _fbc and _fbp and stores them on the order.
Send Purchase from the Laravel order event with the order ID as event_id, and have the browser pixel on the confirmation page use the same order ID. That pairing breaks in a Statamic-specific way: if the confirmation page is statically cached, the pixel fires with a stale order ID or none, and Meta stops deduplicating. Exclude the confirmation route from the cache, or fetch the order ID client-side from an uncached endpoint.
Because the Laravel event fires at the moment of payment, Meta's seven-day event_time limit is rarely the problem here; queue failures are. Events delivered late keep their original event_time, which is correct, but if a queue worker is down long enough for jobs to pass seven days, Meta rejects them, so alert on the queue.
Statamic → Meta · what breaks
Why this join usually fails — Statamic → Meta
- 01
The fbc and fbp values 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
Double counting from broken deduplication
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
- 04
Nothing reconciles afterwards
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Statamic → Meta · the fix
What working looks like — Statamic → Meta
The fbc and fbp values on every order
Conversions arriving in Meta
Events appear in Events Manager with an Event Match Quality score, deduplicated against the pixel, and become usable for optimization and attribution.
Reconciled against the source
Statamic → Meta · architecture
How Statamic and Meta 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
Meta Conversions API needs a click to match
Meta matches server events to people using whatever identifiers you send, hashed with SHA-256 where required. There is no single mandatory key, which is why quality varies so much between implementations — a poorly matched event is accepted, reported, and worth much less than it appears.
- 3
The identifier is the bridge
The fbc and fbp values, 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
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Statamic → Meta · normal or broken
Working vs. broken, side by side — Statamic → Meta
Normal, not a fault
The fbc and fbp values present on the order
Sent from your Laravel application's order event
Deduplicated correctly
Meta deduplicates on the pair of event_name and event_id. The browser pixel and the server event must send the same event_id for the same conversion, within the deduplication window. Get this wrong and every purchase counts twice — which is by far the most common Conversions API failure and it inflates reported ROAS rather than reducing it.
Reconciles with the source
Actually broken
The fbc and fbp values 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
Server and browser both fire, the event_id does not match, and Meta counts two purchases. Reported ROAS goes up, the business does not, and it can run for months before anyone reconciles against the store.
Nobody has reconciled it
Statamic → Meta · diagnose
Diagnostic order — Statamic → Meta
- 01
Count orders carrying the fbc and fbp values
- 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
Read Event Match Quality and the deduplication indicator
In Events Manager, open the event and check both. A low match quality means weak identifiers; a missing deduplication indicator means your event_id pairing is broken.
- 05
Read the match rate, not the success message
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
Statamic → Meta · prove
How it gets proven — Statamic → Meta
Source of truth
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
- The fbc and fbp values confirmed present on a live order.
- Deduplication confirmed in Events Manager on a real purchase, with the browser and server events visibly paired rather than counted twice.
- Order data confirmed persisted on a purchase made while full static caching was active.
Statamic → Meta · free audit
What we check in the free audit
- Count orders carrying the fbc and fbp values
- Follow one real conversion end to end
- Check whether full static caching is enabled
- Read Event Match Quality and the deduplication indicator
- 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 → Meta · when not to buy
When you don't need this — Statamic → Meta
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the fbc and fbp values.
- If commerce lives in a separate system entirely, work there — Statamic is the content layer.
- If you are not running Meta ads at meaningful spend, the Conversions API is effort without payoff. It earns its cost when the optimization signal is worth improving.
Statamic → Meta · what we deliver
What gets built — Statamic → Meta
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 Meta
Server-side events to the Conversions API with the event_id matched to the pixel, action_source set correctly, and customer data hashed before it leaves your infrastructure.
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 → Meta questions, answered
Capture _fbc and _fbp in the browser, store them on the order at checkout, and send Purchase from your Laravel order event with the order ID as event_id.
Often the confirmation page is statically cached, so the pixel's event_id does not match the server event. Exclude that route from the cache.
Almost always because the fbc and fbp values 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.
Two things. The _fbc cookie, derived from the fbclid parameter on the landing URL in the format fb.1.<timestamp>.<fbclid>, is the click identifier. The _fbp cookie is the browser identifier. Beyond those, Meta matches on hashed customer information — email, phone, name, city, country — and every additional field raises the Event Match Quality score. Unlike Google, Meta does not need a click ID at all if the customer data is good, but match quality drops noticeably without it.
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.
Events Manager shows received events, the deduplication state and an Event Match Quality score per event. Events arriving is not the test — deduplicated, well-matched events arriving is. Compare Meta's reported purchases against your store's order count for the same window.
More on Statamic → Meta
- Meta · Lead → booked callHow to track lead to booked call for Meta Ads
- Meta · Booked call → closed wonHow to track booked call to closed won for Meta Ads
- Meta · Free trial → paidHow to track free trial to paid for Meta Ads
RELATED GUIDES
Where Statamic → Meta fits in the rest of your tracking
- Meta · Local servicesMeta Ads conversion tracking for local service businesses
- Meta · B2BMeta Ads conversion tracking for B2B companies
- Meta × CRM DealsHow to reconcile Meta Ads against your CRM's closed-won deals
- Meta · Comparison page → demoHow to track comparison page visit to demo request for Meta Ads
- Sitecore → MetaConnecting Sitecore to Meta Conversions API
- Statamic → X AdsConnecting Statamic to X Ads
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Contentful → MetaConnecting Contentful to Meta Conversions API
Free · 30 min
Get Statamic and Meta joined properly
Free30 minutesNo obligation
