Skip to content
LandexHub

Rejecting cookies must be as easy as accepting them

· 5 min read

On this page
  1. Why it matters
  2. What an equal choice looks like
  3. Dark patterns to avoid
  4. Example of equal buttons
  5. What rejecting does to your data
  6. How to fix your banner
  7. How to check that the choice is fair
  8. Common mistakes

A banner with a large green Accept button and Reject hidden in the settings is still common. Data protection authorities consider it unfair, and consent collected this way may not hold up. This guide shows what an equal choice looks like, which dark patterns to avoid and what rejecting does to your measurement.

Why it matters

In the EU, cookies that are not strictly necessary need prior consent under the ePrivacy rules. What counts as valid consent is defined by the GDPR: it must be freely given, specific, informed and unambiguous. Withdrawing it must be as easy as giving it.

Freely given means the visitor has a real choice. When accepting takes one click and rejecting takes three, the banner pushes the visitor one way. The European Data Protection Board (EDPB) set up a taskforce of national authorities on cookie banners, and its 2023 report summarised the practices the authorities consider problematic. They include a missing reject button on the first layer, misleading button colours and contrast, and pre-ticked categories.

Beyond the legal risk, it is about trust. A visitor who struggles to close a banner will associate that with your company.

What an equal choice looks like

The first layer of the banner, what the visitor sees right after arriving, should offer at least two choices side by side: Accept and Reject. A third button, Settings, opens a detailed choice by category.

Property Fair banner Problematic banner
Placement Reject is on the first layer next to Accept Reject is only in the Settings window
Number of clicks Rejecting and accepting take one click each Accepting takes one click, rejecting three
Look Same size, font and contrast Accept is a button, Reject a small link
Wording Reject, Reject all Continue without the best experience
Categories Optional categories are off Categories are switched on in advance
Closing The close button acts as Reject, or there is none Closing the banner counts as consent

Dark patterns to avoid

Dark patterns are interface elements that quietly push users towards a choice they would not make on their own. These are the most common ones in cookie banners:

  • Hidden reject. The first layer has only Accept and Settings.
  • Unequal contrast. Reject is light grey on white, Accept a bold coloured button.
  • Misleading wording. “Got it”, “OK” or “Continue” instead of a clear Accept.
  • Guilt and fear. Texts like “The website will not work without cookies” when it is about analytics and advertising.
  • Pre-ticked categories. Analytics and marketing cookies are on in the settings, and one click on Save accepts them.
  • Consent by scrolling. The banner treats scrolling or continued browsing as consent.
  • Nagging. After rejecting, the banner shows again on every page.
  • Necessary that is not necessary. Analytics or advertising listed among necessary cookies that cannot be switched off.

Example of equal buttons

The simplest way to an equal choice is to give all first-layer buttons the same class. The order of the buttons then matters much less.

cookie-banner.htmlHTML
<div class="cookie-banner" role="region" aria-label="Cookie consent">
  <h2>We use cookies</h2>
  <p>
    Necessary cookies are always on. With your consent, we measure traffic
    and tailor advertising. You can change your choice at any time.
    <a href="/cookies">More about cookies</a>
  </p>
  <div class="cookie-banner__buttons">
    <button type="button" class="cookie-button" data-choice="reject">Reject all</button>
    <button type="button" class="cookie-button" data-choice="settings">Settings</button>
    <button type="button" class="cookie-button" data-choice="accept">Accept all</button>
  </div>
</div>
cookie-banner.cssCSS
.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* One look for all buttons: same size, font and contrast */
.cookie-button {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: #0f5f63;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.cookie-button:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

If you use a ready-made banner, look in its settings for a reject button on the first layer and for the colours of each button. You do not need to write code.

What rejecting does to your data

Equal buttons usually mean that more people reject. Analytics and ad platforms then know less about those visitors. That does not mean you lose everything.

Google Consent Mode v2 has two modes. In basic mode, Google tags do not load at all without consent. In advanced mode they load, store no cookies and send only cookieless signals. Google can model part of the missing conversions from them if the website meets its requirements. How it works is explained in Google Consent Mode v2, explained simply.

Hiding the reject option to get more consents does not pay off. The numbers look better, but the consents may not hold up and you risk trouble with the authority.

How to fix your banner

  1. Look at the banner as a visitor

    Open the website in a private window on a computer and on a phone. Count how many clicks it takes to accept and how many to reject.

  2. Add Reject to the first layer

    In the banner settings, turn on the reject button directly in the banner. Name it clearly: Reject or Reject all.

  3. Make the buttons look the same

    Use the same size, font and contrast for Accept and Reject. On a phone, check that both buttons fit and neither is cut off at the edge.

  4. Switch off pre-selected categories

    In the Settings window, only necessary cookies should be on. The visitor switches on the other categories.

  5. Adjust the banner text

    Say briefly what you use cookies for and link to the page with information about cookies. Leave out fear and guilt.

How to check that the choice is fair

  • Rejecting and accepting each take one click.
  • Both buttons are equally large and equally readable, even on a small screen.
  • The banner works with a keyboard: Tab reaches both buttons and you can see where the focus is.
  • After clicking Reject and reloading the page, the banner does not show again and the browser has no analytics or advertising cookies.
  • Optional categories in the Settings window are off.

Common mistakes

  • Reject only in the settings. The first layer has Accept and Settings, nothing else.
  • Reject as a link. Small underlined text next to a large button.
  • A difference only on mobile. On a computer the buttons are equal, on a phone Reject wraps below the edge.
  • Reject that does nothing. The button closes the banner, but measurement starts anyway. How to check it is described in How to check that your cookie banner waits for consent.

LandexHub Consent shows Accept all, Reject and Customize side by side on the first layer, and optional categories stay off until the visitor switches them on.

Frequently asked questions

Is it enough to offer Reject in the settings window?
Usually not. European data protection authorities consider it a problem when the first layer of the banner has no option to reject and the visitor needs more clicks to reject than to accept.
May the Accept button have a different colour than Reject?
Colour alone is not necessarily the problem. The problem is when Reject is much less visible, such as grey text on a grey background or a small link next to a large button. The safest choice is to give both buttons the same look.
Will we lose all data when visitors reject?
Some of it, yes. With Google Consent Mode v2 in advanced mode, Google tags still send cookieless signals without consent, and Google can model part of the missing conversions from them.

Similar guides

5 min read

Google Consent Mode v2, explained simply

What Google Consent Mode v2 is, which four consent signals it sends, how to set it up in code and in Tag Manager, and how to check that it works.