What Are Website Cookies and Why Do They Matter in UK Law?

June 23, 2025

What Are Website Cookies and Why Do They Matter in UK Law?

You’ve probably seen a pop-up on a website asking you to accept cookies — but what exactly are cookies, and why do websites need them?


More importantly, why does the law in the UK require websites to display cookie banners and collect user consent?



Let’s break it down.

What Are Cookies?


Cookies are small text files stored on a visitor’s device when they browse a website. They’re used for a variety of purposes, such as:


  • Remembering login details
  • Tracking how visitors use the site
  • Storing preferences like language or location
  • Powering marketing tools like Facebook Pixel and Google Analytics



Some cookies are essential for the site to function. Others are non-essential and used for tracking or advertising.

A man is holding a glowing icon of a person in his hand.

What Does UK Law Say About Cookies?


In the UK, cookies are regulated under two key pieces of legislation:


  1. The UK General Data Protection Regulation (UK GDPR)
  2. The Privacy and Electronic Communications Regulations (PECR)


Together, these laws require websites to:



  • Show a clear cookie banner when a user lands on the site
  • Give users the option to accept, reject, or manage their cookie preferences
  • Prevent non-essential cookies from loading until the user gives consent
  • Provide a detailed cookie policy explaining what cookies are used and why


In short, if your website uses any form of tracking or analytics cookies, you must ask permission first.

Why Is This Important?


Cookies involve the collection of personal data — including IP addresses and online behaviours. The law exists to give users control over their privacy and how their data is used.



Failure to comply doesn’t just risk a fine from the Information Commissioner’s Office (ICO). It can also damage your brand’s reputation and erode trust with your audience.

Final Thoughts


Cookies help websites run better and provide useful insights — but they also carry responsibilities. Staying compliant is essential to protect your visitors’ privacy and your business.



If you're unsure whether your website is compliant, it’s worth getting it reviewed. A few small changes can go a long way in making sure your site meets UK legal standards.

a close up of an orange background with triangles on it .
  1. FREE GUIDE

    Download our free 40 page guide to getting more business
  2. ASK A QUESTION

    Ask us anything, we'd love to help. Just get in touch with us
  3. OUR WORK

    A selection of work we have completed for various clients
Map of England with Google search boxes overlaid, focusing on locations like Birmingham and London.
By H10 Marketing SEO September 12, 2025
In this guide, we break down why location pages still matter in 2025, the opportunities they present, & how to optimise them for maximum performance.
glossary of AI terms 2025
By H10 Marketing SEO August 28, 2025
The Modern Digital Marketing and AI Terms Glossary (2025 Edition). Each entry explains the latest AI and marketing terminology in simple terms.
The Impact of AI on Customer Experience
By H10 Marketing SEO August 26, 2025
H10 Marketing explains the impact of AI on customer experience, the opportunities it presents, the challenges it brings, & businesses that embrace it.
A group of women are sitting at a table with laptops and tablets.
By Jack Hair August 5, 2025
Unlocking Success: The Crucial Role of the Marketing Mix in Driving Business Growth
By H10 Marketing SEO August 1, 2025
How AI is reshaping the future of Google Search Learn the truth about zero-click searches & what AI hallucinations mean for the future.
A laptop computer is sitting on a wooden desk.
By Mike Hawkins July 28, 2025
Mastering Web Content Writing: 10 Essential Tips to Captivate Your Online Audience
A shopping cart is sitting on top of a stack of cardboard boxes on a laptop keyboard.
By Cerys White July 24, 2025
Boost Your Business: 10 Proven Strategies to Skyrocket Website Conversion Rates
A pile of google ads icons on a blue background.
By Cerys White July 22, 2025
Maximise Your ROI: How to Choose the Right Ecommerce Paid Search Agency for Your Business
How To Appear in AI Results
By H10 Marketing SEO July 16, 2025
Appearing in AI search results requires a strategic shift from traditional SEO to a new approach called Generative Engine Optimisation (GEO).
A computer , laptop , tablet and phone are floating in the air.
By Rosie Hawkins June 30, 2025
Breaking Down the Costs: How Much Does It Really Cost to Build a Website in the UK?