Skip to main content
Back to Guides
Compliance5 min readBy Armin Zaribaf

UK GDPR and PECR Cookie Banner Setup by Platform (2026)

What UK cookie law requires, what the UK GDPR preset configures, and step-by-step setup for WordPress, Shopify, Webflow, Wix, Squarespace and Google Tag Manager.

This page brings the UK cookie rules together and links to a setup guide for each platform. Each guide explains where the consent script goes, where tracking can escape it, and how to test the result as a UK visitor.

UK GDPR and PECR

UK cookie law is built on two statutes that operate in tandem. PECR regulation 6 prohibits storing or reading information on a visitor's device without consent, unless the storage serves a strictly necessary purpose. The UK GDPR then sets the bar for what consent has to look like: freely given, specific, informed, and delivered through an unambiguous affirmative action, with withdrawal made no harder than the original agreement. For UK visitors, the upshot is an opt-in banner, a reject button given equal prominence to accept, and every analytics or advertising tag held back until the visitor actively agrees.

Requirements under UK GDPR and PECR
RequirementWhat the law expects
Consent before non-essential storagePECR regulation 6 demands consent before storing or reading data on a device, unless the storage is strictly necessary or qualifies for one of the statutory exceptions
What counts as consentThe UK GDPR requires a clear affirmative act that is both specific and informed. Pre-ticked boxes and consent inferred from continued browsing do not meet the standard
RejectingThe ICO expects a reject option for non-essential cookies that is equally visible and easy to reach as the accept option, displayed on the same layer of the banner
WithdrawingVisitors must be able to withdraw consent whenever they wish, and the withdrawal process cannot be harder than the original consent was
Statutory exceptionsThe Data (Use and Access) Act 2025 introduced exceptions for certain analytics, visual-preference and security cookies, provided you give clear information and offer a simple objection mechanism. No exception covers advertising cookies

CookieBeam's UK GDPR preset starts with these values.

What the UK GDPR preset sets
SettingCookieBeam preset
Who it matchesVisitors in the United Kingdom
Banner modeOpt-in: analytics and advertising stay off until the visitor accepts
Buttons"Accept all cookies" and "Reject non-essential cookies" on the first layer, with equal weight, plus "Cookie settings"
Google Consent Mode defaultsad_personalization, ad_storage, ad_user_data, analytics_storage and personalization_storage start denied
Global Privacy ControlNot acted on unless you turn on privacy signals; when on, it pre-selects deny and an explicit opt-in still wins
Stored choiceExpires after 182 days, then the visitor is asked again

Frequently Asked Questions

Is the UK GDPR or PECR the law that requires a cookie banner?

PECR is the statute that requires consent before storing or reading information on a device. The UK GDPR defines what valid consent looks like. Both statutes are needed to get the banner right.

Can analytics cookies run without consent in the UK now?

In some cases. The Data (Use and Access) Act 2025 introduced an exception for analytics used solely to improve your own service, provided you give clear information and offer a straightforward way to object, and the data doesn't go beyond the provider assisting you. Analytics tools that use the data for their own advertising are unlikely to qualify. Work through the decision with your adviser; the PECR guide covers the conditions in detail.

PECR and UK cookie law after Brexit, UK GDPR after Brexit, the one-click reject rule.

Primary sources: PECR regulation 6 (legislation.gov.uk), ICO guidance on PECR.

This page summarises the law as we understand it in October 2026 for website and cookie decisions. It is not legal advice. Statutes, regulations and regulator guidance change, so check the current text with counsel before relying on any threshold or date mentioned here. CookieBeam's regional presets are configurable starting points, not a legal determination for your site.

7 min read

GPP, MSPA & US State Signals: A Publisher's Guide

The US Privacy String you built for CCPA was deprecated in January 2024. GPP, the US National string, and the MSPA replaced it, and getting the signal wrong can be a misrepresentation. Here's how the new US privacy signals move through the ad stack.

5 min read

Building a TCF CMP That Passes IAB Validation

What it takes for a Consent Management Platform to pass IAB Europe's TCF checks: a registered CMP ID, a cleanly decodable TC String, event-listener delivery, and encoding against the right GVL version.

9 min read

How to Migrate Your CMP Without Losing Existing Consent Records

A step-by-step technical guide to switching consent management platforms without losing consent records, triggering mass re-consent, or breaking Consent Mode. Covers export, category mapping, parallel runs, and zero-downtime migration patterns.