A Beginner's Guide to UK GDPR for Web Developers: Cookies, Consent and Data Requests
October 07, 2026 - Web Development
Most small websites collect personal data long before anyone writes a privacy notice. A contact form, an analytics snippet, a newsletter signup, a booking widget. UK GDPR governs how you handle what comes in, and for a developer building or maintaining a modest site, the real duties are narrower than the horror stories suggest.
Here is what actually matters day to day, and where to start.
UK GDPR is the retained version of the EU regulation, read alongside the Data Protection Act 2018 and enforced by the Information Commissioner's Office. It applies whenever you process personal data: anything that identifies a living person, directly or indirectly. Names, email addresses, IP addresses and cookie identifiers can all count.
You need a lawful basis for each thing you do with that data. Six exist, but most small sites rely on three: consent, contract and legitimate interests. A newsletter needs consent. Delivering an order needs contract. Basic security logging might sit under legitimate interests, provided you have written down your reasoning.
You also have to tell people what you are doing. That is the privacy notice: what you collect, why, how long you keep it, who you share it with, and how to complain. Write it in plain English and keep it current. Templates are a starting point, not a finish line.
This trips people up. Cookie consent in the UK comes from the Privacy and Electronic Communications Regulations, not UK GDPR. The two work together, but the trigger is different: PECR applies to storing information on someone's device, whether or not it counts as personal data.
The shape of the rule is simple. Set a cookie that is not strictly necessary, and you need consent first. The exempt category covers things like a session cookie keeping a shopping basket working, or one that remembers cookie preferences. It does not cover analytics, advertising or most marketing pixels, whatever an old blog post told you.
So the sequence matters: no non-essential cookie should be set until the user has actively agreed to it.
Consent has a high bar. It must be freely given, specific, informed and unambiguous, and withdrawing it must be as easy as giving it.
Technically, the banner has to gate the script. Load analytics only after someone opts in, and make sure your tag manager respects the same state. A banner that hides the visual cookie but fires the script anyway is worse than no banner at all: it is a documented false statement.
Where someone withdraws consent, delete any cookies you have already set.
If someone asks you to prove consent, "they clicked the banner" is not evidence. You want a timestamp, an identifier for the user or session, and the exact wording and version of the banner they saw.
Store this server-side rather than only in the cookie, and version your banner text so you can tell which wording applied at the time. It is a small amount of engineering that saves a lot of awkwardness later.
Individuals have rights, and the ones you will meet most are access, rectification, erasure, restriction, objection and portability. An access request is usually called a subject access request.
You have one month to respond, starting the day you receive it. You can extend by up to two months for complex requests, but you must tell the person why within that first month. Responses are normally free. You can charge a reasonable fee only where a request is manifestly unfounded or excessive, and you should be ready to justify that.
If part of a request cannot be fulfilled, for example data you are legally required to keep, explain the reason plainly and mention the right to complain to the ICO.
Pick one page of your site and trace the data. Where does it go when someone submits a form? Which scripts load on page view, and do they set anything before consent? Write the answers down.
Then fix the obvious things: gate your non-essential scripts, make rejecting as easy as accepting, publish a privacy notice that matches what the code actually does, and start logging consent and requests properly. Document the decisions you make along the way, including why you chose a particular lawful basis.
None of this has to be perfect on day one. It has to be accurate, and it has to be improvable. Data protection is a maintenance job, not a launch task. For anything involving health data, children, or large-scale profiling, bring in a professional adviser rather than guessing.
Copyright © 2026 Wren Stack. All Right Reserved.