Websites and Tech

Cookie Banner

Also called cookie consent banner, cookie notice, cookie pop-up, cookie consent

The on-screen notice that asks visitors to accept or refuse non-essential cookies, and stops those cookies loading until they choose.

Quick facts: Cookie Banner

Category
Websites and Tech
Also called
cookie consent banner, cookie notice, cookie pop-up, cookie consent
Level
Beginner
Affects
PECR and UK GDPR compliance, analytics data volume, ad platform measurement, user experience
Where to see it
Consent management platforms, browser developer tools, Google Tag Manager preview mode, Google Ads consent diagnostics
In this article4
  1. How a cookie banner works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

A cookie banner is the notice a website shows on a first visit asking whether the visitor agrees to non-essential cookies and similar trackers. Done properly, it is not just a message: it is the switch that holds analytics and advertising scripts back until the visitor says yes.

When someone arrives, the banner software checks whether a choice has already been stored. If not, it shows the banner and keeps every script in a non-essential category blocked. When the visitor accepts or refuses, the choice is saved, usually in a small strictly necessary cookie, and scripts in the accepted categories are released. A good set-up also records the choice in a consent log so you can show what each visitor agreed to.

Most banners group trackers into categories such as analytics, marketing and functional. Those categories should come straight from a cookie audit of what the site really sets. If you run Google Ads or Google Analytics, the banner also needs to pass the visitor’s choice to Google through consent mode. Google requires those consent signals for UK traffic before its advertising features that use personal data, such as remarketing, will work.

Why it matters

In the UK, the Privacy and Electronic Communications Regulations (PECR) require consent before a site stores or reads non-essential information on a visitor’s device, and UK GDPR sets the standard that consent must meet: freely given, specific, informed and a clear positive action. The Information Commissioner’s Office enforces both and has published clear expectations. Refusing should be as easy as accepting, so a “Reject all” button belongs on the first layer beside “Accept all”. Boxes must not be pre-ticked. Scrolling or carrying on browsing is not consent. Non-essential cookies must not load before the choice. The ICO has written to operators of large UK websites about banners that fall short, so this is an active area.

The Data (Use and Access) Act 2025 amends PECR, including an exemption for some analytics cookies used only to improve a site, provided visitors are told and can object. At the time of writing (October 2026), check whether that provision has commenced and read the ICO’s current guidance before relying on it; until then, treat analytics as needing consent.

There is a commercial side too. Every visitor who refuses disappears from your analytics and ad platforms, so a compliant banner means reported numbers drop. That is expected and should be planned for, not hidden by a banner designed to push people into accepting.

Common mistakes

  • Analytics loading before the choice. The banner looks right, but the tags fire on page load regardless. It is easy to miss because nothing on screen gives it away.
  • No reject option on the first layer. Making people open settings to refuse while accepting takes one click is exactly what the ICO has criticised.
  • Pre-ticked categories in the settings panel.
  • No way to change your mind. Visitors need a persistent link, often in the footer, to reopen their settings.
  • Treating a banner as compliance in itself. Without an accurate cookie policy and correct blocking, the banner is decoration.

How to act on it

Open your site in a private window, click reject, and check the browser’s storage and network requests. If analytics or advertising cookies appear, fix the blocking before anything else. Then check the first layer offers accept and reject with equal weight, the categories match a current audit, and there is a “Cookie settings” link in the footer.

If you advertise, confirm consent signals are reaching Google and Meta, and set expectations internally that consented data will be lower than before. Getting the banner, consent mode and conversion measurement working together is part of how I set up tracking in performance marketing work, because a broken banner quietly breaks bidding as well.

Do and do not

Do

  • Put Reject all beside Accept all on the first layer
  • Block non-essential tags until consent is given
  • Add a footer link so visitors can change their choice

Do not

  • Load analytics before the visitor chooses
  • Pre-tick any category
  • Treat continued browsing as consent

Questions people ask about this

Do I need a cookie banner if my site only uses essential cookies?

No. If every cookie and storage item is strictly necessary for something the visitor asked for, such as a login or a shopping basket, PECR does not require consent. You still need to explain those cookies in a cookie policy. Check carefully, though: an embedded map or video often sets non-essential cookies without you realising.

Can I use a cookie wall that blocks the site until people accept?

The ICO's view is that making access conditional on accepting non-essential cookies is unlikely to give valid consent in most cases, because the visitor has no real choice. There is a narrow debate around consent-or-pay models, but for a typical business website, a wall is the wrong approach. Let people refuse and still use the site.

Will a cookie banner hurt my Google rankings?

A banner itself does not harm rankings, but how it is built can affect user experience. A banner that covers the whole screen on mobile, shifts the layout as it loads or delays the main content can worsen Core Web Vitals. Use a compact banner that loads quickly and does not push page content around.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.