What is cookie consent?

Cookie consent is the permission a visitor gives, usually in a banner, before a website stores cookies or similar data that aren’t strictly needed for the site to work. In the EU and UK, analytics and advertising cookies need it. Without a “yes”, those cookies must not be set.

Create a free accountFree for up to three sites. No card needed.

Updated 1 December 2026

When you need it

Cookie or toolConsent needed in the EU?
Login session, shopping cart, language choiceNo, strictly necessary
Google Analytics, Meta Pixel, ad tagsYes
Embedded YouTube, maps, chat widgets that set cookiesUsually yes
Cookieless analytics that stores nothing and identifies no oneGenerally no

The rule comes from the ePrivacy Directive (“cookie law”), with GDPR deciding what valid consent looks like.

  • Asked before the cookies are set, not after.
  • “Reject all” as visible as “Accept all”.
  • No pre-ticked boxes.
  • As easy to withdraw as to give.

What a banner costs

Banners interrupt every first visit, and in Europe often a third or more of visitors decline, so cookie-based analytics loses them. Work out your own cost with the cookie banner calculator, and read do you need a cookie banner for analytics?.

Free tools for this

More guides

Ask your website. Get answers right away.

Free for 3 sites. No credit card, no cookies, no code to touch.

Or look around a live demo first, no account needed →