Skip to content
Privacy and compliance

What is a cookie banner?

3 min read · Updated · By the Reveata team

Short answerA cookie banner is the pop-up or bar a website shows to tell visitors which cookies and similar technologies it uses and to collect their choice, so that non-essential cookies are only set after the visitor agrees.

Person using MacBook Pro
Photo by Campaign Creators on Unsplash

The banner is the interface; cookie consent is the legal idea behind it. A banner only does its job when the website really waits for the visitor's answer before loading the cookies the banner asks about. A banner that sets everything on page load and then asks is decoration, not consent.

What a good banner contains

  • A clear accept and a clear reject. Regulators in several EU countries have objected to banners where refusing takes more clicks than accepting.
  • Purposes in plain words. "Analytics: counts visits so we can improve the site" says more than "We value your privacy".
  • A link to the cookie policy that lists each cookie, who sets it and how long it lasts.
  • A way back. A link in the footer that reopens the choices, because consent must be as easy to withdraw as to give.

How banners work technically

Most sites use a consent management platform (CMP). It shows the banner, stores the visitor's choice (often in a cookie of its own, which is allowed because it is needed to remember the choice) and tells your other scripts what they may do. Scripts that need consent are either blocked until a positive choice, or loaded in a restricted mode. Google's consent mode is one example of the second approach.

Common mistakes

  1. Loading tags before the choice. The analytics or ad script runs on the first page view, before the visitor has answered.
  2. Hiding reject. Reject sits under "More options" while accept is a big button.
  3. Lumping purposes. One switch for analytics, advertising and personalisation together.
  4. Forgetting the app or the subdomain. Choices made on www are not applied on app or in the mobile app.
  5. Copy-pasted cookie lists that no longer match what the site sets.

The cost of a banner for analytics

Every visitor who rejects or ignores the banner disappears from consent-gated analytics. You cannot measure how many, because they are, by definition, not measured. Decisions about channels and pages are then made on the visitors who said yes.

How Reveata fits in

Reveata lets you decide which side of the banner analytics sits on:

  • Behind the banner. With the default script, Reveata sets two first-party cookies on your domain (_dt_v and _dt_s). Put the script in your CMP's analytics category and it runs only after acceptance. Some builders do this for you: on Wix, choosing the Analytics category lets Wix's banner hold the script back.
  • Without analytics cookies. In cookieless mode, the script stores nothing in the browser. Visitors are counted for one day with a hash whose daily salt is then deleted. Many site owners use this to keep analytics out of the banner entirely.

Which of the two your visitors' laws allow is a question for your legal adviser; Reveata's own docs say so too. The cookies Reveata sets are listed, with lifetimes, in its Cookie Policy, which you can mirror in your own.

Frequently asked questions

Does every website need a cookie banner?

No. A banner is needed when you use cookies or similar storage that require consent under the laws your visitors live under. A site that sets only strictly necessary cookies may need a cookie notice in its policy but not a consent banner.

Is a cookie banner enough to make tracking legal?

Only if the site respects the answer. The banner must come before the non-essential cookies, offer a real choice and record it. The data you collect after consent is still subject to the GDPR's other rules.

Should the banner remember the choice?

Yes. Asking again on every page annoys visitors, and storing the choice is generally accepted as necessary. Let people change their mind later from a link that is always available.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is cookie consent?Cookie consent is the permission a website asks a visitor for before it stores or reads non-essential cookies, or similar data, on their device. Under EU and UK rules it must be given freely, clearly and before the cookies are set, and it must be as easy to refuse as to accept.GlossaryWhat is Google Consent Mode?Google Consent Mode is a feature of Google's tags (gtag.js and Google Tag Manager) that tells Google Analytics and Google Ads what a visitor agreed to in your cookie banner, so the tags adjust their behaviour, for example by not setting advertising cookies when consent is denied.GlossaryWhat is a first-party cookie?A first-party cookie is a small piece of data stored by the website shown in the address bar, on that site's own domain. Only that site can read it, which is why it is used for sign-in sessions, shopping baskets and first-party analytics.GlossaryWhat is cookieless tracking?Cookieless tracking is website measurement that stores nothing in the visitor's browser: no cookies, no local storage. Visits are counted from what each request already carries, usually combined into a short-lived anonymous id on the server.GlossaryWhat is a data controller?A data controller is the organisation that decides why and how personal data is processed. A data processor is a separate organisation that processes the data on the controller's behalf and only on its instructions, such as an analytics or email provider.GlossaryWhat is a data processing agreement (DPA)?A data processing agreement (DPA) is the contract in which a company that processes personal data for you, such as an analytics or email provider, commits to handling it only on your instructions and with proper safeguards. The GDPR requires one whenever a processor handles personal data for a controller.