---
title: "UK GDPR Cookie Banner Setup by Platform (2026)"
description: "UK GDPR and PECR cookie banner setup for WordPress, Shopify, Webflow, Wix, Squarespace and GTM: legal requirements, the opt-in preset, and testing."
url: "https://cookiebeam.com/guides/uk-gdpr-cookie-banner-setup-by-platform-2026"
lang: "en"
last_updated: "2026-11-16T10:49:37.418Z"
---

# 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.

> **Tip: Who is covered**
>
> PECR applies to every site that writes to or reads from a UK visitor's device, whatever the size of the business. Strictly necessary storage is exempt. The Data (Use and Access) Act 2025 added exceptions for certain analytics, visual-preference and security cookies, on the condition that you provide clear information and a straightforward objection mechanism. Advertising and cross-site tracking still demand prior opt-in consent.

**Requirements under UK GDPR and PECR**

| Requirement | What the law expects |
| --- | --- |
| Consent before non-essential storage | PECR 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 consent | The 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 |
| Rejecting | The 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 |
| Withdrawing | Visitors must be able to withdraw consent whenever they wish, and the withdrawal process cannot be harder than the original consent was |
| Statutory exceptions | The 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**

| Setting | CookieBeam preset |
| --- | --- |
| Who it matches | Visitors in the United Kingdom |
| Banner mode | Opt-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 defaults | ad_personalization, ad_storage, ad_user_data, analytics_storage and personalization_storage start denied |
| Global Privacy Control | Not acted on unless you turn on privacy signals; when on, it pre-selects deny and an explicit opt-in still wins |
| Stored choice | Expires after 182 days, then the visitor is asked again |

### UK GDPR and PECR setup by platform

- [Google Tag Manager](https://cookiebeam.com/guides/google-tag-manager-consent-uk-gdpr-2026): Container import, consent tag verification, and per-tag consent settings.
- [Shopify](https://cookiebeam.com/guides/shopify-cookie-banner-uk-gdpr-2026): App embed or theme code install, the Customer Privacy API bridge, and checkout behavior.
- [Squarespace](https://cookiebeam.com/guides/squarespace-cookie-banner-uk-gdpr-2026): Code Injection placement, the native banner, and built-in analytics and marketing fields.
- [Webflow](https://cookiebeam.com/guides/webflow-cookie-banner-uk-gdpr-2026): Head code setup, integration fields and embeds, and how Webflow Analyze and Optimize are gated.
- [Wix](https://cookiebeam.com/guides/wix-cookie-banner-uk-gdpr-2026): Custom Code placement, disabling Wix's own banner, and handling its marketing integrations.
- [WordPress](https://cookiebeam.com/guides/wordpress-cookie-banner-uk-gdpr-2026): Plugin setup, the WP Consent API bridge, and which tracking plugins still need gating.

> **Tip: Scan your site free**
>
> Before you make any changes, find out what your site loads today. CookieBeam's Free plan includes 1 cookie scan a month with no card required: the scan identifies every script, connection and stored item your pages produce along with the category each one belongs to, giving you the inventory that every step above builds on.
>
> [Scan your site free](https://cookiebeam.com/sign-up?utm_source=cookiebeam-guides&utm_medium=landing-page&utm_campaign=uk-gdpr-cookie-banner-setup-by-platform-2026)

## 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](https://cookiebeam.com/guides/pecr-uk-cookie-law-post-brexit-2026) covers the conditions in detail.

## Related guides and sources

[PECR and UK cookie law after Brexit](https://cookiebeam.com/guides/pecr-uk-cookie-law-post-brexit-2026), [UK GDPR after Brexit](https://cookiebeam.com/articles/uk-gdpr-post-brexit-differences), [the one-click reject rule](https://cookiebeam.com/articles/one-click-reject-dark-pattern-laws-2026).

Primary sources: [PECR regulation 6 (legislation.gov.uk)](https://www.legislation.gov.uk/uksi/2003/2426/regulation/6), [ICO guidance on PECR](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/).

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.
