Short answer: Under PECR you generally need a visitor’s consent before setting non-essential cookies, including most analytics and advertising ones. Strictly necessary cookies are exempt, and consent must be as easy to refuse as to give.
If your website uses Google Analytics, an advertising tag, a social media pixel or a chat widget, you almost certainly set cookies that need consent under UK law. Plenty of small business sites don’t have a working consent system, which is a compliance risk and increasingly a trust issue. This is a practical overview, not legal advice. For anything high-stakes, check the Information Commissioner’s Office (ICO) guidance or ask a solicitor.
The rules in short
In the UK, cookies and similar technologies are governed by the Privacy and Electronic Communications Regulations (PECR), alongside the UK GDPR when the cookies involve personal data. The core principle:
- You need the visitor’s consent before setting or reading non-essential cookies on their device.
- Cookies that are strictly necessary to deliver something the visitor asked for are exempt from consent.
- You must tell people clearly what cookies you use and why.
- Consent must be a genuine choice: refusing should be as easy as accepting, and pre-ticked boxes don’t count.
What usually counts as strictly necessary
- A cookie that remembers items in a shopping basket.
- A login session cookie.
- A security cookie protecting a form from forgery.
- A cookie remembering the consent choice itself.
What needs consent
- Analytics (for example Google Analytics), in most cases.
- Advertising and remarketing tags, including conversion tracking from ad platforms.
- Social media tracking pixels.
- Third-party embeds that set cookies, such as some video or map embeds.
Check, don’t assume. Open your site in a private window, look in your browser’s developer tools under Application, then Cookies, and see what is set before anyone has clicked anything. Your developer can also audit the scripts on your pages.
What a compliant setup looks like
- Non-essential scripts don’t run until consent is given. A banner that shows but lets the tags fire anyway isn’t compliant.
- Accept and reject are equally easy. Same prominence, same number of clicks.
- A way to change your mind later, such as a “cookie settings” link in the footer.
- A cookie or privacy policy listing the cookies, their purpose and how long they last.
- A record of consent, where that’s needed.
Consent Mode and tag managers
Google’s Consent Mode and tag manager tools can hold tags back until consent is given, and then adjust what they collect. They’re a way of implementing the rule, not a replacement for it, so they need configuring properly to work with a real banner.
Avoiding the problem
The simplest compliance is not to set cookies you don’t need. Some options:
- Use privacy-friendly, cookieless analytics where you only need basic traffic figures.
- Keep public pages free of session cookies, so only forms and logins set them.
- Remove old tags nobody uses.
Fewer scripts also means a faster site: see 9 ways to make your website load faster.
Don’t forget the policy
Your privacy policy should describe what personal data the site collects, including through forms, and why. You can see the one on this website as an example of the sort of information to include, but yours must describe your data handling.
Getting it implemented
I can audit what your site sets, remove what you don’t need and wire a consent banner so tags only fire after a choice has been made. Contact me to talk it through.