UK GDPR, PECR and cookie consent: basics for a new website
What the ICO says a new UK website needs to get right on personal data, cookies and similar technologies, and on marketing emails, before it goes live.
A new website nearly always touches personal data: contact forms, analytics, embedded media and newsletter sign-ups all do. Two sets of rules sit side by side. The UK GDPR governs how personal data is used. The Privacy and Electronic Communications Regulations, known as PECR, govern cookies and similar technologies on a visitor's device and electronic marketing. This guide summarises the Information Commissioner's published guidance for people buying a site. It is information, not legal advice, and the ICO notes that some of its guidance is under review following the Data (Use and Access) Act, so check the current pages before launch.
Table of contents
The seven principles come first
Article 5 of the UK GDPR sets seven principles: lawfulness, fairness and transparency; purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; and accountability. For a website build they translate into practical questions. Do you really need a date-of-birth field? How long are enquiry emails kept? Who can read form submissions? The ICO states that infringements of the basic principles fall in the highest tier of administrative fines, up to £17.5 million or 4% of total worldwide annual turnover, whichever is higher. That figure is a statutory ceiling, not a typical outcome, but it shows how seriously the principles are treated.
The five exceptions
The ICO lists five circumstances where consent is not needed:
- the sole purpose is transmitting a communication;
- the technology is strictly necessary to provide the service the user requested;
- the sole purpose is collecting statistical information about visitors with a view to improving the service;
- the sole purpose is adapting the appearance or functionality to the user's preference;
- the sole purpose is identifying the device location for emergency assistance.
Two points catch many sites out. First, strictly necessary is judged from the user's point of view, not yours: advertising cookies fund your service but the ICO says there are no advertising purposes that meet the exception. Typical qualifying examples include remembering basket contents at checkout and keeping a user logged in. Second, the statistical and appearance exceptions only work if you give clear information and a simple, free means of objecting. If you do not, you need consent.
Third-party tools need arrangements
The ICO says you must have appropriate arrangements in place with any third parties whose features you embed or whose technologies you enable, and you must consider storage and access technologies at the design stage of a new service. Ask your studio for a list of every script, tag and embed on the build, what each sets, and who receives data. A chat widget or video embed can introduce cookies you never selected.
Marketing emails and texts
Regulation 22 of PECR restricts electronic mail marketing to individuals unless they have specifically consented, or they are existing customers who bought something similar and were offered a simple opt-out when their details were first collected and in every message. This is often called the soft opt-in. It does not cover prospects or bought-in lists. You may not disguise your identity and must provide a valid address for opting out. The ICO says its marketing guidance is under review after the Data (Use and Access) Act, so confirm the current position.
A launch checklist
- Map every cookie and script and classify it against the exceptions.
- Set non-essential items to load only after consent, and follow the ICO's example of equally prominent accept all and reject all options.
- Publish a privacy notice that matches what the site really does.
- Decide retention periods for form submissions and set up deletion.
- Check whether you need to pay the ICO data protection fee; see our compliance costs guide.
- Keep a dated record of choices made, because accountability means being able to demonstrate compliance.
Sources
- ICO: Guidance on the use of storage and access technologies (2026-12-02)
- ICO: What are the PECR rules? (2026-12-02)
- ICO: What are the exceptions? (2026-12-02)
- ICO: How do we manage consent in practice? (2026-12-02)
- ICO: How do we comply with the PECR rules? (2026-12-02)
- ICO: A guide to the data protection principles (2026-12-02)
- ICO: Electronic mail marketing (2026-12-02)
Ecommerce development near you
24 local businesses in Birmingham list this service. Quotes are free and there is no obligation.
Popular areas
Frequently asked questions
Do all cookies need consent under PECR?
No. There are five exceptions, including strictly necessary technologies and, with clear information and a simple way to object, statistical and appearance purposes. Anything outside those exceptions, such as advertising, needs prior consent.
Is analytics always exempt from consent?
Not automatically. The statistical purposes exception applies only where the sole purpose is collecting statistics to improve the service and you give clear information and a simple, free way to object. Wider uses go beyond it.
Can I email people I met at an event?
Under regulation 22 you need specific consent to send marketing emails to individuals, unless they are existing customers who bought something similar and were offered a simple opt-out. Contacts from lists or events generally do not qualify under the soft opt-in.
Does PECR apply if my website is hosted outside the UK?
Yes, according to the ICO: a UK-based organisation that hosts its online service overseas must still comply with PECR.
Where can I check the latest ICO position?
Use the ICO's guidance pages directly. The storage and access technologies guidance was finalised on 29 April 2026, and the ICO flags that some marketing guidance is under review after the Data (Use and Access) Act.
Get a quote from a local agency
Tell us about the enquiry and 24 local businesses can quote for it, free and with no obligation.
More guides
Website accessibility duties under UK law: what applies to your business
How the Equality Act 2010, the public sector accessibility regulations and WCAG 2.2 fit together when you buy or run a website in the UK.
How to choose a UK web design studio: a buyer’s checklist
A practical checklist for comparing web design studios across the Midlands and the North of England, built on public registers and the law that governs service contracts.
Data sources and methodology: how this directory builds its listings
Where the listings of this web design studios, web developers and digital agencies directory come from, how a business is admitted, what is left out and how the site is funded.