Do You Need a Cookie Banner?

Many websites show a banner they do not legally need, and many others are missing one they do. The answer depends on what your site stores on a device and who visits it.

Do You Need a Cookie Banner? — Troiana insight cover

In short

In the EU and UK, you generally need consent before storing non-essential cookies or similar tracking, such as advertising and most analytics. Strictly necessary cookies are exempt, and if you use only those you may not need a banner at all. US laws usually focus on opt-outs from selling or sharing data. The simplest answer is often to remove unnecessary tracking. This is general information, not legal advice.

The rule in plain English

The law that matters most in Europe isn't only GDPR. It's the ePrivacy rules, which regulate storing or accessing information on someone's device. That includes cookies, local storage and similar technologies, whether or not the data is personal.

So the question to ask is: does my site store or read anything on a visitor's device that isn't strictly necessary to provide what they asked for? If so, in the EU and UK, you generally need consent first. See what a cookie is, technically and what GDPR means in practice.

This is general information, not legal advice. Rules vary by country and keep changing.

What's usually exempt, and what isn't

PurposeConsent in EU and UK?
Shopping basketNo, it's strictly necessary
Login sessionNo
Security, such as fraud preventionGenerally no
Remembering a cookie choiceNo
Load balancingGenerally no
Advertising and retargetingYes
Social media pixels and embedsYes, usually
Most analyticsUsually yes; see below
A/B testing and heatmapsUsually yes

Note that embedded videos, maps and chat widgets can set cookies too, often as soon as the page loads. And a banner isn't the law's requirement in itself. The law requires consent where it applies, and a banner is simply the usual way of collecting it. If you don't need consent, you don't need a banner, although you'll still need to explain your use of cookies in your privacy information. See what a privacy policy should say.

Analytics: the tricky one

EU. Most countries treat analytics cookies as requiring consent. France's regulator, the CNIL, allows an exemption for strictly limited audience measurement, generally requiring that it be first-party and purely statistical, have short retention and involve no combining or retargeting. This is a national position, so don't assume that it applies elsewhere. Vendors often suggest that Google Analytics 4 is unlikely to qualify without significant configuration changes.

UK. The Data (Use and Access) Act 2025 amended the UK's rules and introduced new exceptions, including for some statistical purposes, subject to conditions. Commentary and guidance have been developing, and some reports continue to describe consent as required for non-essential analytics. Check the ICO's current guidance, or take advice, before relying on the exception.

Cookieless analytics. Some privacy-focused tools don't use cookies or store anything on the device. That can remove the need for ePrivacy consent, although it depends on how they work, and GDPR may still apply if personal data is processed. Check each vendor's documentation, and be careful of claims that a tool makes you automatically compliant. See what analytics you should actually track.

The United States

The US doesn't have a general EU-style consent rule for cookies. Instead, state privacy laws, such as California's CCPA and CPRA, usually focus on:

  • Telling people what you collect
  • Letting them opt out of the sale or sharing of data, including some advertising
  • Honouring opt-out signals such as Global Privacy Control, in the states that require it

One review notes that no US state requires opt-in consent for ordinary analytics cookies. These laws usually have size thresholds, so small businesses may not be covered, although that's no reason to ignore good practice. Advertising to children and sensitive data can trigger stricter rules.

Elsewhere

Many other countries have introduced privacy laws, including Brazil and South Africa, and the details differ. The location of your visitors can matter more than where you're based, so an American business with European visitors may still come under EU rules. If you're small and have only a handful of visitors from a region, then your risk is lower, but the law hasn't necessarily stopped applying.

A quick way to decide

  1. Audit what your site sets. Open it in a private window, then check your browser's developer tools, under Application and Network, before you click anything. A scanning tool can help as well.
  2. List every cookie and third-party script, along with its purpose.
  3. Remove what you don't really use. Many sites carry old pixels and tools from previous campaigns.
  4. Sort what's left into strictly necessary and everything else.
  5. If only necessary items remain, you likely don't need a consent banner in the EU and UK.
  6. If anything else remains, block it until consent is given.

If you do need one

The banner has to work properly, or it provides little protection:

  • Nothing non-essential runs before consent. This is the most common failure. Test it.
  • Rejecting is as easy as accepting. Several EU regulators have acted on this. Hiding “reject” behind settings is risky.
  • No pre-ticked boxes. Consent has to be an active choice.
  • People can change their mind easily, with a link in the footer, for example.
  • Keep it plain and specific. Say what's used, and why.
  • Keep a record of consent.

We cover design in how to design a cookie banner people don't hate. Beware of “free” banner plugins that only display a message. Showing a banner while trackers run regardless is arguably worse than having no banner, because it looks like you know the rules.

Rejecting is harder
We use cookies for analytics and ads.
Accept allManage settings
Equally easy
We use cookies for analytics and ads.
AcceptReject
Invented wording. Several EU regulators expect rejecting to be as easy as accepting. General information, not legal advice.

Can you avoid one altogether?

Often, yes, and it's worth considering. Many small sites only need a few things, so the trade-off is simple:

  • Replace Google Analytics with a cookieless tool, or accept consent-gated data
  • Replace YouTube embeds with a thumbnail that loads the video on click, or use a privacy-enhanced mode, and check how it behaves
  • Self-host your fonts. See is Google Fonts GDPR compliant?
  • Remove unused pixels and chat widgets

If you run paid ads, you'll probably still need consent. Then your decision is about how much that advertising data is worth, against a cleaner experience.

Want us to audit what your site sets and advise on a simple approach? Book a call.

Common questions

Is a cookie banner legally required?

Not always. In the EU and UK, you generally need consent for non-essential cookies and similar tracking, and a banner is the common way to get it. If you only use strictly necessary cookies, you may not need one, though you should still explain your use.

Do I need consent for Google Analytics?

In most EU countries, generally yes, and it's unlikely to fit France's limited exemption without significant changes. UK rules have recently changed and have specific conditions, so check current ICO guidance. Cookieless tools can sometimes avoid this, depending on how they work.

Do US websites need a cookie banner?

Not generally in the EU sense. US state laws focus on disclosure and opt-outs from selling or sharing data, and some require honouring signals such as Global Privacy Control. Sites with EU or UK visitors may still need consent.

Can I fine-tune cookies instead of showing a banner?

Yes. Audit your site, remove unnecessary scripts, and use tools that don't store anything on the device where you can. If only strictly necessary cookies remain, a consent banner may not be needed. Keep clear privacy information either way.

Have something worth building right?