Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Cookie banner reappears on every page: how to find and fix it

CNV-128Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A consent banner asks visitors to accept or reject cookies. When they choose, the banner tool stores that choice, usually in a small first-party cookie or in browser storage. On the next page it reads the choice and stays hidden.

With this issue, the choice is lost between pages. The visitor clicks Accept, moves to another page, and the banner is back. Some sites also lose the choice on every visit, not just every page.

Why it costs you leads or sales

A banner that keeps returning is an interruption on every step of the journey. It can cover buttons or form fields, and on mobile it can take up much of the screen. Visitors who already answered it get annoyed and leave.

It also hurts your data. If consent is never stored, your tags may treat every page as unconsented. Analytics and ad pixels may then not fire, or may fire only on some pages. Conversions go missing from GA4 and ad platforms, and ad optimisation works from weaker signals.

Where consent gets lost
  1. Landing pageVisitor clicks Accept
  2. Consent savedCookie is blocked, wrong domain or overwritten
  3. Product or form pageBanner shows again, tags wait for consent
  4. ConversionVisitor leaves or the event is not tracked

The visitor accepts once, but the choice is never saved, so every later step starts from scratch.

Visitors who reach the thank-you pageExample numbers
Visitors who reach the thank-you page (example)Banner remembered: 3 %; Banner on every page: 2.2 %01232.2Banner rememberedBanner on every page%

Example: illustrative numbers only. A banner that returns on each page can lower completion compared with a banner that is answered once.

How to check if your site has it

Test it by hand in about five minutes
  1. Open a clean private window

    Use a private or incognito window so no old consent exists. Visit your homepage.

  2. Accept the banner

    Click Accept. Confirm the banner closes.

  3. Click through three or four pages

    Go to a service page, a product or pricing page and the form or cart. Note whether the banner returns on any of them.

  4. Inspect the stored cookie

    In Chrome press F12, open Application, then Cookies, and select your domain. Look for the consent cookie (the name depends on your tool, for example CookieConsent, OptanonConsent or cookieyes-consent). Check it exists, and check its Domain, Path and Expires values.

  5. Repeat in another browser and on mobile

    Safari and some privacy browsers restrict cookies more strictly. Also test with and without www and on any subdomain such as shop. or book.

What you see in DevTools and what it usually means
What you seeLikely cause
No consent cookie after clicking AcceptCookie is blocked, the script errors, or storage is disabled
Cookie exists but Domain is www.example.com while the next page is example.comDomain mismatch between www and non-www
Cookie Path is /page instead of /Path is too narrow, so other pages cannot read it
Cookie Expires is Session or a few secondsExpiry is not set or is too short
Cookie exists but banner still showsCached HTML, a second banner script or a plugin conflict

How to fix it

Start with the cause you found in DevTools. The most common fixes are below. Menu names depend on your consent tool and theme, so look for the same setting under a similar label.

General fix order
  1. Make sure only one banner script runs

    Two consent tools (for example a plugin plus a Google Tag Manager tag) can overwrite each other's cookie. Keep one and remove the other.

  2. Set the cookie domain and path correctly

    Path should be / so every page can read it. If you use subdomains, set the cookie domain to your root domain with a leading dot, such as .example.com, if your tool offers that option.

  3. Set a sensible expiry

    Use a persistent expiry (many sites use 6 to 12 months) rather than a session cookie, unless your legal advice says otherwise.

  4. Redirect to one canonical hostname

    Pick www or non-www and redirect the other to it, so consent is not stored on one hostname and looked up on another.

  5. Exclude the banner from page caching

    If a cache or CDN stores the HTML with the banner open, make sure the banner is shown or hidden by JavaScript in the browser, not baked into cached HTML.

  6. Check the tool's own settings

    Make sure the tool's domain list matches your real domain and that it is not set to ask again on every page or to reset consent on navigation.

Platform-specific places to look
  1. Purge caches

    Clear your caching plugin and any CDN cache after changing banner settings, and exclude the consent cookie from page-cache variations if the plugin supports it.

  2. Disable duplicate consent plugins

    Under Plugins, deactivate any second cookie or consent plugin and any theme-built-in banner.

  3. Check Site Address

    In Settings, General, make sure WordPress Address and Site Address use the same hostname (www or not) that visitors use.

