Connecting Statamic to Google Ads
Statamic is a flat-file CMS on Laravel, usually chosen by agencies for content sites where commerce is bolted on rather than central. Google Ads knows what you spent and which click it came from, and nothing at all about what happened afterwards. The join between them succeeds or fails on one thing: whether the GCLID reaches the Statamic or Laravel order record before the conversion happens, because Google Ads can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Statamic to Google Ads: gclid capture when pages are static files
Capture the gclid in the browser or an uncached endpoint, since Statamic's statically cached landing pages run no PHP, and persist it on the Laravel order. Upload the order to an import-type Google Ads conversion action from the order event with the order ID set, add enhanced conversions with hashed email, and send refunds as conversion adjustments on that ID.
With Statamic's full static caching, a landing page served from disk cannot write the gclid into a server-set cookie, because no PHP runs. Check how your static cache treats query strings: depending on configuration, a URL with a unique gclid may be served the cached file with no server capture, or may miss the cache and write a new cached file for every click. Either way, capture the gclid in the browser or through a small uncached endpoint, not in a template.
Persist it into your Laravel order table at checkout and upload the order to an import-type conversion action from the order event, with the order ID set so retries are rejected rather than double-counted. Enhanced conversions using the hashed email on the order is worth adding regardless, since it does not depend on the landing page surviving the cache.
Refunds are whatever your application defines, which helps here: wire the refund event in Laravel to send a retraction or restatement through conversion adjustments keyed on the same order ID. If commerce runs in an addon or an external checkout rather than your own tables, follow the order to wherever it is recorded and capture there.
Statamic → Google Ads · what breaks
Why this join usually fails — Statamic → Google Ads
- 01
The GCLID 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 conversion action is the wrong type
Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.
- 04
Nothing reconciles afterwards
Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.
Statamic → Google Ads · the fix
What working looks like — Statamic → Google Ads
The GCLID on every order
Conversions arriving in Google Ads
Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent — which is what lets Smart Bidding optimize toward revenue instead of toward form fills.
Reconciled against the source
Statamic → Google Ads · architecture
How Statamic and Google Ads 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
Google Ads needs a click to match
Google Ads matches an uploaded conversion back to a click using the GCLID. The conversion action must be created as an import type — an upload against a website-tag conversion action is rejected. Uploads must also land inside Google's window: the click has to be within the last 90 days.
- 3
The identifier is the bridge
The GCLID, 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
Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.
Statamic → Google Ads · normal or broken
Working vs. broken, side by side — Statamic → Google Ads
Normal, not a fault
The GCLID present on the order
Sent from your Laravel application's order event
Deduplicated correctly
Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.
Reconciles with the source
Actually broken
The GCLID 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
Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.
Nobody has reconciled it
Statamic → Google Ads · diagnose
Diagnostic order — Statamic → Google Ads
- 01
Count orders carrying the GCLID
- 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
Check the conversion action type and the upload diagnostics
In Google Ads, Goals → Conversions → Uploads shows every upload with its error rows. Read the errors rather than the success count; a file can import successfully with most rows rejected.
- 05
Read the match rate, not the success message
Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.
Statamic → Google Ads · prove
How it gets proven — Statamic → Google Ads
Source of truth
Whatever your Laravel application persists — Statamic's flat files hold content, not transactions.
- The GCLID confirmed present on a live order.
- The Uploads diagnostics read row by row, with the accepted count reconciled against conversions appearing in campaign reporting.
- Order data confirmed persisted on a purchase made while full static caching was active.
Statamic → Google Ads · free audit
What we check in the free audit
- Count orders carrying the GCLID
- Follow one real conversion end to end
- Check whether full static caching is enabled
- Check the conversion action type and the upload diagnostics
- 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 → Google Ads · when not to buy
When you don't need this — Statamic → Google Ads
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GCLID.
- If commerce lives in a separate system entirely, work there — Statamic is the content layer.
- If your sales close inside a few days and your website tag already reports accurately, you may not need offline import at all. It exists to solve the delay between click and revenue.
Statamic → Google Ads · what we deliver
What gets built — Statamic → Google Ads
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 Google Ads
Offline Conversion Import through the Google Ads API, or a scheduled upload. Enhanced conversions for leads where GCLID coverage is poor and you have consented email addresses.
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 → Google Ads questions, answered
With full static caching the landing page is a file served without PHP, so server-side capture never runs. Capture the gclid in the browser or an uncached endpoint and store it on the order.
Not from the static pages; your Laravel application can upload orders from its own order event to an import-type conversion action. Check whether any commerce addon you use already exposes such an event.
Almost always because the GCLID 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.
The GCLID — the click ID Google appends to your landing page URL when auto-tagging is on. For iOS App campaigns and some Shopping traffic you will see GBRAID or WBRAID instead, and those behave differently: WBRAID cannot be used with user-provided data in the same way, and neither joins to an individual user. Enhanced conversions for leads is the alternative path, matching on hashed email or phone rather than a click ID, and it is the right choice when GCLID coverage is poor.
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.
Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.
More on Statamic → Google Ads
- Google Ads · Lead → booked callHow to track lead to booked call for Google Ads
- Google Ads · Booked call → closed wonHow to track booked call to closed won for Google Ads
- Google Ads · Free trial → paidHow to track free trial to paid for Google Ads
RELATED GUIDES
Where Statamic → Google Ads fits in the rest of your tracking
- Google Ads · Local servicesGoogle Ads conversion tracking for local service businesses
- Google Ads · SaaSGoogle Ads conversion tracking for SaaS companies
- Google Ads × Ecommerce OrdersHow to reconcile Google Ads against your store's order table
- Google Ads · Comparison page → demoHow to track comparison page visit to demo request for Google Ads
- Sitecore → Google AdsConnecting Sitecore to Google Ads
- Statamic → RedditConnecting Statamic to Reddit
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Craft → Google AdsConnecting Craft CMS to Google Ads
Free · 30 min
Get Statamic and Google Ads joined properly
Free30 minutesNo obligation
