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.
How a cookie banner works
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.
