Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Cookie consent choice not respected: how to find and fix it

CNV-383Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A consent banner asks visitors to accept or reject cookies. Their answer is saved, usually in a first-party cookie or in localStorage (browser storage on the visitor's device). Every page and every tag should then read that saved answer.

The issue appears when that chain breaks. There are two common versions:

Two ways consent is ignored
  • The choice is forgotten. The banner shows again on the next page or the next visit, because the consent cookie was never saved, was blocked, or expires too fast.
  • The choice is saved but not obeyed. A visitor clicks Reject, yet GA4, Google Ads, Meta or other tags still fire, because they load outside the consent tool's control.

Why it costs you leads or sales

A banner that returns on every page interrupts the visitor in the middle of a form or checkout. Some leave. Others click Accept just to get rid of it, which makes your data less reliable.

Tags that fire after a refusal create a legal risk in regions with consent rules. The opposite fault also hurts: if an Accept choice is not passed on, tags stay blocked and your conversions go unreported. Ad platforms then optimise on partial data.

Where the choice gets lost
  1. Landing pageBanner appears
  2. Visitor clicks RejectChoice should be stored
  3. Choice read on next pageCookie missing or ignored
  4. Form or checkoutBanner returns, tags fire anyway

The visitor answers the banner, but the saved choice is not read on the next page.

Form completions with and without a repeat bannerExample numbers
Form completions with and without a repeat banner (example)Choice remembered: 12 %; Banner on every page: 8 %059128Choice rememberedBanner on every page%

Example: illustrative numbers showing how an interrupting banner could lower form completion.

How to check if your site has it

Check by hand in your browser
  1. Open a clean window

    Use a private window so no old consent cookie exists. Visit your landing page.

  2. Reject non-essential cookies

    Click Reject (or the equivalent). Open DevTools, then Application, then Cookies, and look for your consent tool's cookie. Note its name, value and expiry.

  3. Watch the Network tab

    Filter for google-analytics, googleadservices, facebook and similar. After a refusal, full tracking hits should not be sent. Consent Mode may still send cookieless pings.

  4. Move to another page

    Click through to a second page and reload. The banner should stay hidden and the cookie should still be there.

  5. Repeat with Accept

    Use a fresh private window, accept, and confirm your tags now fire on the next page.

How to fix it

The cause depends on your setup. Start with the most common ones: the cookie is not saved, the cookie is saved on the wrong domain, a cache serves the banner to everyone, or tags load before the consent tool.

Fix by platform
  1. Exclude the consent cookie from page caching

    In your cache plugin, make sure pages are not cached in a way that ignores the consent cookie, and clear the cache after changing banner settings.

  2. Stop tags being hard-coded

    Remove GA4, Meta or ad pixels pasted into the theme or a header plugin. Load them through your consent plugin or Google Tag Manager so they wait for consent.

  3. Check for two banners

    Deactivate duplicate consent plugins. Two tools can overwrite each other's cookie.

Save and read a consent choice (custom code example)javascript
function setConsent(analytics, ads) {
  var value = JSON.stringify({ analytics: analytics, ads: ads });
  document.cookie = 'site_consent=' + encodeURIComponent(value) +
    '; Max-Age=15552000; Path=/; SameSite=Lax; Secure';
}

function getConsent() {
  var m = document.cookie.match(/(?:^|; )site_consent=([^;]*)/);
  return m ? JSON.parse(decodeURIComponent(m[1])) : null;
}

var c = getConsent();
if (c && c.analytics) {
  // load analytics tag here
}
Consent handling before and after

Broken

  • Banner shows on every page
  • Consent cookie missing or on the wrong domain
  • Pixels pasted in the theme fire after Reject
  • Cached pages ignore the choice

Fixed

  • Choice stored once and read on every page
  • Cookie set for the parent domain with a long expiry
  • Tags wait for the matching consent category
  • Cache keeps the banner state correct

How to confirm it's fixed

Confirmation checks
  • In a private window, Reject: the consent cookie appears with the right value and expiry.
  • Navigate to two more pages: the banner does not return.
  • Network tab shows no full ad or analytics hits after Reject.
  • In a fresh window, Accept: tags fire on the next page.
  • Reopen the site the next day: the choice is still remembered.
  • Check the same on mobile and on any checkout subdomain.

How to prevent it happening again

Habits that keep consent working
  • Use one consent tool only, and one place to load tags.
  • Retest the Reject path after every theme, plugin, cache or tag manager change.
  • Clear caches after editing banner settings.
  • Keep the consent cookie domain and expiry documented.
  • Review any new pixel to make sure it is gated by consent before it goes live.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs a consent-denied variant: a robot visitor runs your journey with cookies refused, and checks the steps and the tracking hits sent to ad and analytics platforms. That shows you when tags still fire, or when the journey breaks, after a refusal.

Questions people ask

Why does my cookie banner keep showing on every page?

The consent cookie is usually not being saved or read. Common causes are a cookie set on the wrong domain or path, a very short expiry, a cache serving the banner to everyone, or two consent tools overwriting each other. Check DevTools, then Application, then Cookies after clicking a choice.

Why are my tags still firing after I reject cookies?

The tags probably load outside your consent tool. Pixels pasted into the theme or custom code run regardless of the choice. Move them into Google Tag Manager with consent settings, or load them through the consent tool's script blocking.

How do I test if my cookie consent is working?

Open a private window, click Reject, and check that the consent cookie is set and the banner stays hidden on later pages. Then watch the Network tab to see that no full ad or analytics hits are sent. Repeat with Accept in a fresh window.

Why are my conversions missing after visitors accept cookies?

The Accept choice may not be passed to your tags. In Google Tag Manager, make sure the consent update fires when the visitor chooses and that tags check the right consent type. Without that, tags stay blocked even after consent.

Can a caching plugin break cookie consent?

Yes. If a cache serves the same HTML to everyone, the banner or the blocked tags may not match the visitor's choice. Clear the cache after banner changes and make sure your cache setup handles the consent cookie.

Does Google Consent Mode stop all tracking when consent is denied?

Not fully. With Consent Mode, tags may still send cookieless pings that do not use cookies for identification. Full tracking with cookies should stop until consent is granted.

Can FunnelGuard check my cookie consent?

Partly. FunnelGuard runs a consent-denied variant of your journey and checks the steps and tracking hits. It does not check every case, such as Accept being remembered across days, so test those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: consent-denied variant.

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.