On this page
What this issue is
When someone clicks your Google Ad, Google adds a gclid (Google click ID) to the landing page URL. Your Google tags read it and save it in a first-party cookie (usually _gcl_aw). Later, when the visitor converts, that stored value links the conversion back to the click.
Some consent banners (cookie banners) handle the Accept button by reloading the page, or by redirecting to the same URL without its query string. The new page loads without the gclid. If consent was not yet granted, the tags may not have saved the click ID before the reload, so it is gone for good.
- Ad clickLanding URL has ?gclid=abc123
- Banner shownAd storage not yet granted, gclid not saved
- Accept, page reloadsNew URL has no query string
- Form or checkoutNo gclid stored anywhere
- Conversion in AdsNot matched to the click
The banner reload happens before the gclid is stored, so the later conversion has no click to attach to.
Why it costs you leads or sales
Your leads and sales still happen. What you lose is the link between them and the ad that paid for them. Google Ads shows fewer conversions, so Smart Bidding (automated bidding) learns from less data. Campaigns that work can look like they fail, and budgets may get cut or bids lowered by mistake.
The loss is partial: it hits only visitors who accept cookies via a reloading banner, and it can hide inside normal variation. That makes it easy to miss for months.
Example: of 100 ad clicks, a reloading banner leaves fewer with a stored click ID than a banner that updates consent in place. Numbers are illustrative.
How to check if your site has it
Open a private window
Use a fresh private or incognito window so no consent choice is remembered.
Visit a landing page with a test gclid
Add
?gclid=TEST123to the URL of your ad landing page and load it.Click Accept on the banner
Watch the address bar. If the page flashes or the
?gclid=TEST123part disappears, the banner is reloading or redirecting.Inspect the cookies
Open DevTools, then Application (Chrome) or Storage (Firefox), then Cookies. Look for
_gcl_aw. It should contain your test value after consent.Compare with Reject
Repeat in a new private window and choose Reject, then check whether the URL keeps its parameters.
How to fix it
There are two safe approaches. Use the first where you can, and add the second as a safety net.
Turn off reload on consent
In your banner's settings, look for options such as 'reload page after consent' or 'refresh on accept' and disable them. Modern banners can update consent without a reload.
Use Google Consent Mode
Set default consent to denied, then call
gtag('consent','update', ...)when the visitor accepts. Google tags can then read the gclid still in the URL and store it once ad_storage is granted, with no reload.Keep the query string if a redirect is needed
If the banner must navigate, make it return to
window.location.href(full URL including parameters), not the path alone.Save the gclid yourself as a backup
Store the gclid in a first-party cookie or sessionStorage as soon as the page loads, before consent UI runs, and put it in a hidden form field. Only do this where your privacy policy and local law allow it, and respect the visitor's choice for ad cookies.
Retest
Repeat the manual test with a fresh private window.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
// Before the banner loads
gtag('consent', 'default', {
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
analytics_storage: 'denied'
});
// When the visitor clicks Accept (no location.reload())
function onAccept() {
gtag('consent', 'update', {
ad_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted',
analytics_storage: 'granted'
});
}Open your consent plugin settings
In plugins such as Complianz, CookieYes, Cookiebot or Borlabs, look for a reload or refresh option and turn it off. Exact names vary by plugin.
Enable Consent Mode
Turn on the plugin's Google Consent Mode integration so tags wait for consent and update without a reload.
Check the Customer Privacy settings
In Settings, then Customer privacy, review the cookie banner. If you use an app banner, open its settings and disable page reload on accept.
Confirm Google & YouTube channel tracking
Make sure Google tags follow Shopify's customer privacy consent, then retest with a test gclid.
Set default consent early
Fire the consent default on the Consent Initialization trigger, before other tags.
Trigger on consent update, not on reload
Make sure the Conversion Linker and Google Ads tags have the right consent checks (ad_storage) and re-fire when consent is updated.
Review your banner script
If you added a third-party banner in Project Settings, then Custom Code, check its options for reload on accept and disable it.
Check custom code on the funnel or site
Review any banner script in the tracking code area and turn off reload on accept. Keep the gclid in a hidden form field as a backup.
Use Wix's cookie banner settings
If you use a third-party banner through a custom code embed, disable its reload option. Test with
?gclid=TEST123after publishing.
Check the cookie banner and code injection
Review the built-in banner settings or any banner added under Code Injection, and disable page reload on accept where offered.
Remove location.reload() from the accept handler
Call gtag('consent','update', ...) instead. If you must redirect, use the full current URL including the query string.
How to confirm it's fixed
- In a fresh private window, load the page with ?gclid=TEST123.
- Click Accept and confirm the URL keeps its parameters and the page does not reload.
- Confirm
_gcl_awappears in cookies and contains your test value. - Submit a test form and check the hidden gclid field, if you use one, holds the value.
- In Google Tag Assistant or GTM preview, confirm the Conversion Linker and Google Ads tags fire after consent.
- Wait for real conversions and check Google Ads conversion counts recover.
Before
- Accept triggers a reload
- URL loses ?gclid=...
- _gcl_aw never saved
- Conversions unattributed
After
- Accept updates consent in place
- URL keeps its parameters
- _gcl_aw saved after consent
- Conversions matched to clicks
How to prevent it happening again
- Retest with a test gclid after any banner, theme or consent plugin update.
- Ask your developer or agency to avoid reload-on-consent when changing banner vendors.
- Keep the gclid in a hidden form field as a second record.
- Document the consent flow so changes are reviewed.
- Run a scheduled test of the landing page to catch regressions.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor lands on your page with a click ID in the URL, interacts with the cookie banner as a real visitor would, and checks whether the parameters and tracking hits survive. Because it runs on a schedule from the EU or the US, a banner update that starts reloading the page is caught without you retesting by hand.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard and fg_test=1, 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 gclid missing after visitors accept cookies?
The cookie banner is probably reloading the page or redirecting to a URL without the query string when Accept is clicked. The new page has no gclid, and if ad storage was not yet granted, it was never saved. Disable reload on accept or use Consent Mode to update consent in place.
Does a cookie banner remove the gclid from the URL?
Not by itself. It only happens if the banner reloads the page or redirects to a clean URL after consent. Many banners update consent without any navigation, so check your banner's settings and test with a fake gclid.
How do I test whether my cookie banner strips the gclid?
Open a private window, load your landing page with ?gclid=TEST123, click Accept and watch the address bar. Then check Cookies in DevTools for _gcl_aw holding the test value. If the parameter vanishes or the cookie is missing after accepting, the banner is the cause.
Why is the _gcl_aw cookie not set after I accept cookies?
Either the gclid was already gone from the URL because of a reload, or the Google tags did not re-run after consent was granted. Check that Consent Mode updates ad_storage on accept and that the Conversion Linker fires after the update.
Can I store the gclid myself instead of relying on the banner?
Yes, you can save it in a first-party cookie or sessionStorage on page load and add it to a hidden form field. Do this only where your privacy policy and local law allow it, and respect the visitor's ad cookie choices.
Will fixing this bring back my lost Google Ads conversions?
It stops new losses and improves attribution for visitors who accept cookies. It cannot restore clicks already lost. Expect conversion counts to recover gradually after the fix.
Does Google Consent Mode fix the gclid problem?
It helps, because tags can read the gclid still in the URL and store it once consent is granted, with no reload needed. It only works if your banner updates consent in place and does not reload the page.
Related issues
- TRK-142Conversion Linker tag missingFix guide
- TRK-143_gcl_aw cookie not set after gclid landingFix guide
- TRK-144gclid stripped by redirect to www / httpsFix guide
- TRK-145gclid stripped by trailing-slash or language redirectFix guide
- TRK-147gbraid / wbraid not preserved (iOS traffic)Fix guide
- TRK-148gclid not stored in hidden form field / CRMFix guide