Connecting Statamic to BigQuery
Statamic is a flat-file CMS on Laravel, usually chosen by agencies for content sites where commerce is bolted on rather than central. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Statamic or Laravel order record before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Statamic leads and orders in BigQuery, outside flat files
Write each Statamic form submission or order into BigQuery from a Laravel listener as it happens, keyed on the submission or order ID, with click IDs, UTM values and consent state from hidden fields. Do not write from cached templates. Keep submissions out of Git, deduplicate on submission ID, and reconcile weekly counts against Statamic's submissions.
Statamic can store form submissions as flat files, which is fine for an editor reading them and useless for analysis. If conversions matter, write each submission or order from a Laravel listener into BigQuery as it happens, keyed on the submission or order ID, with the click IDs, UTM values and consent state that the browser put into hidden fields. That gives you a table you can join to ad spend exports.
Check where those flat files go. If the site uses Statamic's Git automation, form submissions saved as files can end up committed to the repository along with content, which means names and emails sitting in Git history. For a site collecting leads, store submissions in a database or exclude the submissions path from Git, and treat the warehouse as the analytical copy.
The common break for this pair is that the table is filled from the wrong place. A template-level script on a statically cached page may never execute server-side, so a row written there is missing for most visitors without any error. Write from the application event only, deduplicate on the submission ID, and reconcile weekly counts against the submissions Statamic itself shows.
Statamic → BigQuery · what breaks
Why this join usually fails — Statamic → BigQuery
- 01
Whatever join key you decide on 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
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Statamic → BigQuery · the fix
What working looks like — Statamic → BigQuery
Whatever join key you decide on on every order
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
Statamic → BigQuery · architecture
How Statamic and BigQuery 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
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, 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
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Statamic → BigQuery · normal or broken
Working vs. broken, side by side — Statamic → BigQuery
Normal, not a fault
Whatever join key you decide on present on the order
Sent from your Laravel application's order event
Deduplicated correctly
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
Actually broken
Whatever join key you decide on 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
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
Statamic → BigQuery · diagnose
Diagnostic order — Statamic → BigQuery
- 01
Count orders carrying whatever join key you decide on
- 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
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
Statamic → BigQuery · prove
How it gets proven — Statamic → BigQuery
Source of truth
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
- Whatever join key you decide on confirmed present on a live order.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- Order data confirmed persisted on a purchase made while full static caching was active.
Statamic → BigQuery · free audit
What we check in the free audit
- Count orders carrying whatever join key you decide on
- Follow one real conversion end to end
- Check whether full static caching is enabled
- Reconcile warehouse order counts against each platform for one closed window
- 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 → BigQuery · when not to buy
When you don't need this — Statamic → BigQuery
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
- If commerce lives in a separate system entirely, work there — Statamic is the content layer.
- If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
Statamic → BigQuery · what we deliver
What gets built — Statamic → BigQuery
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 BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
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 → BigQuery questions, answered
Write them from a Laravel listener on the form submission event, keyed on the submission ID, with click IDs and UTMs from hidden fields. Don't rely on the flat files.
They can be, if submissions are saved as files and Git automation commits that path. For lead forms, store them in a database or exclude the path.
Almost always because whatever join key you decide on 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.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
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.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on Statamic → BigQuery
- Statamic → Google AdsConnecting Statamic to Google Ads
- Statamic → MetaConnecting Statamic to Meta Conversions API
- Statamic → GA4Connecting Statamic to GA4
RELATED GUIDES
Where Statamic → BigQuery fits in the rest of your tracking
- AEM → BigQueryConnecting Adobe Experience Manager to BigQuery
- Duda → BigQueryConnecting Duda to BigQuery
- Webflow → BigQueryConnecting Webflow to BigQuery
- Statamic → SegmentConnecting Statamic to Segment
- Statamic → SnowflakeConnecting Statamic to Snowflake
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Umbraco → BigQueryConnecting Umbraco to BigQuery
- Craft → BigQueryConnecting Craft CMS to BigQuery
Free · 30 min
Get Statamic and BigQuery joined properly
Free30 minutesNo obligation
