On this page
What this issue is
When someone clicks your Google Ad with auto-tagging on, Google adds a gclid parameter to the landing page URL. Your site is then expected to save it in a first-party cookie called _gcl_aw. The cookie looks like GCL.1700000000.<gclid>.
Why it costs you leads or sales
Without the cookie, the conversion tag has no click ID to send when the visitor later submits a form or buys. Google Ads then cannot credit the conversion to the ad. Reports show fewer conversions, Smart Bidding learns from weaker data, and good campaigns can look like they are losing money.
- Ad clickURL carries ?gclid=...
- Landing pagePage loads with the gclid
- _gcl_aw cookieNot written
- Form or purchaseVisitor converts
- Google Ads reportConversion not matched to click
The cookie step breaks, so the conversion cannot be matched to the click.
Example: the same 100 real leads from ads, reported with and without the cookie being set.
How to check if your site has it
Open a clean browser window
Use a private window with no extensions that block trackers. Accept cookies if a banner appears.
Load your landing page with a test gclid
Visit https://yoursite.com/landing-page/?gclid=TEST123 using your real final URL.
Check the cookies
In Chrome press F12, open Application, then Cookies, and pick your domain. Look for _gcl_aw.
Check the URL and network
Confirm the gclid is still in the address bar after the page settles. If it vanished, a redirect stripped it.
Test with consent denied
Repeat after rejecting cookies. With ad_storage denied, the cookie is normally not written, which is expected.
| Cause | Sign |
|---|---|
| Conversion Linker or Google tag missing | No Google tag requests; cookie never appears even with consent |
| ad_storage denied | Cookie appears only after accepting cookies |
| Redirect strips the gclid | gclid is gone from the URL after load |
| Tag fires after the page navigates away | Cookie only appears on the second page |
| Cookie domain or blocker issue | Cookie shows on a different domain or not at all in some browsers |
How to fix it
Start by finding which cause applies, then use the tab for your platform. The fix is nearly always to make sure a Google tag or Conversion Linker runs on every page, after consent, with the gclid still in the URL.
Add a Conversion Linker tag
In Tags, choose New, then Conversion Linker. Trigger it on Initialization - All Pages.
Set consent requirements
Under Advanced Settings, Consent Settings, require ad_storage. Make sure your banner updates consent when the visitor accepts.
Preview and publish
Use Preview with a ?gclid= URL, confirm the tag fires, then publish.
Use one Google tag source
Add the Google tag through Site Kit by Google, GTM, or your theme, not several at once.
Check caching and optimisation plugins
Exclude the tag script from delay or defer-until-interaction options, which can stop it running before the visitor leaves.
Check redirect plugins
Make sure redirect or SEO plugins keep query strings when they redirect.
Connect the Google & YouTube app
Use the Google & YouTube sales channel, which sets up the Google tag. Check Settings, Customer events for conflicting pixels.
Check the Customer Privacy settings
In Settings, Customer privacy, confirm the banner region rules do not block marketing cookies for visitors who should be allowed.
Add the Google tag or GTM
In Site settings, Custom code, Head code, paste the Google tag or GTM snippet. Publish the site.
Check redirects
In Hosting, 301 redirects, make sure rules do not send gclid pages to a path without query strings.
Connect Google Ads through Marketing Integrations
Use Marketing Integrations or Google Tag settings to add the tag. Avoid adding the same tag by hand as well.
Review cookie banner settings
In the Wix cookie banner settings, check that advertising cookies are categorised so they run after acceptance.
Add the tag in Code Injection
In Settings, Advanced, Code Injection, add the Google tag to the Header. Publish.
Check the cookie banner
In Cookie Banner settings, make sure accepted marketing cookies allow the tag to run.
Add the tag to funnel and site tracking code
In the funnel or website Settings, Tracking Code, add the Google tag to the Head section on every page.
Check custom domains
Test on your live domain, not the preview link, and confirm no redirect drops the query string.
Load the Google tag in the head of every page
Use the snippet below with your own ID. It writes _gcl_aw when ad_storage is granted.
Keep the query string on redirects
Make server redirects pass the full query string through.
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});
gtag('js', new Date());
gtag('config', 'AW-XXXXXXXXX');
</script>
<!-- Your cookie banner must call gtag('consent','update',{ad_storage:'granted'}) on acceptance -->Before
- URL has ?gclid=...
- No Conversion Linker on the page
- No _gcl_aw cookie
- Conversions not matched to ads
After
- URL has ?gclid=...
- Conversion Linker fires after consent
- _gcl_aw cookie is set
- Conversions matched to the click
How to confirm it's fixed
- A page loaded with ?gclid=TEST123 shows a _gcl_aw cookie after consent is granted
- The gclid is still in the URL after redirects
- The cookie is on your own domain, not a third party
- In GTM Preview, the Conversion Linker or Google tag fires on the landing page
- A test conversion appears in Google Ads or Tag Assistant with the click ID attached
- The check passes on mobile as well as desktop
How to prevent it happening again
The cookie usually breaks after a change somewhere else: a new cookie banner, a theme update, a redirect rule or a tag clean-up. Retest with a gclid URL after each of these.
- Keep one Google tag setup per site
- Retest a gclid landing after banner, theme or redirect changes
- Review GTM changes before publishing
- Keep a written list of redirect rules and confirm they keep query strings
- Run a scheduled check so you hear about breakage early
How FunnelGuard handles this
FunnelGuard detects this issue today. Its robot visitor loads your landing page on a schedule, from the EU or the US, and checks the tracking that should result, including whether the Google Ads cookie and tracking hits appear. If a check fails, it is re-checked from a second region before one alert goes out, by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.
Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. It never clicks real ads and does not bypass CAPTCHAs or bot protection. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my _gcl_aw cookie not being set?
The most common reasons are a missing Conversion Linker or Google tag, ad_storage consent being denied, or a redirect that removes the gclid before the tag runs. Check that the tag fires on the landing page and that the gclid stays in the URL.
What is the _gcl_aw cookie used for?
It is a first-party cookie that stores the Google Ads click ID (gclid). When the visitor later converts, the conversion tag reads it so Google Ads can match the conversion to the ad click.
Does Google Ads still count conversions without the _gcl_aw cookie?
Sometimes, through other signals such as consent mode modelling or enhanced conversions, but it is less reliable. Without the click ID, many conversions cannot be tied to the click and may go unreported.
How do I check if _gcl_aw is set?
Open your landing page with ?gclid=TEST123, press F12 in Chrome, go to Application, then Cookies, and select your domain. Look for a cookie named _gcl_aw. Do the test after accepting cookies.
Why is there a gclid in the URL but no cookie?
The page received the click ID, but nothing saved it. Usually the Conversion Linker is missing or blocked by consent, or the tag loads too late or is delayed by an optimisation plugin.
Do I need a Conversion Linker tag if I use gtag.js?
With the Google tag set up through gtag.js, linking is normally handled for you. In Google Tag Manager, add a Conversion Linker tag on all pages so the click ID is saved.
Does a cookie banner stop _gcl_aw from being set?
Yes, if ad_storage is denied, which is expected. It becomes a problem if the banner never sends a consent update after the visitor accepts, so the cookie is never written.
Related issues
- TRK-142Conversion Linker tag missingFix guide
- TRK-144gclid stripped by redirect to www / httpsFix guide
- TRK-145gclid stripped by trailing-slash or language redirectFix guide
- TRK-146gclid stripped by cookie banner reloadFix guide
- TRK-148gclid not stored in hidden form field / CRMFix guide
- TRK-149Auto-tagging off in Google Ads (no gclid on clicks)Fix guide