Skip to content
FunnelGuard

Fix guide by FunnelsGuard

_gcl_aw cookie not set after gclid landing: how to fix it

TRK-143High impactDetectedBy FunnelGuardPublished Updated
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.

Where the click ID is lost
  1. Ad clickURL carries ?gclid=...
  2. Landing pagePage loads with the gclid
  3. _gcl_aw cookieNot written
  4. Form or purchaseVisitor converts
  5. Google Ads reportConversion not matched to click

The cookie step breaks, so the conversion cannot be matched to the click.

Conversions reported in Google AdsExample numbers
Conversions reported in Google Ads (example)Cookie set: 90 conversions; Cookie missing: 20 conversions034699020Cookie setCookie missingconversions

Example: the same 100 real leads from ads, reported with and without the cookie being set.

How to check if your site has it

Test a gclid landing by hand
  1. Open a clean browser window

    Use a private window with no extensions that block trackers. Accept cookies if a banner appears.

  2. Load your landing page with a test gclid

    Visit https://yoursite.com/landing-page/?gclid=TEST123 using your real final URL.

  3. Check the cookies

    In Chrome press F12, open Application, then Cookies, and pick your domain. Look for _gcl_aw.

  4. 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.

  5. Test with consent denied

    Repeat after rejecting cookies. With ad_storage denied, the cookie is normally not written, which is expected.

Common causes and how to spot them
CauseSign
Conversion Linker or Google tag missingNo Google tag requests; cookie never appears even with consent
ad_storage deniedCookie appears only after accepting cookies
Redirect strips the gclidgclid is gone from the URL after load
Tag fires after the page navigates awayCookie only appears on the second page
Cookie domain or blocker issueCookie 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.

Make sure the cookie gets written
  1. Add a Conversion Linker tag

    In Tags, choose New, then Conversion Linker. Trigger it on Initialization - All Pages.

  2. Set consent requirements

    Under Advanced Settings, Consent Settings, require ad_storage. Make sure your banner updates consent when the visitor accepts.

  3. Preview and publish

    Use Preview with a ?gclid= URL, confirm the tag fires, then publish.

Google tag with consent defaults (replace AW-XXXXXXXXX)html
<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 -->
Landing with a gclid

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

Confirmation checks
  • 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.

Habits that keep it working
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.