Connecting Contentful to Google Ads
Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. 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 front-end conversion, not a Contentful 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
Contentful sites and Google Ads: keep the gclid across routes
On a headless Contentful site, persist gclid, gbraid and wbraid in a first-party cookie set by Next.js middleware or the Nuxt server layer, since client-side routing strips the query string. Pass the click ID to the commerce platform or CRM, which uploads to an import conversion action with hashed email. Test that cached CDN pages still set the cookie.
On a headless Contentful build, the gclid arrives on the first URL and is often gone after the first client-side navigation, because the router rewrites the URL without the query string. If nothing stored it, the form handler or checkout on a later page has no click ID to attach. Persist it on landing in a first-party cookie set by the front-end server (Next.js middleware or the Nuxt server layer) rather than only in JavaScript, so Safari's cap on script-written cookies does not cut it short.
Capture gbraid and wbraid as well. iOS traffic often arrives with those instead of a gclid, and a front end that only reads gclid drops those clicks entirely. Pass whichever is present with the submission into the system of record: the commerce platform for a purchase, the CRM for a lead. That system uploads to an import-type conversion action, with hashed email for enhanced conversions when no click ID exists.
A Contentful-specific trap is caching. If landing pages are served statically or through incremental regeneration from a CDN, code that sets the gclid cookie may not run on cached responses, depending on your host and configuration. Test with a real ad click against production, not local development, and confirm the cookie exists on the second page. Contentful itself has no role in the conversion action, and a quote that includes a Contentful-side Google Ads build is billing for the wrong system.
Contentful → Google Ads · what breaks
Why this join usually fails — Contentful → Google Ads
- 01
The GCLID never reaches Contentful
Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.
- 02
Blaming the CMS for a front-end problem
Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.
- 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.
Contentful → Google Ads · the fix
What working looks like — Contentful → Google Ads
The GCLID on every conversion
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
Contentful → Google Ads · architecture
How Contentful and Google Ads actually connect
- 1
Contentful holds the truth
Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.
- 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 front-end conversion, not a Contentful record.
- 4
The event source decides reliability
Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
- 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.
Contentful → Google Ads · normal or broken
Working vs. broken, side by side — Contentful → Google Ads
Normal, not a fault
The GCLID present on the conversion
Sent from your commerce, CRM or billing system
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
Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.
Sent from the browser
Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.
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
Contentful → Google Ads · diagnose
Diagnostic order — Contentful → Google Ads
- 01
Count conversions carrying the GCLID
- 02
Follow one real conversion end to end
- 03
Establish which system holds the conversion before anything else
In a headless stack it is never the CMS, and starting there wastes the engagement.
- 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.
Contentful → Google Ads · prove
How it gets proven — Contentful → Google Ads
Source of truth
Whatever system takes the money — Contentful holds none of it.
- The GCLID confirmed present on a live conversion.
- The Uploads diagnostics read row by row, with the accepted count reconciled against conversions appearing in campaign reporting.
- The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.
Contentful → Google Ads · free audit
What we check in the free audit
- Count conversions carrying the GCLID
- Follow one real conversion end to end
- Establish which system holds the conversion before anything else
- Check the conversion action type and the upload diagnostics
- Read the match rate, not the success message
Checked against
Whatever system takes the money — Contentful holds none of it.
Free30 minutesNo obligation
Contentful → Google Ads · when not to buy
When you don't need this — Contentful → Google Ads
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the GCLID.
- There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
- 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.
Contentful → Google Ads · what we deliver
What gets built — Contentful → Google Ads
Identifier capture into Contentful
Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.
Event source: your commerce, CRM or billing system
Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
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
Handled wherever the money lives.
Written guarantee
95%+ tracking accuracy
Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Contentful → Google Ads questions, answered
In a first-party cookie set server-side on the landing request, then copied into the order or lead record at submission. Contentful never needs to see it.
Usually the gclid was in the first URL and discarded by client-side routing or a cached response before the form or checkout. Check for the cookie on the second page of a test visit from an ad click.
Almost always because the GCLID never reached the front-end conversion, not a Contentful record. Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis. 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 commerce, CRM or billing system. Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
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 Contentful → 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 Contentful → 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 · Lead magnet → saleHow to track lead magnet to sale for Google Ads
- Ghost → Google AdsConnecting Ghost memberships to Google Ads
- Contentful → NextdoorConnecting Contentful to Nextdoor Ads
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Umbraco → Google AdsConnecting Umbraco to Google Ads
Free · 30 min
Get Contentful and Google Ads joined properly
Free30 minutesNo obligation
