Compliance · Data protection

UK GDPR for pharmacy websites: health data is special category data

A pharmacy website is not an ordinary retail website with medicines on it: the moment a visitor orders a treatment, completes a health questionnaire or books a consultation, the site is processing special category health data, the most protected class of personal data in UK law, and sometimes the mere fact of what someone browsed reveals it too. This guide sets out what that classification changes: the Article 9 condition you need on top of a lawful basis, why health pages should not carry advertising trackers, the cookie rules the ICO is actively enforcing, breach duties, and a ten-point audit for your own site.

Last reviewed 25 May 2026 by Arham Jamaal, Superintendent Pharmacist. Referenced against the sources cited in this article.

Why pharmacy website data is special category data

UK GDPR divides personal data into two tiers, and health data sits in the protected one: Article 9 defines special category data to include data concerning health, alongside categories such as ethnicity and sexual orientation, and prohibits processing it unless a specific condition applies on top of an ordinary lawful basis. The reasoning is proportional to the harm: a leaked email address is a nuisance, while a leaked record that an identifiable person sought treatment for erectile dysfunction, weight management or an STI is a disclosure that can damage relationships, employment and dignity, which is why the law demands more than ordinary care.

THE CATEGORY CATCH

What catches pharmacy website owners is how little it takes to cross into the category. A completed consultation questionnaire is obviously health data, but so is the bare fact of the transaction: a person who orders a weight management consultation has told you something about their health by ordering it, and the ICO's guidance is explicit that information revealing or concerning health is caught even where it is inferred rather than declared. On a pharmacy website, the order history, the basket, and in some journeys the pages a logged-in patient browses are all capable of being health data.

The consequence is a mindset shift this article will keep returning to: a pharmacy website is a clinical data environment with a shopfront attached, not a shop with some sensitive products, and every design decision, from analytics tags to form storage to the marketing stack, has to survive that classification.

Lawful basis, twice over: Article 6 plus Article 9

Processing special category data lawfully requires two documented decisions rather than one. First, an Article 6 lawful basis, as for any personal data: for a pharmacy delivering a service a patient has requested, this is typically contract, with legal obligation covering the record-keeping duties pharmacy law imposes and legitimate interests available for limited operational purposes. Second, an Article 9 condition permitting the special category processing: for the clinical journey itself, the natural fit is Article 9(2)(h), processing necessary for the provision of health care, read with the Data Protection Act 2018's health and social care condition, which is available precisely because a registered pharmacy's processing happens under the responsibility of professionals subject to a duty of confidentiality. Explicit consent, Article 9(2)(a), is the condition for processing that goes beyond delivering care, health-related marketing being the clean example, and it must be specific, informed, unbundled from the service and as easy to withdraw as to give.

Two disciplines make this real rather than theoretical. The bases and conditions are written down per processing activity in the record of processing your DSPT documentation already requires, questionnaire handling, order fulfilment, marketing, analytics, each with its pairing. And the privacy notice on the website says the same thing in plain language: what is collected, why, under what basis, who it is shared with, how long it is kept and what rights the person has, positioned where patients will actually encounter it, not buried three clicks deep.

ObligationWhat it means for a pharmacy website
Article 6 lawful basisContract for the requested service; legal obligation for statutory records; legitimate interests narrowly for operations
Article 9 conditionHealth care provision under 9(2)(h) with the DPA 2018 condition for the clinical journey; explicit consent for anything beyond it
TransparencyA plain-language privacy notice at the point of collection, covering purposes, sharing, retention and rights
Data minimisationQuestionnaires ask what the clinical decision needs, not what marketing would like
SecurityEncryption in transit and at rest, access on a role basis, and processing kept inside clinical-grade systems
AccountabilityRecords of processing, DPIAs for high-risk processing, ICO registration and a named owner for all of it

Cookies and consent: the rules being enforced right now

