Tags and cookie consent
What UK law expects from your advertising and analytics tags after the 2026 changes, and what a compliant cookie set-up looks like.
Before you add advertising or analytics tags to your website, it's worth knowing the rules. This article covers what UK law expects, what changed in 2026, and what a compliant set-up looks like. For a practical walkthrough, see Setting up consent-aware tracking, step by step.
The rules in brief
In the UK, cookies and similar technologies are covered by the Privacy and Electronic Communications Regulations (PECR), alongside UK GDPR. You can't store or read information on a visitor's device unless they've agreed, or an exception applies. The same broad rule applies across the EU.
This covers more than cookies. The Information Commissioner's Office (ICO) now calls them storage and access technologies, which includes tracking pixels, tags, scripts, local storage and device fingerprinting.
What changed in 2026
- New exceptions. The Data (Use and Access) Act 2025 added new cases where consent isn't needed. Most of the cookie changes came into force on 5 February 2026.
- New ICO guidance. The ICO published its final guidance on storage and access technologies in April 2026, replacing its old cookies guidance.
- Higher fines. The maximum fine for breaking PECR is now £17.5 million or 4% of annual worldwide turnover, the same as UK GDPR.
Does my analytics need consent?
There's now an exception for analytics used only to produce statistics that improve your own website, but its conditions are strict:
- the data is used only for that purpose, never for advertising or building profiles
- if a provider runs your analytics, it must act only on your behalf and not use the data for anything else
- you tell visitors about it and give them a simple way to opt out
Many popular analytics tools, including typical Google Analytics set-ups, are unlikely to meet these conditions, because the provider can also use the data for its own purposes. If you're not sure, treat your analytics as needing consent.
Advertising tags always need consent
The Google Ads tag, Meta Pixel, TikTok Pixel, Microsoft UET tag and LinkedIn Insight Tag are all used for advertising, so none of the exceptions apply. They should only run once a visitor has accepted advertising cookies.
What a good cookie banner does
- makes Reject as easy as Accept, on the first screen
- lets people choose categories separately, such as analytics and advertising
- has nothing pre-ticked
- runs nothing that needs consent until the visitor has chosen, and treats ignoring the banner as a no
- lets people change their mind later, for example through a link in your footer
- links to a cookie or privacy policy that names the providers you use
Google Consent Mode
Consent Mode passes each visitor's choice to Google's tags. It comes in two versions:
- Basic: Google's tags send nothing until the visitor accepts.
- Advanced: Google's tags load straight away and send "cookieless pings" to Google, even when the visitor has said no. Google uses these to estimate the conversions it can't see.
Whether advanced Consent Mode meets UK rules is disputed, because those pings are sent without consent. The cautious choice is to send no measurement data to Google until a visitor accepts. That's the approach we take, and the one our step-by-step guide follows.
Where to get help
The ICO's guidance on storage and access technologies is the definitive UK source. This article is general information, not legal advice. If you're unsure about your own set-up, speak to a data protection specialist.
We last checked this against the ICO's guidance on 27 October 2026.