Cookie consent banners: what GDPR and UK rules require
Cookie consent banner guide: what GDPR, PECR, the ICO and CNIL expect, equal reject buttons, no pre-ticked boxes, Consent Mode v2 and testing that tags wait.
Design, web and motion studio in Dubai
A cookie consent banner asks visitors for permission before your website sets non-essential cookies, such as advertising and most analytics tags. Under EU rules (the ePrivacy rules and GDPR) and UK rules (PECR and UK GDPR), consent must be a clear, active choice, refusing should be as easy as accepting, boxes must not be pre-ticked, and the tags must actually wait until the visitor agrees.
This guide covers what the rules require in plain words, which cookies need consent, how to design a compliant banner, Google Consent Mode v2, choosing a tool and testing that it works. It is general information, not legal advice: rules differ between countries and are changing, particularly in the UK, so check your regulator's current guidance.
Key takeaways
- Under EU and UK rules, non-essential cookies such as advertising and most analytics tags need consent before they are set; strictly necessary cookies do not.
- Regulators including the ICO and France's CNIL expect refusing to be as easy as accepting, and the 2019 Planet49 ruling confirmed that pre-ticked boxes are not valid consent.
- Advertisers using Google services for users in the EEA have needed Consent Mode v2 signals since March 2024.
- A banner is only half the job: test that tags really wait for consent, and keep records of what each visitor chose.
What the rules require, in plain words
In the EU, the ePrivacy rules require consent before a website stores or reads information on a visitor's device, unless it is strictly necessary for the service the visitor asked for. GDPR sets the standard for that consent: freely given, specific, informed and unambiguous, given by a clear action, and as easy to withdraw as to give. National regulators interpret and enforce the rules, which is why guidance differs slightly between, for example, France and Germany.
In the United Kingdom, cookies fall under PECR (the Privacy and Electronic Communications Regulations) and UK GDPR, with guidance from the ICO, the UK's data protection regulator. The Data (Use and Access) Act 2025 is changing some cookie rules in stages, so check the ICO's current guidance before you rely on any exemption.
Records of consent and changing your mind
Under GDPR you must be able to show that a visitor consented. A consent tool should log, for each choice, a random identifier, the date and time, the categories accepted or refused and the version of the banner and policy shown. Keep these logs without storing more personal data than you need.
Ask again when you add a new tool or purpose, and at sensible intervals. The law does not set one fixed expiry period, and regulators' expectations differ, so follow the guidance for your main markets. Withdrawing consent must be as easy as giving it, and when a visitor withdraws, the tags must stop and non-essential cookies should be removed where possible.
Google Consent Mode v2 for advertisers
Consent Mode is Google's way of passing a visitor's consent choice to its tags, such as Google Analytics and Google Ads. Since March 2024, Google has required Consent Mode v2 signals for personalised advertising, such as remarketing audiences, to users in the European Economic Area. Version 2 added two signals, ad_user_data and ad_personalization, alongside the earlier storage signals.
Consent Mode does not replace a banner. Your consent tool collects the choice and passes it on; Consent Mode then controls how Google's tags behave. In basic mode, the tags do not load until consent is given. In advanced mode they load but send limited, cookieless signals until consent is given, which means more data leaves the page, so check that choice against your regulator's guidance and your privacy notice. If you rely on Google Analytics 4 reports, expect some gaps from visitors who refuse. The Google Ads Help Centre explains the set-up.
Choosing a consent tool
A consent management platform (CMP) is the tool that shows the banner, stores choices and tells your tags what they may do. Most charge a monthly fee based on traffic or the number of domains, and some have free tiers for small sites; check each tool's current pricing page. Compare them on these points:
- Automatic cookie scanning that finds new tags as your site changes.
- Banner layouts that meet the rules out of the box: reject on the first layer and no pre-ticked boxes.
- Built-in Google Consent Mode v2 support, if you advertise with Google.
- Integration with your platform: WordPress, Shopify, Google Tag Manager or a custom site.
- Consent logs you can export.
- Languages for every market you serve, and different behaviour by region if you need it.
- An accessible banner that does not slow the page down.
- If you show Google ads on your own site as a publisher, support for Google's current consent requirements for publishers.
Getting it fixed
If your test shows tags firing before consent, the fix is usually in how they are installed: move them into your tag manager or consent tool, assign each one a consent category and remove duplicates hard-coded into the theme. Our website fixes and care plans cover set-ups like this, and our free website check flags speed, SEO and mobile issues at the same time.
Selling into Germany or the wider EU? Our guides to the Impressum and the European Accessibility Act cover the other legal pages and duties. For the Gulf, see our UAE and Saudi data protection checklist.
Frequently asked questions
Do I need a cookie banner if I only use Google Analytics?
In most EU countries, yes: analytics cookies are not strictly necessary, so they need consent before they are set. Some regulators allow narrowly configured audience measurement without consent under strict conditions, and the UK is changing its rules in stages. If you use a standard Google Analytics set-up, assume you need consent and check your regulator's current guidance.
Is a cookie wall allowed under GDPR?
A cookie wall blocks access to a site unless the visitor accepts tracking. European regulators have generally been critical of them, because consent is not freely given if refusing means losing access. Some accept alternatives, such as a paid option without tracking, under conditions that differ between countries. For most business sites, a normal banner with a clear reject option is the safer choice.
How long does cookie consent last?
GDPR and PECR do not set a single expiry period. Many sites ask again after six to twelve months, or sooner when they add new tools or purposes, and some regulators publish their own recommendations. Whatever you choose, record when consent was given, and let visitors change their choice at any time through a link in the footer.
What is Google Consent Mode v2?
It is Google's framework for passing a visitor's consent choices to Google tags such as Analytics and Ads. Version 2 added signals for whether user data may be sent to Google for advertising and whether ads may be personalised. Google has required these signals for personalised advertising to users in the EEA since March 2024. It works alongside a consent banner, not instead of one.
The Dawnwire Agency Deck
Our process, what each service includes, how we price and hand over, and a selection of real client work, in one free deck.