Aller au contenu principal
Nouh Benzidane (accueil)
Security #GDPR#cookies#UK

GDPR Cookie Banners in the UK: What Is Actually Required in 2026

· 6 min read

In summary

Most UK cookie banners get it wrong. Under PECR and UK GDPR you need consent before non-essential cookies fire, a real reject option, and no pre-ticked boxes. Here is what the law actually asks for.

Here is the part most UK businesses get wrong: a cookie banner that fires Google Analytics the moment the page loads, before the visitor has clicked anything, is not compliant. Under the Privacy and Electronic Communications Regulations (PECR) and UK GDPR, consent has to come first, and it has to be a genuine choice. The banner that “accepts” on page load is decoration, not consent.

I build websites for UK and Ireland clients, and I add or fix the consent layer on most of them. I am not a solicitor and this is not legal advice, but I read the ICO guidance closely because it directly shapes what I have to put on the page. Here is what the law actually asks for, stripped of the vendor fear-selling.

The rule in one sentence

Non-essential cookies and similar technologies must not be set until the user has given consent. That is the whole thing. PECR is the regulation that governs cookies in the UK, and it leans on the UK GDPR definition of consent, which the ICO summarises as a freely given, specific, informed and unambiguous indication of the user’s wishes through clear affirmative action.

Unpack that and three practical requirements fall out. Nothing non-essential fires before the click. The user can say no as easily as yes. And you tell them, in plain language, what the cookies do before they decide. Everything else is implementation detail.

What counts as “essential” versus “non-essential”

This is where most of the confusion lives, so be precise about it.

Essential, also called strictly necessary, means the cookie is required to provide the service the user explicitly asked for. A session cookie that keeps someone logged in, a cookie that remembers what is in a shopping basket, or one that balances load across servers: these are exempt and need no consent. The ICO guidance on cookies spells out this narrow exemption.

Non-essential is everything else, and the list is longer than people hope. Analytics cookies are non-essential, even Google Analytics, even if you never look at the dashboard. Advertising and retargeting pixels are non-essential. Embedded YouTube videos, social media feeds, and live-chat widgets usually drop their own cookies and count too. If a cookie exists to help you, the advertiser, or a third party rather than to deliver the function the visitor requested, it needs consent first.

The test is not whether the cookie feels harmless. It is whether the user asked for the thing the cookie enables.

The three banner mistakes I see constantly

After auditing a lot of UK sites, the same failures repeat.

The first is firing before consent. The tag fires in the page head, the banner appears, and whatever the user clicks, the analytics or ad cookie was already set. This is the most common and the most clearly wrong. Consent means before, not “we asked at roughly the same time”.

The second is the missing or buried reject button. A banner with a big “Accept all” and no equally easy way to decline is not offering a real choice. The ICO has been clear that making rejection harder than acceptance undermines the validity of consent. The fix is simple: put reject and accept side by side, with equal weight, on the first thing the user sees.

The third is pre-ticked boxes and consent-by-default. Any design where the boxes are already ticked, or where carrying on browsing is treated as agreement, fails the “clear affirmative action” test outright. Silence is not consent. The user has to actively turn non-essential cookies on.

The ICO has sharpened its position

This is not a static area. In April 2026 the ICO published its finalised guidance on the use of storage and access technologies, following two public consultations, which updates and clarifies how the rules apply to cookies, tracking pixels, device fingerprinting and similar techniques.

The direction of travel is consistent: the regulator wants consent mechanisms that present a real, balanced choice and that do not nudge users into accepting. If your banner was set up two or three years ago and never revisited, it is worth a fresh look against the current guidance, because “it was fine when we installed it” is not a defence that ages well.

My preferred approach: avoid the problem

The cleanest cookie banner is the one you do not need. On my own site, and increasingly on client builds, I reach for privacy-focused, cookieless analytics that set no identifying cookies at all. No tracking cookie means no consent requirement for analytics, which means no banner blocking the page for that purpose, which means a faster first impression and one less compliance surface to maintain.

You still get the numbers that actually matter for a small business: where traffic comes from, which pages convert, how the site performs. What you give up is cross-site, individual-level tracking, which most small businesses were never really using anyway. For a service company or a brochure site, it is almost always the right trade.

If you do need consent-gated tools, because marketing genuinely relies on retargeting or detailed funnel analytics, then build the banner properly: block the tags until the click, give reject equal prominence, no pre-ticked boxes, and a short plain-English explanation of what each category does. Done right it is not hard. It is just rarely done right.

A short checklist before you ship

Before any UK site I build goes live, the consent layer has to pass a few checks. Do non-essential tags genuinely hold until the user consents, verified in the browser network tab rather than assumed? Is reject as easy and as prominent as accept? Are all boxes unticked by default? Is there a plain explanation of what the cookies do, and a way to change your mind later?

That last point matters: consent has to be as easy to withdraw as it was to give, so a persistent link to reopen the cookie settings belongs in the footer. None of this is exotic. It is the difference between a banner that protects you and a banner that just looks like the ones everyone else has, including the ones that are quietly non-compliant.

What it really comes down to {#takeaways}

A UK cookie banner is not a formality you bolt on at the end. Under PECR and UK GDPR it has one job: secure genuine consent before any non-essential cookie fires, with a real choice to decline. Firing analytics on page load, hiding the reject button, or pre-ticking boxes all fail that test, and the ICO’s 2026 guidance only sharpens the point.

The simplest path for most small businesses is to sidestep the whole apparatus with cookieless analytics and reserve a proper, balanced consent banner for the genuinely consent-gated tools you actually depend on. Less friction for the visitor, less risk for you, and a faster site as a bonus.

/faq

Frequently asked questions

Do I legally need a cookie banner on my UK website?

Only if your site sets cookies or uses similar technologies that are not strictly necessary. Analytics, advertising and embedded social media all count as non-essential, so most business sites do need a consent mechanism. A site that sets only essential cookies, such as a session cookie for a login or a basket, does not need a consent banner for those.

Are pre-ticked consent boxes allowed under UK GDPR?

No. The ICO is explicit that consent must be a clear affirmative action, so pre-ticked boxes and any design that treats silence or inaction as agreement are not valid. The user has to actively opt in to non-essential cookies before they are set.

Does my banner need a reject button as prominent as accept?

In practice, yes. The ICO has made clear that making it harder to reject than to accept undermines valid consent. The safest and simplest design gives reject and accept equal prominence on the first layer of the banner, rather than hiding reject behind a settings menu.

Can I just use Google Analytics without a banner if I anonymise IPs?

No. Analytics cookies are non-essential under PECR regardless of how the data is later processed, so they require prior consent. If you want measurement without a consent banner, a cookieless, privacy-focused analytics tool that sets no identifying cookies is the cleaner route, and it is the approach I use on my own site.

/sources

  1. [1] ICO — Cookies and similar technologies (Guide to PECR) (accessed 2026-06-03)
  2. [2] ICO — Guidance on the use of storage and access technologies (accessed 2026-06-03)
  3. [3] GOV.UK — Data protection (UK GDPR overview) (accessed 2026-06-03)

/read next

/contact

A project inspired by this article?

A website, AI automation, or simply an idea worth pushing back on. Tell me about your context and I'll get back to you within two business days.