Skip to content

Guide

How to make a GDPR-compliant cookie banner

What the GDPR and the ePrivacy rules expect from a cookie banner: consent before tracking, an easy way to reject, a way to change your mind, and proof of every choice.

Key takeaways

  • In the EU and UK, non-essential cookies and trackers need the visitor's consent before they run.
  • Consent must be a clear, active choice: no pre-ticked boxes, and rejecting should be as easy as accepting.
  • Visitors must be able to change their mind at any time, as easily as they agreed.
  • You must be able to show what each visitor agreed to, so keep a consent log.

Which rules apply to cookies

Two sets of rules work together. The ePrivacy rules (in the EU, the ePrivacy Directive and each country's law based on it; in the UK, PECR) say that a website may only store or read information on a visitor's device with their consent, unless it is strictly necessary for the service the visitor asked for. The GDPR then defines what valid consent is.

Strictly necessary cookies, such as a login session, a shopping basket or a security check, need no consent. Analytics, advertising, social media pixels and most chat widgets do.

A checklist for your banner

  1. Nothing optional runs before a choice. Analytics and marketing scripts wait.
  2. Accept all and Reject all are on the first screen, with equal weight.
  3. A Customise option lets visitors choose category by category.
  4. Each category is explained in plain words, and the banner links to your privacy policy.
  5. A cookie settings link or button stays available, so visitors can change their mind later.
  6. Every choice is recorded with its time, the categories allowed and the banner version.
  7. When you change what you ask for, you ask visitors again.

Questions

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

In the EU and UK, generally yes: analytics cookies are not strictly necessary, so they need consent before they are set. Check with your adviser for your own situation.

Is a banner with only an OK button enough?

No. A banner that only informs does not give visitors a choice, and trackers that run before a choice are not covered by consent.

Is this legal advice?

No. This guide explains common requirements in plain words. Check your setup with your own legal adviser.

This guide explains common requirements in plain words. It is not legal advice; check your own setup with your adviser.

Add your cookie banner today.

Free for your first 10,000 page views. No card needed.