chart, graph, finance, financial, coffee cup, wallpaper 4k, data, stats, space wallpaper, investment, man, beautiful wallpaper, 4k wallpaper, free wallpaper, hd wallpaper, 4k wallpaper 1920x1080, hand, finger, person, mac wallpaper, empty, wood, windows wallpaper, paper, table, wooden, office, blank, business, background, note, space, document, notebook, above, white, page, desktop backgrounds, desk, workplace, pen, copy, coffee, free background, cup, work, paperwork, notepad, wallpaper hd, copyspace, pencil, view, meeting, desktop, laptop wallpaper, cool backgrounds, message, pad, sheet, texture, information, computer, write, technology, full hd wallpaper, laptop
Photo by Goumbik on Pixabay

Rules and ethics

UK GDPR legitimate interests analytics: a first-party guide

UK GDPR legitimate interests analytics needs an Article 6(1)(f) assessment; PECR regulation 6 and transparency and objection rights also matter.

What to take away

  • UK GDPR legitimate interests analytics is a lawful basis in its own right, not a fallback for when consent feels awkward.
  • The ICO sets a three-part testa genuine legitimate interest, necessity, then a balancing exercise against the individual's rights.
  • PECR still governs storage and access on the device, so analytics cookies and identifiers need their own analysis.
  • The balancing test turns on what you collect, how long you keep it and what you do with it, so scope decides the outcome.
  • A documented legitimate interests assessment is the accountability record a reviewer will ask for first.
  • Legitimate interests fails where monitoring is intrusive, unexpected or aimed at children, and consent becomes the only route.

The three-part legitimate interests test as the ICO sets it out

The ICO three-part test

  1. Is there a legitimate interest?
  2. Is the processing necessary for it?
  3. Does the individual's interest override it?

The first limb is easy for many UK marketing teams to articulate. Understanding which pages, campaigns and channels bring people to a site, and whether the site works, is a recognised business interest. The ICO accepts commercial interests, provided they are lawful, clearly articulated and not speculative.

The second limb is where weak assessments collapse. Necessity means no less intrusive route achieves the same result. If aggregate server logs answer your question, collecting a persistent cross-site identifier does not. The ICO expects you to name the less intrusive options you considered and explain why they fall short.

The third limb is the balancing exercise. You weigh the reasonable expectations of the individual against the impact of the processing. Expectations are shaped by context: what the site says, what the person came to do, and what a reasonable person in that position would anticipate.

The legal basis is Article 6(1)(f) UK GDPR. It permits processing necessary for the legitimate interests pursued by the controller or a third party, unless those interests are overridden by the individual's interests or fundamental rights and freedoms.

The ICO sets out its approach in Lawful basis for processing: legitimate interests. Its section “How do we apply legitimate interests in practice?” includes a legitimate interests assessment (LIA) template.

A useful discipline is to write the three limbs as three separate paragraphs before you write anything else. Assessments that merge them read as advocacy rather than analysis, and reviewers notice.

What necessity actually demands

Necessity is not the same as usefulness. The question is whether the processing is a proportionate way to achieve the stated interest, not whether it improves your reporting.

If your interest is stated as understanding campaign performance, you should be able to explain why the specific fields you collect are needed for that. Fields that exist because they were easy to capture are the usual failure point.

Why first-party analytics differs from advertising cookies under PECR

PECR sits alongside UK GDPR and applies to storing information on, or gaining access to information stored in, a user's device. That covers cookies, local storage, pixels and device identifiers. The lawful basis question and the PECR question are separate, and both must be satisfied.

First-party analytics vs advertising cookies

First-party analytics

Strictly necessary
No
Cross-site profiling
No
Reasonable expectation
Usually yes
PECR consent default
Still applies

Advertising cookies

Strictly necessary
No
Cross-site profiling
Yes
Reasonable expectation
Rarely
PECR consent default
Still applies

PECR regulation 6 governs storing information, or gaining access to information already stored, on a user's device. It generally requires consent; regulation 6(4) provides an exception where the storage or access is strictly necessary to provide an information society service the user has explicitly requested. The ICO explains the rules in Guidance on the use of cookies and similar technologies.

First-party analytics often sits awkwardly between those poles. It is not strictly necessary in the way a basket cookie is: the site would function without it. But it is also not the same as cross-site advertising measurement, which builds profiles and targets people elsewhere.