Cookies sit under PECR, the Privacy and Electronic Communications Regulations, alongside UK GDPR, and the operative rules are short: strictly necessary cookies, those genuinely required to deliver the service the visitor asked for, such as the basket and login session, need no consent; everything else, analytics, advertising, social media embeds, personalisation, requires informed, freely given consent before the cookie is set. Consent by scrolling, pre-ticked boxes and banners whose reject route takes three clicks against accept's one do not meet the standard, and the ICO has said so while acting on it: its programme of writing to the operators of the UK's most-visited websites reached its next 1,000 sites in 2025, with public statements that most of the earlier cohort changed their practices and that enforcement continues.

"On a pharmacy website, even the cookie banner is a clinical governance control."

For a pharmacy the banner mechanics are table stakes; the real question is what the cookies are attached to, which is the next section. But get the mechanics right first: reject as easy as accept, non-essential tags firing only after consent, a cookie policy that lists what actually runs, and periodic re-checks, because marketing plugins have a habit of adding tags nobody consented to reviewing, let alone setting.

Trackers on health pages: where analytics becomes disclosure

The most consequential design decision on a pharmacy website is which third parties can see which journeys. An advertising pixel on a condition-specific page does not just count a visit; it transmits to the ad platform that an identifiable or re-identifiable person viewed, added to basket or purchased a treatment that reveals their health, and at that point the pharmacy is disclosing special category data to a third party, with all the Article 9 machinery that entails and, realistically, no condition that covers it. This is not a hypothetical reading: regulators on both sides of the Atlantic have acted against health websites over advertising trackers, and the ICO's audit work on period, fertility and health apps has repeatedly flagged exactly this pattern, consent and transparency failures around tracking technologies in health contexts.

The defensible architecture is a split. General pages, home, about, delivery information, blog content, can run consented analytics like any retailer. Health journeys, condition pages tied to identifiable users, questionnaires, consultation flows, baskets and order confirmation for treatment purchases, run clean: no advertising pixels, no social embeds, no third-party tags beyond what the service strictly needs, with analytics either excluded or configured so nothing identifying and nothing condition-revealing leaves your control. This costs some marketing attribution, and the honest position is to accept that cost as the price of the category you trade in; the pharmacies that would not accept it are well represented in our analysis of why pharmacy websites fail.

Forms, accounts and retention: the data you deliberately hold

Beyond the tracking layer sits the data the website collects on purpose, and three principles govern it. Minimisation: a consultation questionnaire asks what the prescriber's decision requires and nothing else, a contact form asks for a name and a way to reply, and every additional field is a liability collecting itself. Security in transit and at rest: HTTPS everywhere without exception, health data flowing directly into the clinical system that will process it rather than resting in web-form inboxes, email accounts or plugin databases, and hosting arrangements that keep data in the UK or a jurisdiction with adequacy, documented so you can answer the where-is-it question. Retention with an end: clinical records keep to pharmacy record-keeping requirements, but marketing signups, abandoned baskets, chat transcripts and server logs each need their own shorter clock, written into the retention schedule and actually executed, because "we keep everything forever" is both a GDPR breach and a growing attack surface.

Patient accounts deserve one specific mention: an account that displays order history is displaying health data, so it belongs behind proper authentication, with password standards, session expiry and, as it becomes available, multi-factor authentication, the same control the DSPT now asks about for clinical systems.

Breaches and the 72-hour clock

A personal data breach is any incident of security leading to accidental or unlawful destruction, loss, alteration, unauthorised disclosure of, or access to personal data, which on a website includes the unglamorous cases: a misconfigured plugin exposing form submissions, an order confirmation emailed to the wrong address, a compromised admin account, a marketing list sent with recipients in CC. Where a breach is likely to result in a risk to individuals, it must be reported to the ICO within 72 hours of the pharmacy becoming aware; where the likely risk is high, a bar health data reaches quickly, the affected individuals must also be told without undue delay, in clear language, with advice on protecting themselves. Every breach, notifiable or not, goes in the internal breach record with the assessment and reasoning.

The operational requirement hiding in the deadline is detection and rehearsal: 72 hours is generous for a pharmacy that logs access, monitors its website and has an incident SOP with a named owner, and impossible for one that learns about the breach from a patient's complaint three weeks later. Website incidents belong in the same incident process as dispensing errors, feeding the same learning loop, which is also precisely what the DSPT declaration says your pharmacy does.

