05 June 2026

What Is a Cookie Consent Banner and Does My Website Need One?

Cookie consent banners are now a standard feature of most websites — but many businesses still get them wrong. Here's what UK law requires, what counts as valid consent, and how to make sure your cookie banner is actually compliant.

What Are Cookies?

Cookies are small text files that websites store on a visitor's device. They serve many purposes — from keeping you logged in to a website, to tracking your browsing behaviour across the internet for advertising purposes.

Not all cookies are equal from a privacy perspective. The key distinction is between:

What Does UK Law Say?

In the UK, cookie consent is governed by two overlapping pieces of legislation:

Together, these mean that if your website uses any non-essential cookies — including Google Analytics — you must obtain consent before they are placed.

What Counts as Valid Consent?

Under UK GDPR and PECR, valid consent must be:

This means the following are not valid consent:

What a Compliant Cookie Banner Looks Like

A compliant cookie consent banner should:

Do I Need a Cookie Banner If I Only Use Google Analytics?

Yes. Google Analytics uses cookies and collects personal data (including IP addresses). It is not an essential cookie. You must obtain consent before Google Analytics loads on your site.

If you want to avoid the need for cookie consent entirely, consider switching to a cookieless analytics tool such as Plausible or Fathom, which collect anonymous aggregate data without using cookies or processing personal data.

Popular Cookie Consent Tools

There are many tools available to help you implement compliant cookie consent, including:

Most offer free tiers suitable for small websites. Whichever tool you choose, make sure it blocks non-essential cookies until consent is given — not just displays a notice.

Check Your Cookie Compliance

ClearlyCompliant automatically checks whether your site has a cookie consent banner, whether a cookie preferences link is present, and whether your privacy policy covers your cookie usage — for £29.99.

Is Your Website GDPR Compliant?

Find out in minutes with our automated compliance report. 23 checks, AI-powered policy analysis, detailed PDF report — £29.99.

Get Your Report — £29.99