That difference matters in practice. Advertising cookies raise expectation problems that first-party measurement usually does not. A visitor to a UK retailer's site expects the retailer to know which pages were viewed. They rarely expect that data to follow them to a newspaper or a social feed.

The distinction is not a free pass. PECR consent is still the default for non-essential storage, and the ICO has been clear that analytics cookies are not automatically exempt. What changes is the analysis you must do and the weight you give to expectations.

Where first-party analytics is genuinely aggregate, short-lived and used to run the service, the case is stronger. Where it feeds individual-level profiles, retargeting lists or long-term identity graphs, it is advertising measurement wearing an analytics label, and it should be treated as such.

This is also where the collection point matters. What you capture at the tag or endpoint determines what you can lawfully do later, which is why UK measurement rules start at the collection point rather than at the reporting layer.

Where PECR and UK GDPR meet

PECR governs the device. UK GDPR governs the personal data once it exists. A single analytics implementation can breach one and satisfy the other, or the reverse.

Across the UK, the same regulator enforces both regimes, and the ICO can issue fines and enforcement notices against marketing teams as well as technology suppliers.

In practice, teams that get this right treat the two as a single design decision rather than two sign-offs. The storage decision and the lawful basis decision are made together.

Applying the balancing test to an English ecommerce campaign

Consider a Manchester-based homeware retailer running a spring campaign across paid search, email and organic social. The measurement question is which channels drive first purchases, and how the path through the site affects conversion.

Necessity test for the retailer

Aggregate server logs

Channel totals
Yes
Visit-to-purchase link
No
Return visit path
No
Sample size
Full

Short-lived session ID

Channel totals
Partial
Visit-to-purchase link
No
Return visit path
No
Sample size
Full

Consent-gated analytics

Channel totals
Yes
Visit-to-purchase link
Yes
Return visit path
Yes
Sample size
Small

The worked example

Using a first-party web analytics platform configured for event measurement, the retailer wants to collect page views, referrer, campaign parameters, on-site search terms and purchase events, linked to a pseudonymous identifier that persists for 13 months.

Limb one: legitimate interest. Understanding which marketing channels produce sales, and improving the site experience for UK shoppers, is a genuine commercial interest. It benefits the business and, arguably, customers who get a better site.

Limb two: necessity. The retailer tests three alternatives. Aggregate server logs give channel totals but cannot connect a visit to a purchase. A short-lived session identifier gives path data but loses the return visit that most of its purchases involve. A consent-gated analytics tool would give the same data but with a much smaller sample, and the retailer cannot show that the smaller sample would answer the question. It documents all three.

Limb three: balancing. The retailer lists the reasonable expectations of a shopper arriving from a paid search ad: that the retailer will measure the visit and the sale. It then lists the impacts: persistent identification across 13 months, on-site search terms that could reveal sensitive intent, and any risk of the data being reused for advertising.

It mitigates. The identifier is pseudonymous and stored separately from contact details. On-site search terms are excluded from the analytics set because they can reveal health or personal circumstances.

The retailer reduces behavioural retention from 13 months to 90 days. In this worked example, the assessment records why 90 days is sufficient to answer the stated spring-campaign question; it is a purpose-specific decision, not a general benchmark. Purchase events are retained in aggregate. Retargeting is explicitly out of scope and prohibited by contract with the analytics vendor.

After mitigation, the retailer judges that the individual's interests do not override. The processing is limited, expected and short-lived. The assessment records that judgment and the reasoning behind it.

That example is not unusual. For UK ecommerce measurement, the outcome depends on the actual scope: narrowing collection and use can strengthen the balancing case, while broader tracking can weaken it. The mitigation is the decision.

Purpose limitation, retention and the accountability record

Legitimate interests is not a blank cheque for any later use. Purpose limitation applies: data collected to measure a campaign cannot quietly become a targeting input six months later. If the purpose changes, the basis must be reconsidered.

Retention is where most assessments are weakest. Teams state a period without justifying it. A defensible retention period follows from the purpose: if the question is campaign performance over a season, the data need not persist for years.

The accountability principle requires you to demonstrate compliance, not merely claim it. The ICO's Accountability and governance guidance sets out what that means in practice, including records of processing and the ability to show how decisions were reached.

People must also receive the transparency information required by Articles 13 and 14 UK GDPR, including the legitimate interests pursued. Under Article 21, they can object to processing based on legitimate interests on grounds relating to their particular situation; you must stop unless you can demonstrate compelling legitimate grounds or need the data for legal claims. Tell people about the right to object clearly and separately from other information, at the latest when you first communicate with them.

