Reviewed November 19, 2026

GDPR cookie consent, in plain English

If people in the EU, the UK or Switzerland visit your site, optional cookies need their consent first. Here's what that means for your banner. It's practical guidance, not legal advice: check the details for your business with your own lawyer.

GDPR at a glance

Applies to
Sites with visitors in the EU and EEA, whoever runs them; the UK and Switzerland have similar rules
Model
Opt-in: nothing optional before consent
Main rules
ePrivacy Directive Article 5(3), GDPR Articles 4(11) and 7
Regulators
National data protection authorities, such as the CNIL (France) and the ICO (UK)
Maximum GDPR fine
€20 million or 4% of worldwide annual turnover, whichever is higher
Under the EU ePrivacy Directive and the GDPR, a website must get consent before setting cookies or using similar trackers that aren't strictly necessary. Consent has to be freely given, specific, informed and unambiguous: no pre-ticked boxes, refusing as easy as accepting, a choice per purpose, a way to withdraw it later, and a record you can show.

What your cookie banner needs

The GDPR checklist, in plain words.

  1. 1

    Ask before optional cookies

    Analytics, advertising and most third-party cookies wait until the visitor agrees. Only strictly necessary cookies may run first.

  2. 2

    Make refusing as easy as accepting

    Put Reject all on the first layer, next to Accept all, with the same weight. Hiding refusal behind a second click is what regulators fine most.

  3. 3

    No pre-ticked boxes

    Every optional category starts off. Scrolling or carrying on browsing isn't consent.

  4. 4

    Let people choose by purpose

    Group cookies into categories, such as preferences, analytics and marketing, and let visitors allow some and not others.

  5. 5

    Say what you use

    List your cookies with their purpose, who sets them and how long they last, and link to your privacy policy.

  6. 6

    Make withdrawal easy

    A settings button or link on every page lets visitors change their mind as easily as they agreed.

  7. 7

    Keep records

    Be able to show what a visitor agreed to, when, and on which version of your banner.

  8. 8

    Don't make consent the price of entry

    Blocking the whole site until someone accepts (a cookie wall) is generally not freely given consent.

Which law actually covers cookies, the GDPR or ePrivacy?

Both. Article 5(3) of the ePrivacy Directive says storing or reading information on a visitor's device needs their consent, unless it's strictly necessary for a service they asked for. Each EU country has written that into its own law, such as France's Loi Informatique et Libertés.

The GDPR defines what consent means (Article 4(11)), says you must be able to prove it (Article 7(1)) and says withdrawing it must be as easy as giving it (Article 7(3)). Cookies that identify a person, which is most of them, also count as personal data under the GDPR.

Which cookies are strictly necessary?

Cookies a visitor needs for something they asked for: keeping them signed in, remembering a shopping basket, load balancing, security, and storing their cookie choice itself. These need no consent, but you should still list them.

Analytics, advertising, social media pixels, session recording and A/B testing tools aren't strictly necessary, even if they help your business. Some regulators, such as the CNIL, allow narrow audience measurement without consent under strict conditions; most tools don't meet them as configured.

  • Necessary: session, basket, load balancer, security, consent cookie
  • Preferences: language, region or layout choices that aren't essential
  • Analytics: Google Analytics, Hotjar, Microsoft Clarity
  • Marketing: Meta Pixel, Google Ads, TikTok, LinkedIn, YouTube embeds

What have regulators fined companies for?

In January 2022 the CNIL fined Google €150 million and Facebook €60 million because refusing cookies took several clicks while accepting took one. In 2023 the EDPB's cookie banner taskforce agreed common positions: no Reject button on the first layer, pre-ticked boxes, deceptive colours and contrast, and claiming legitimate interest for cookies are all problems.

The pattern is clear. Regulators look at whether a visitor could say no as easily as yes, and whether trackers fired before they chose.

What about the UK and Switzerland?

The UK applies the same approach through PECR and the UK GDPR, enforced by the ICO. The Data (Use and Access) Act 2025 adds some exemptions for low-risk cookies such as certain analytics; check the ICO's current guidance for what's in force before relying on them.

Switzerland's revised Federal Act on Data Protection (in force since September 1, 2023) and the Telecommunications Act mostly ask for clear information and a way to refuse, rather than strict opt-in. Many Swiss sites ask first anyway because they also serve EU visitors. allowedit treats both the UK and Switzerland as opt-in.

How long can a consent choice last?

The GDPR doesn't set a period. The CNIL recommends keeping a choice, including a refusal, for about six months before asking again, and says consent cookies shouldn't last longer than 13 months. In allowedit you set how long a choice is remembered, from 30 to 395 days (about 13 months).

How allowedit handles GDPR

On every plan, including free.

Opt-in for every EU, UK and Swiss visitor

The opt-in rule can't be switched off for these regions. Nothing optional runs until the visitor accepts.

Reject all on the first layer

Shown by default with the same weight as Accept all, plus a Customise button for categories.

Blocking that actually blocks

40+ known trackers and YouTube or Maps embeds wait for consent, plus your own rules and manual tags.

A cookie list that stays current

Scans find your cookies, and the declaration on your privacy page updates itself.

Proof of consent

Every choice logged with a consent id, time, categories and banner version. No IP addresses.

Consent Mode v2 for Google tags

Google's signals default to denied before any tag loads, as Google requires for EEA traffic.

What allowedit doesn't do

  • We don't offer IAB TCF v2.2 yet, which some ad-funded publishers need for their ad partners.
  • We don't write privacy policies. You still need one that covers your whole site.
  • A banner can't fix a tag that loads before the allowedit script, or cookies your server sets on its own.
  • We're not a law firm. Our defaults follow published guidance, but your lawyer should review your wording.

This page is general guidance, not legal advice. allowedit isn't a law firm. Laws and regulators' guidance change, and how they apply depends on your business, so check your setup with your own lawyer.

Questions

Do I need a cookie banner if I only use Google Analytics?

For visitors in the EU and the UK, generally yes. Google Analytics sets cookies that aren't strictly necessary, so it needs consent first. Google Consent Mode lets GA4 send cookieless pings without consent in advanced mode, which some regulators view differently; check with your adviser.

Is 'by continuing to browse you accept cookies' allowed?

No. Under the GDPR, consent needs a clear affirmative action. Scrolling, browsing on or closing the banner doesn't count, and the CJEU's Planet49 ruling in 2019 confirmed pre-ticked boxes aren't valid consent either.

Does the GDPR apply to a US company?

It can. The GDPR applies to businesses outside the EU that offer goods or services to people in the EU or monitor their behaviour, which includes tracking EU visitors with cookies.

Can I use legitimate interest instead of consent for cookies?

Not for cookies that need consent under ePrivacy. The EDPB's cookie banner taskforce found legitimate interest isn't a valid basis for storing or reading non-essential cookies.

How do I prove consent if a regulator asks?

Keep a record of each choice tied to what the visitor saw. allowedit logs each choice with a consent id, timestamp and banner version, and you can export the log as CSV.

GDPR cookie consent, handled

Free for 1 site with every feature. One flat price when you need more. No card needed.

Create a free account