DPOs, registration and who owns all this

Three accountability anchors close the framework. ICO registration: every pharmacy processing personal data must be registered and paying the annual data protection fee, and non-registration is a criminal offence, not an oversight. The DPO question: a Data Protection Officer is mandatory where core activities involve large-scale processing of special category data, a threshold a substantial online pharmacy can meet, and many pharmacies appoint one, or a named data protection lead where the formal test is not met, because the duties exist either way and unowned duties lapse. The governance seam: none of this is separate from pharmacy regulation, since the GPhC's online pharmacy standards expect secure handling of user details as part of safe distance services, and the same evidence, records of processing, access controls, incident logs, serves both regulators. Data protection on a pharmacy website is not an IT annex to the compliance file; it is a chapter of it, with a name at the top.

The ten-point website audit

Run this against your live site quarterly, alongside the display-requirements check the GPhC guidance demands; each row is a pass or a task.

CheckPass condition
1. HTTPSEvery page and form encrypted, no mixed content
2. Privacy noticePlain language, current, linked at every collection point
3. Lawful bases documentedArticle 6 and Article 9 pairings recorded per activity
4. Cookie bannerReject as easy as accept; non-essential tags fire only after consent
5. Health journeys cleanNo advertising or social trackers on questionnaires, condition pages, baskets or confirmations
6. Forms minimisedEvery field justified by the clinical or service need
7. Data flows into clinical systemsHealth data lands in the PMR or clinical platform, not form inboxes or plugin tables
8. Retention executedSchedules exist per data type and deletions actually run
9. Access and authenticationRole-based admin access, individual accounts, strong authentication on patient accounts
10. Breach readinessIncident SOP with named owner, breach record maintained, 72-hour route rehearsed

Key takeaways

  • Health data is Article 9 special category data, and on a pharmacy website it includes inferred data: the fact of a treatment order or a condition-specific journey, not just questionnaire answers.
  • Lawful processing needs two documented decisions per activity: an Article 6 basis plus an Article 9 condition, with health care provision covering the clinical journey and explicit consent covering marketing.
  • Non-essential cookies need prior, informed, freely given consent with reject as easy as accept, and the ICO is enforcing this at scale, 1,000 sites at a time.
  • Advertising and social trackers do not belong on health journeys: a pixel on a condition page discloses special category data to an ad platform, the pattern regulators keep acting against.
  • Minimise what forms collect, route health data straight into clinical systems, keep hosting in the UK or an adequate jurisdiction, and run retention schedules that actually delete.
  • Notifiable breaches go to the ICO within 72 hours and high-risk breaches to the affected patients, which requires detection, an incident SOP and a rehearsed route, not just awareness of the deadline.
  • Hold current ICO registration, name a DPO or data protection lead, and treat the website's data protection as a chapter of the pharmacy's clinical governance, owned and auditable.

FAQs

Where it concerns health, yes. A completed consultation questionnaire is obviously health data, but so is the fact that an identifiable person ordered a weight management consultation or an erectile dysfunction treatment, because the transaction itself reveals information about their health. Special category data can be processed only with both an Article 6 lawful basis and an Article 9 condition, and the safeguards must match the sensitivity.
AJ
WRITTEN BY
Arham Jamaal
Superintendent Pharmacist · Published researcher, pharmacokinetics
This article is general guidance for pharmacy professionals, not legal advice. Data protection law, ICO guidance and enforcement priorities change; always check current ICO and GPhC publications, and take advice on your specific processing, before acting. Last reviewed 25 May 2026.

Compliant by construction.

The architecture this article argues for, health data flowing straight from your website into a clinical system, clean health journeys, role-based access and UK/EEA hosting, is how Dataforge PMR is built: questionnaires are processed in-platform rather than resting in web forms, and the record lands where the audit trail lives. If your website's data handling would not pass the ten-point audit, book a 30-minute demo and see the compliant version running.

Book a demo

Keep reading