Home / Fix guides / Analytics, cookies and GDPR

Cookie banner not showing on my website: how to find the cause and fix it

A cookie banner usually disappears because of a cache, a blocked or broken script, a hidden layer, or a setting that only shows it to some visitors. Test in a private window first, then work through the causes below.

You installed a cookie consent tool, or your site was supposed to have one, but visitors never see a banner. Sometimes it never appears at all. Sometimes it shows for you but not for others, or only on some pages or only on phones. This page helps you work out which case you have and what to change.

What people see

The common patterns are:

  • No banner on any page, for anyone.
  • A banner on the home page but not on inner pages, or the other way round.
  • A banner that appears for a moment and vanishes.
  • A banner that is there but sits behind another element, or off the screen on mobile.
  • No banner for visitors outside the EU or UK, because the tool is set to show only in certain regions.
  • No banner for returning visitors, which is often normal: once someone has chosen, the tool stores that choice and stops asking.

That last one is the most common false alarm. Always test as a brand new visitor.

Why it matters

If your site sets cookies that are not strictly necessary (analytics, advertising, some embedded videos and chat widgets), privacy rules such as GDPR and the ePrivacy rules in the EU (PECR in the UK) generally expect you to ask for consent first. A missing banner means visitors never get that choice, while the cookies may still be set. That is a compliance and trust risk. This is general information, not legal advice, so ask a qualified person if you are unsure about your situation.

There is also a practical side. Visitors who notice a site tracking them with no notice may trust you less, and some advertising and analytics platforms require a working consent tool.

How to check your site (free)

  1. Open a private or incognito window. This starts with no stored consent choice.
  2. Visit your home page and a few inner pages. Wait about five seconds, as some banners load late.
  3. Repeat on your phone, on mobile data rather than your office Wi-Fi.
  4. Repeat in a second browser, with extensions switched off. Some ad blockers and privacy extensions hide banners, which can make a working banner look broken.
  5. Right click the page, choose Inspect, and open the Console tab. Red errors that mention your consent tool's name suggest its script failed.
  6. In the Network tab, reload and search for your consent tool's name. If the file is missing or shows a red status, it is not loading.
  7. In the Application tab (Storage in Firefox), look at Cookies. A consent cookie that already exists before you click anything can mean the tool is auto-accepting.

If you want to confirm the script is on the page at all, view the page source and search for the name of your tool, such as Cookiebot, CookieYes, Complianz, Termly, iubenda or OneTrust.

Common causes and fixes

CauseWhat to do
Script not installed on every pageAdd it to the global header or theme, not a single page
Page or CDN cache serving an old versionClear the site cache and CDN cache, then retest
Speed plugin delaying or combining scriptsExclude the consent script from delay, defer and minify options
Region settingCheck whether the banner is limited to certain countries
Wrong domain in the tool's settingsAdd the exact domain, including www if you use it
Content Security Policy blocking itAllow the consent tool's domain in your policy
Banner hidden behind another layerCheck the banner position and z-index, and test on mobile
Tag Manager trigger set wronglyFire the consent tool early, not on a late trigger
Two consent tools fightingKeep one and remove the other

After each change, clear caches and retest in a fresh private window. Change one thing at a time so you know what worked.

Fixing it on common platforms

Menu names change between versions and themes, so look for the idea rather than the exact label.

  • WordPress: consent plugins usually have their own settings page in the dashboard sidebar. Check the banner is switched on, the domain is correct, and that your caching or speed plugin is not delaying it. See the WordPress guide.
  • Shopify: look in Settings, then Customer privacy, for the built in banner, or check the app you installed is enabled in your theme. Theme app embeds sometimes need switching on in the theme editor.
  • Wix and Squarespace: both have a built in cookie banner, usually under Settings and a privacy or cookies section. Make sure it is turned on and published.
  • Webflow: there is no single built in solution, so you add a script or app yourself. Check it sits in the site wide custom code and that you published the site afterwards.
  • Cloudflare: features that rewrite or delay JavaScript can break banners. Purge the cache and test with such options off. See the Cloudflare guide.
  • Google Tag Manager: the consent tool should load before your other tags and the container must be published, not just previewed. See the Google Tag Manager guide.

Confirm the fix worked

  1. Open a fresh private window and visit your home page. The banner should appear.
  2. Check an inner page, a blog post and your checkout or contact page.
  3. Check on a phone and in a second browser.
  4. Click reject (or close without accepting) and confirm analytics and advertising cookies are not set in the Application tab.
  5. Click accept and confirm they are set only after that.

Step 4 matters as much as seeing the banner. A banner that appears but lets tracking run anyway does not do its job, which is covered in Google Analytics fires without consent.

Stop it coming back

  • Retest in a private window after any theme change, plugin update, new caching setup or site redesign. These are the usual moments a banner breaks.
  • Keep one consent tool, and write down where it is installed and who looks after it.
  • Re-check after adding new tracking, chat or video embeds, since they can add cookies the banner does not cover.
  • Put a recurring reminder in your calendar to test as a new visitor on desktop and mobile.

If you would rather have this checked for you, week 27 of SiteMonday covers GDPR and cookie consent and ends with a written report and a ranked fix list. SiteMonday finds and explains the problem. Fixing it is up to you or your developer.

Step by step for your platform

Questions

Why can I not see the cookie banner on my own site?

You probably already made a choice, and the tool stored it. Open a private window or clear your cookies and the banner should return if it is working.

Can an ad blocker hide my cookie banner?

Yes, some ad blockers and privacy extensions hide or block consent banners. Test with extensions turned off, and remember some of your visitors may use them too.

Does every website need a cookie banner?

Not always. If you only use strictly necessary cookies, you may not need one, but analytics, advertising and many embeds usually do require consent in the EU and UK. Ask a qualified adviser if you are unsure.

Why does my banner show on the home page but not other pages?

The script is likely installed on one page or template only. Add it to the site wide header or theme so it loads everywhere.

Why does the banner work on desktop but not on mobile?

It may be hidden behind another element, cut off by the screen size, or served from an old cached version. Test on a real phone and clear the cache.

Is a banner enough on its own?

No. It should also block non essential cookies until consent is given and give a clear way to refuse. Check what cookies are set before and after you click.

Related problems