What Is a Cookie on a Website? What UK Business Owners Must Get Right

What is a cookie on a website? It’s a small text file that a site saves in your browser so it can remember something about you, such as what’s in your basket, that you’re logged in, or which pages you’ve visited. Cookies make websites work smoothly, but in the UK most of them can only be set with the visitor’s permission, and the rules changed in 2026.
If you run a business website, this guide explains what cookies actually do, which ones need consent, what the Data (Use and Access) Act 2025 changed, and how to get your cookie banner right without wrecking your visitors’ first impression.
What is a cookie on a website, in plain English?
When you visit a website, your browser and the site’s server exchange information. A cookie is a tiny file, usually just a name, a value and an expiry date, that the site asks your browser to store. Next time your browser loads a page from that site, it sends the cookie back, so the site can recognise you.
Cookies themselves can’t run code or read your files. The privacy question is about what the information is used for. A cookie that keeps you logged in is helpful and harmless. A cookie that lets an advertising network follow you across hundreds of websites to build a profile of your interests is a very different thing, which is why the law treats them differently.
UK law doesn’t only cover cookies. The same rules apply to similar technologies such as tracking pixels, local storage and device fingerprinting. The Information Commissioner’s Office (ICO) now calls them “storage and access technologies”, but “cookies” is still the everyday word.

The main types of cookies
Cookies are usually described in two ways: who sets them and how long they last, and what they’re for.
| Type | What it means | Example |
|---|---|---|
| First-party | Set by the website you’re visiting | Remembering items in your basket |
| Third-party | Set by another company’s code on the page | An advertising network or embedded social media widget |
| Session | Deleted when you close the browser | Keeping you logged in while you browse |
| Persistent | Stays until it expires or you delete it | Remembering your language or cookie choices |
By purpose, most business websites use some mix of these:
- Strictly necessary: things the site can’t work without, like a shopping basket, a login, load balancing, security and fraud prevention.
- Functionality and preferences: remembering choices such as language, region or text size.
- Analytics: counting visits and seeing which pages people use, so you can improve the site.
- Marketing and advertising: retargeting ads, social media pixels, cross-site tracking and building interest profiles.
What UK law says about website cookies
Cookies are governed by the Privacy and Electronic Communications Regulations (PECR), regulation 6, alongside UK GDPR wherever the data identifies a person. The basic rule is simple: before you store or access information on someone’s device, you must tell them clearly what it’s for and get their consent, unless an exemption applies.
Consent has to meet the UK GDPR standard. That means it must be freely given, specific, informed and a clear positive action. Pre-ticked boxes, “by continuing to browse you accept cookies” and a single bundled tick for everything don’t count.
What changed in 2026
The Data (Use and Access) Act 2025 received Royal Assent on 19 June 2025, and its cookie changes came into force on 5 February 2026. Two changes matter most to small businesses.
New exemptions from consent. You no longer need opt-in consent for cookies whose only purpose is:
- collecting statistics to improve your own website or service (analytics), or
- adapting the site’s appearance or functionality to the visitor’s preferences.
There are conditions. You must give clear and comprehensive information about these cookies, offer a simple and free way to object, and stop straight away if someone does object. Analytics data can only be shared with someone helping you make those improvements. A narrow exemption also covers location data used to provide emergency assistance, and the existing strictly necessary exemption expressly includes purposes such as security, fraud prevention and authentication.
Much higher fines. Breaches of the cookie rules can now attract fines of up to £17.5 million or 4% of global annual turnover, whichever is higher. The old ceiling under PECR was £500,000.
What still needs consent
Advertising and tracking cookies still need opt-in consent. That includes retargeting, social media pixels such as the Meta or LinkedIn pixel, ad measurement, cross-site tracking and profiling. A cookie used for analytics and advertising doesn’t qualify for the analytics exemption, so whether your analytics tool is exempt depends on how it’s set up. If it shares data with the provider for its own advertising purposes, treat it as needing consent.

How to get your cookie banner right
The ICO updated its guidance on storage and access technologies in 2026 to reflect the new law. The practical points for a business website are:
- Audit what your site actually sets. Open your site in a private browser window, look at the cookies in the browser’s developer tools, and list every plugin, embed and script. Many sites set more than their owners realise, particularly from video embeds, chat widgets and ad pixels.
- Sort each one by purpose. Strictly necessary, analytics, preferences or marketing.
- Block non-exempt cookies until consent. Marketing scripts shouldn’t load until the visitor has said yes.
- Make “Reject” as easy as “Accept”. The ICO expects both options to have equal prominence on the first layer of the banner. A big green “Accept all” next to a small grey “Manage settings” link isn’t good enough.
- No pre-ticked boxes. Optional categories should start switched off.
- Offer an easy way to object to analytics. If you rely on the new analytics exemption, explain it clearly and give a simple, free opt-out that works immediately.
- Let people change their mind. Withdrawing consent should be as easy as giving it, usually via a cookie settings link in the footer.
- Update your privacy and cookie policy. Explain what each cookie does, who sets it and how long it lasts.
This is general information rather than legal advice. If your site does anything unusual with personal data, check the ICO’s guidance directly or speak to a data protection specialist.
Common cookie mistakes on small business websites
- Ad pixels firing before consent. Often added by a marketing agency or plugin and forgotten about.
- A banner that only says “OK”. That’s a notice, not a choice.
- Embedded videos setting tracking cookies. Standard YouTube embeds can set cookies. Privacy-enhanced embeds reduce this, and click-to-load placeholders hold everything back until the visitor chooses to play.
- A cookie policy copied from another site. It needs to describe your cookies, not someone else’s.
- Never reviewing it. Every new plugin or tracking tool can change what your site sets.
Building a website that handles cookies properly
Cookie compliance is much easier when it’s planned into a website build rather than patched on later. Keep third-party scripts to what the business actually needs, set up consent before launch, and check that embedded video and analytics behave. You can see examples of sites we’ve built in our write-ups of the CJC Contracts website redesign and the Your Block Management website launch.
If your current site has a banner you’re not sure about, or you’re planning a new one, take a look at our pricing or contact us and we’ll talk it through.
Frequently asked questions
Are website cookies dangerous?
No. Cookies are small text files and can’t run code or install anything. The concern is privacy, particularly third-party cookies used to track people across websites.
Do I need a cookie banner if I only use analytics?
Since 5 February 2026, analytics used only to improve your own site can be exempt from consent, but you still need to explain it clearly and give a simple way to object. If the analytics tool also uses the data for advertising, consent is still needed.
What happens if I accept cookies?
The site can set the optional cookies you agreed to, such as analytics or advertising cookies. You can usually change your choice later through the site’s cookie settings or by clearing cookies in your browser.
Should I accept or reject cookies on websites?
Rejecting optional cookies won’t stop a well-built site working, because strictly necessary cookies don’t need your consent. Accept if you’re happy with how the site says it uses them.
What is the fine for breaking UK cookie rules?
Since February 2026 the maximum is £17.5 million or 4% of global annual turnover, whichever is higher, up from £500,000 under the old PECR regime.