For measurement teams, the practical artefact is a data flow that a reviewer can follow from tag to report. Turning a measurement data flow into a UK GDPR record a reviewer can follow is the difference between an assessment that survives scrutiny and one that does not.

What the accountability record names

  • The fields collected
  • Where each field goes
  • Any vendor or sub-processor
  • The retention period
  • The mechanism that enforces it

Keeping the record current

An assessment written once and filed is a liability. Campaigns change, vendors change, and the balancing exercise is sensitive to both.

Review the assessment when you add a channel, change a vendor, extend retention or introduce a new identifier. A short review note is enough if the reasoning has not moved.

When legitimate interests fails and consent becomes the only route

There are clear cases where the balancing test tips against the marketer, and no amount of narrowing saves it.

  • Monitoring that a reasonable person would find intrusive, such as keystroke capture or session recording of form fields.
  • Processing that is unexpected in context, such as analytics on a page a user reached expecting confidentiality.
  • Any measurement of children, where the ICO expects particular protection and consent is usually required.
  • Data used to build profiles for advertising or sold or shared for others' marketing.
  • Special category data inferred from behaviour, including health, religion or sexual orientation.
  • Cross-site tracking that follows people beyond your own properties.
  • Situations where you cannot offer a meaningful opt-out and the impact on the individual is significant.

Session recording is a common failure in UK marketing teams. It can capture more than the team realises, including typed but unsubmitted form content, and the impact on the individual is hard to argue away.

Where consent is the only route, the practical consequence is scale. Consent rates for analytics in the UK are typically well below the whole audience, so measurement built on consent alone will undercount. That is a design problem, not a reason to stretch the basis.

Advertising measurement that uses personal data for targeting sits firmly in the consent camp, and the same logic applies to server-side tracking under UK GDPR, where moving collection off the browser does not change the lawful basis analysis.

The boundary in one line

If the processing would surprise the person it concerns, or if it follows them beyond your own site, assume consent.

Documenting a legitimate interests assessment for UK teams

A legitimate interests assessment is a short document with a fixed shape. It should take an afternoon, not a quarter, and it should be readable by someone who is not a lawyer.

Six steps of an LIA

  1. State the interest in one sentence
  2. List data and processing
  3. Test necessity alternatives
  4. Run the balancing exercise
  5. Record outcome and safeguards
  6. Set a review trigger

The document should sit alongside your wider launch planning. It is one of the five decisions before you launch any measurement setup, and it is usually the one teams defer longest.

Keep it short. A three-page assessment that a reviewer can follow beats a twenty-page one nobody reads. The test is whether a colleague could reconstruct your reasoning from the document alone.

Finally, note the limits. A legitimate interests assessment does not remove the PECR question, does not authorise later repurposing, and does not protect you if the processing described in the document is not the processing you actually run.

Common questions

Can I rely on legitimate interests for analytics cookies in the UK?
It is possible under UK GDPR if the Article 6(1)(f) test is met, but PECR is a separate test. Regulation 6 generally requires consent for storing or accessing information on a device; its regulation 6(4) exception is limited to what is strictly necessary for a service the user explicitly requested. The ICO does not treat analytics cookies as automatically exempt.
What is the three-part test in the ICO's words?
The ICO frames it as: “Purpose test: Are you pursuing a legitimate interest?”, “Necessity test: Is the processing necessary for that purpose?” and “Balancing test: Do the individual’s interests override your legitimate interest?” Record evidence for each.
Do I need a legitimate interests assessment document?
Accountability requires you to demonstrate compliance. The ICO's Lawful basis for processing: legitimate interests guidance includes a legitimate interests assessment template; a written assessment is the practical way to document your reasoning.
How long can I keep first-party analytics data under this basis?
There is no fixed period. Retention must follow from the stated purpose, and shorter periods strengthen the balancing exercise. Justify the period rather than defaulting to a vendor setting.
When does legitimate interests fail outright?
Where the processing is intrusive, unexpected, aimed at children, or used for profiling and advertising. In those cases consent is the only realistic route.
Does server-side tracking change the analysis?
No. Moving collection off the browser may change what PECR captures, but the lawful basis question under UK GDPR is unchanged and still needs answering.

More in Rules and ethics