The Cookie Law in 2026: What UK Websites Actually Need to Do
If your website serves people in the UK, the cookie rules in 2026 come from two places: PECR, the Privacy and Electronic Communications Regulations, and the UK GDPR, which defines what counts as consent. In practice you must ask before setting any cookie that is not strictly necessary, make rejecting as easy as accepting, explain in plain words what each type of cookie does, and let people change their mind later. Strictly necessary cookies, such as a shopping basket or a login session, are exempt. Everything else, including analytics, needs a genuine yes first. The authoritative rulebook is the ICO’s cookies guidance, not any blog post, ours included.
What we said in 2011, and what has changed since
This post started life in December 2011 as a short announcement of the then-new EU cookie law, the e-Privacy Directive. The original advice was simple: install a WordPress plugin called Choc Chip EU Cookie, point it at your terms and conditions page, and the job was done. Our own banner at the time read “We use cookies. By browsing this site you agree to the use of cookies”, with a single Accept button and no way to say no.
Fifteen years on, almost every part of that has aged out:
- The legal basis moved. The UK left the EU, but the cookie rules did not leave the UK. They now sit in PECR, with the consent standard supplied by the UK GDPR. Regulation 6 of PECR, the same regulation the 2011 post quoted, still covers storing or reading information on a visitor’s device.
- Implied consent died. “Keep browsing and we will take that as a yes” was tolerated by the ICO in the early years while everyone adjusted. Its current guidance is unambiguous: consent means a clear, positive choice made before non-essential cookies are set.
- A notice bar is no longer the job. The Choc Chip plugin displayed a message; it did not stop anything loading. In 2026 the mechanism matters more than the message. Non-essential cookies have to stay off until someone opts in.
- The tooling changed too. We built everything on WordPress back then, in the years when our founder Mo Rafi was teaching WordPress at Google Campus London. Today we build fast static Astro sites, which has a pleasant side effect for this topic: a static site sets almost no cookies until you deliberately add something that does.
The rules in plain English
Two sets of rules do the work, and they interlock.
PECR says you must not store information on someone’s device, or read information from it, without consent, unless doing so is strictly necessary for a service the person has asked for. Note the wording: it covers the technique, not just files literally named cookies. Local storage, tracking pixels and fingerprinting scripts all fall under the same rule.
UK GDPR defines what that consent must look like: freely given, specific, informed and unambiguous, given by a clear positive action. Pre-ticked boxes fail. Silence fails. Scrolling past the banner fails.
Strictly necessary is narrower than most site owners hope. It means necessary for the thing the visitor asked to do: keeping a basket together through checkout, keeping someone logged in, security and fraud prevention, remembering the cookie choice itself. It does not mean necessary for your marketing. Analytics, personalisation and advertising cookies all sit on the consent side of the line.
None of this is legal advice, and the detail matters, so treat the ICO’s cookies guidance at ico.org.uk as the live rulebook. UK data law is still being reformed, and when official guidance and blog posts disagree, the guidance wins.
Which cookies need consent
| Cookie or technology | Consent needed? | Why |
|---|---|---|
| Login and session cookies | No | Strictly necessary for the service the visitor requested |
| Shopping basket and checkout | No | Same exemption |
| Security and fraud prevention | No | Same exemption |
| Remembering the visitor’s cookie choice | No | You are allowed to remember that someone said no |
| Analytics (GA4 and similar) | Yes | Useful to you is not the same as essential to the visitor |
| Preference cookies (language, display settings) | Usually yes | Exempt only when genuinely needed to deliver what was asked for |
| Advertising and retargeting | Yes | Non-essential by definition |
| Third-party embeds (video players, maps, social widgets) | Yes, if they set cookies | You are responsible for what loads through your pages |
If your site only uses the top half of that table, you may not need a consent banner at all: a clear cookies section in your privacy page can be enough. The banner obligation starts the moment anything from the bottom half appears.
What an honest banner looks like
The ICO has been openly critical of banners designed to harvest consent rather than ask for it. A fair banner passes this checklist:
- Nothing non-essential loads before the visitor chooses. Test this rather than assuming it.
- Reject is as easy as accept: same screen, same prominence, same number of clicks.
- Plain wording that says what the cookies are for, not “to enhance your experience”.
- No pre-ticked boxes, and no consent bundled into “by using this site you agree”.
- A way to change or withdraw the choice later that is easy to find.
- A cookie policy that lists what you actually set, kept up to date.
If your current banner fails the second point, fix that first. A giant coloured Accept button next to a grey “manage preferences” maze is exactly the pattern the regulator keeps calling out.
The analytics trade-off nobody should dodge
Ask honestly and some visitors will say no. That means GA4 will report fewer users than actually visited your site. The smaller number is not broken; the old number was inflated by people who were never given a choice. Some practical ways to live with it:
- Use Google’s consent mode properly. It adjusts how Google tags behave based on the visitor’s choice and estimates some of what can no longer be measured directly. Whether modelled data is good enough for your decisions is a judgement call, not a legal question.
- Lean on data that does not come from your visitors’ browsers. Google Search Console reports your search performance without setting a single cookie on your site. Our guide to checking your Google rankings shows how to read it, and the DIY SEO guide covers how far you can get with free data alone.
- Remember that most SEO work never touches visitor cookies. Rank tracking, site audits and keyword research all happen from outside your site. We keep a round-up in best free SEO tools, and the wider SEO tools hub compares the paid platforms we use on client work.
- Be sceptical of “no consent needed” analytics claims. Some cookieless analytics products genuinely avoid PECR’s consent requirement; others just claim to. Judge the claim against the ICO’s guidance, not the vendor’s marketing page.
One more 2026 wrinkle: AI assistants do not accept cookies and never see your banner. Whether ChatGPT recommends your business depends on your content and the sources that cite you, not on your consent rate, so a stricter banner costs you nothing on that front.
A workflow to get compliant this week
- Audit what actually loads. Open your site in a clean private window with developer tools open (the Application or Storage tab) and note every cookie set before you click anything. A cookie scanner does the same job at scale.
- Delete what you do not need. Old plugins, abandoned tracking scripts and forgotten embeds are the usual culprits. Fewer cookies means a simpler banner, or none.
- Classify what remains as strictly necessary or non-essential, using the table above.
- Install a consent tool that blocks first and only fires tags after consent. A tool that merely displays a message repeats our 2011 mistake.
- Wire your tags to consent. In practice that means consent mode for Google tags, or consent-based triggers in your tag manager.
- Test as a stranger. Fresh private window: confirm nothing non-essential is set before you choose, click reject and confirm it stays that way, then accept and confirm the tags appear.
- Write it down and recheck. Update the cookie policy, then repeat the audit whenever you add a plugin, embed or script, because that is when new cookies sneak in.
Where the real rules live
We are an SEO and web design agency in London, not a law firm, and this post is practical guidance, not legal advice. The authoritative source for UK cookie rules is the Information Commissioner’s Office: ico.org.uk carries the current cookies guidance, written for site owners rather than lawyers, and it is updated when the law moves. If your situation is sensitive, for example health data, children’s services or finance, pay a privacy specialist rather than betting on a blog post, including this one.
What we can help with is the practical side: building sites that need fewer cookies in the first place, wiring consent tools so they actually block, and keeping your visibility measurable when analytics data thins out.
Frequently asked questions
Does every UK website need a cookie banner?
No. The requirement is consent for non-essential cookies, not a banner for its own sake. A site that sets only strictly necessary cookies, or none at all, does not need one. Plenty of small brochure sites fall into that category, especially static builds with no analytics or embeds.
Is “by continuing to browse you agree to cookies” still acceptable?
No. That wording was everywhere in the early 2010s, and our own 2011 banner said almost exactly that. The ICO tolerated implied consent for a period, but current guidance requires a clear positive action before non-essential cookies are set, so implied consent banners fail on both wording and mechanics.
Do analytics cookies really need consent?
Under current ICO guidance, yes. Analytics helps you, but it is not strictly necessary for the visitor to receive the service they asked for, however anonymous the reports feel. UK data law has been under reform, so if you are hoping this position softens, watch the ICO’s guidance rather than the rumour mill.
Who is responsible for cookies set by embedded content?
You are responsible for what loads through your pages. An embedded video player, map or social widget that sets cookies needs consent like anything else on your site. Good consent tools can hold these embeds back until the visitor agrees, showing a placeholder in the meantime.
Did Brexit remove the cookie law?
No. PECR remained UK law after Brexit, and the EU GDPR’s consent standard carried over into the UK GDPR. The labels changed; the obligation to ask first did not.
Can we just copy the banner a big brand uses?
Better than nothing, worse than checking. Large sites are regularly criticised for consent design that nudges people towards accepting, so a famous logo is no guarantee of compliance. The ICO’s guidance is short enough to read directly; copy that instead.
This course is helpful and fun. If you are completely new to the topic, you will leave with an understanding of the tools that are available to you and how to start using them. With some practice, you will soon be ready for one more advanced Luckyweb's courses. Rafi is a very patient teacher and he explains tasks in a clear manner so that also complete beginners have the opportunity to follow and learn. This is a fun class with interesting students from different backgrounds and industries. I recommend it to anyone who is new to WordPress and is thinking about building a website with it.
Read moreGreat experience, very informative. The course was an excellent overview of setting up a website, then Rafi broke down each section into steps to follow. Rafi was very generous with his time overrunning to allow for Q&A. I feel confident now to create my own website Thank you
Read moreIt's been a great course. If you want to create your first website without, this is a good course to get started. Rafi explained everything by making the learning process easy and has been so professional and kind enough to answer any question.
Read moreRafi is a very experienced and patient teacher. He is adept at explaining how to build a SEO ready website from scratch, explaining the basic concepts you'll need to create the foundations so when you leave the course, you have the confidence to add your own content. I would highly recommend his courses, no matter what skill set you have or website you have in mind.
Read moreRafi WordPress workshop is absolutely good, he is very patient and very knowledgeable. I learned the how to build my website and the difference between plugins and widget which for me as a beginner was unheard of. I particularly appreciated learning how to secure my site he gave us step by step instruction on how to do it as well as recommending trustful sources to find tools and how to search for them on google. Brilliant class I really recommend.
Read moreI have been working with Rafi since 2011. firstly with the Enterprise society at University College London, where Rafi run two Wordpress courses during our events. These courses were very well attended and we received very positive feedback. Secondly, Rafi has been helping me build a blog with high profile interviews, targetted at the well-educated public in my home country (Brazil). We've been having Skype sessions combined with screenshare, during which Rafi helped me customise theme, homepage, posts, adding slider images, resizing images, etc.The amazing thing is that Rafi teaches me the steps, so I become independent in building the website. Moreover, Rafi is very approachable and patient. I highly recommend Rafi .
Read moreEver since I've met Rafi at a fashion networking event a few years ago, he has been super helpful in helping me build my website using WordPress. He always answers any questions I might have and makes the whole process of creating, designing and building your website a whole lot easier. I am very happy that he is always there when I need him. His workshops are brilliant, where he makes everything quite straightforward to understand, even if you have little or no experience of websites or coding. I would recommend him at any point. Great job, Rafi!
Read moreHave a burning small business project that needs me to personally get directly involved in writing up a website to express the ideas to the final consumers, and then regularily update it. The hand on session Luckywebs has been immensely helpful and has demonstrated that I will be capable of achieving this objective. The instruction was focused relevant and extremely well presented , and will continue with future sessions in the future . Great ! Have a burning small business project that needs me to personally get directly involved in writing up a website to express the ideas to the final consumers, and then regularily update it. The hand on session Luckywebs has been immensely helpful and has demonstrated that I will be capable of achieving this objective. The instruction was focused relevant and extremely well presented , and will continue with future sessions in the future .
Read moreRafi is a great teacher and the course is very informative. Why learn to build a website or blog if it isnt going to be SEO ready? Rafi helps with all of that and has some extra tools as well. I Definetly recommend his class to any newbie!
Read moreA great seminar! I will definitely be coming back to update my skills with WordPress and will be bringing friends along who desperately need to build their own websites. Ravi is a great teacher who made everything look so simple. Highly recommend it! Jay Kay
Read moreExcellent free workshop hosted in RBKC libraries
Read moreI highly recommend this course. It is great for beginners, who have never worked with WordPress before. The course is very intense and informative for a 7 hours session. Rafi was amazing. He was very patient with all of us and made sure we understood every step. I feel confident to finally crate my own website.
Read moreShowing our 12 most recent Google reviews, newest first. No filtering by rating. Read all 60 on Google.