Example: saving and reading consent so it persists on every pagejavascript
function saveConsent(value) {
  var maxAge = 60 * 60 * 24 * 180; // about 6 months
  document.cookie = 'site_consent=' + value +
    '; Max-Age=' + maxAge +
    '; Path=/; SameSite=Lax; Secure';
}

function hasConsentChoice() {
  return document.cookie.split('; ').some(function (c) {
    return c.indexOf('site_consent=') === 0;
  });
}

if (!hasConsentChoice()) {
  showBanner();
}

How to confirm it's fixed

Confirmation checklist
  • In a new private window, the banner appears once on the first page.
  • After clicking Accept, the banner stays hidden on at least five other pages, including the form or cart.
  • The consent cookie is visible in DevTools with Path set to / and a future expiry.
  • The banner stays hidden after you reload and after you close and reopen the tab.
  • It behaves the same on www and non-www, and on any subdomain you use.
  • It works in Chrome, Safari and on a phone.
  • Your tags now fire after consent, which you can check with Tag Assistant or the browser Network tab.
Consent behaviour

Before the fix

  • Banner returns on each page
  • Consent cookie missing or on the wrong domain
  • Tags wait for consent that never registers

After the fix

  • Banner shown once, then hidden
  • Cookie saved with Path / and a long expiry
  • Tags fire according to the stored choice

How to prevent it happening again

Prevention habits
  • Keep one consent tool and one place where its script is installed.
  • Re-run the multi-page test after changing themes, plugins, caching or your CDN.
  • Re-test after a domain change, a move to HTTPS or adding a subdomain.
  • Add the multi-page banner test to your release checklist.
  • Review consent tool updates before enabling them on the live site.

How FunnelGuard handles this

FunnelGuard does not check for this yet. A multi-page banner check, where a robot accepts the banner and confirms it stays hidden on later pages, is a possible future check, not a current feature.

What FunnelGuard does today is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, from the EU or the US. It checks each step and the tracking hits sent to platforms like GA4, Google Ads and Meta. If a returning banner stops a button from working or leads to a failed step, that failure can show up in a journey run. It would not be identified as a consent storage problem.

Until then, repeat the five-minute manual test above after each site change. You can also use your browser's DevTools or a consent tool's own reporting, if it offers one, to watch for the consent cookie. A free read-only website audit is available from FunnelGuard if you want a general look at your site.

What happens when consent is not storedInteractive
Consent cookie is not saved

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

The banner returns on each page and tags keep waiting for consent, so analytics and ad events are missing or inconsistent.

Toggle to see how a lost consent choice affects the banner and tracking.

Questions people ask

Why does my cookie banner keep coming back on every page?

The visitor's consent choice is not being saved or read back. Common causes are a blocked cookie, a cookie set on the wrong domain or path, a short expiry, cached HTML, or two banner scripts conflicting. Check the consent cookie in your browser's DevTools to see which applies.

Why does the cookie banner show again after I click accept?

After you click Accept, the banner tool should write a consent cookie. If that cookie does not appear, or is set for www while the next page loads on the non-www domain, the tool cannot find it and shows the banner again.

How do I check whether the consent cookie is being saved?

Open your site in a private window, click Accept, then press F12 and go to Application, then Cookies. Look for your consent tool's cookie and check its Domain, Path (should be /) and Expires. If it is missing, consent is not stored.

Can caching make a cookie banner appear on every page?

Yes. If a page cache or CDN stores HTML with the banner already open, every visitor gets it regardless of their cookie. The banner should be shown or hidden by JavaScript in the browser after it reads the consent cookie.

Does a repeating cookie banner affect my tracking and ads?

It can. If consent is never recorded, tags that wait for consent may not fire, so GA4 and ad platforms miss conversions. The exact effect depends on how your tags and consent settings are configured.

Why does my cookie banner reappear when I switch between www and non-www or a subdomain?

Cookies belong to a specific hostname unless the domain is set wider. Consent saved on www.example.com is not visible on example.com or shop.example.com. Redirect to one hostname, or set the cookie on the root domain if your tool allows it.

Does FunnelGuard detect a cookie banner that reappears on every page?

No. FunnelGuard does not check for this yet, though it is a possible future check. It does run your real customer journeys and check tracking hits, so test the banner by hand across several pages after any site change.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.