Compliance

Cookies, Consent & Tracking

Intermediate

Cookies and similar tracking technologies are regulated. Under EU/UK ePrivacy rules, you generally must get the user's consent before setting non-essential cookies or trackers. That consent must be freely given and as easy to refuse as to accept. "Essential" cookies (needed to make the site work) do not need consent. Analytics and marketing cookies do.

It is easy to drop in a third-party script or analytics SDK that sets cookies the moment the page loads. That is exactly what the rules forbid without prior consent. The details matter: do not load non-essential trackers until the user has agreed, make rejecting as easy as accepting (no deceptive design), and record what they chose.

This is the web-mechanics companion to Privacy & Data Protection and Product Analytics & Telemetry Privacy. Getting it wrong is a common, visible compliance failure (regulators actively fine non-compliant cookie banners) and an easy one to avoid.

Get consent right

Don't track without permission

Track first, ask never
// fires on load, sets cookies, before any consent

Non-essential tracking runs the moment the page loads, with no consent. This is a clear ePrivacy violation, and the kind of thing regulators issue fines for.

Gated on consent if (consent.has('analytics')) loadAnalytics(); // only after opt-in
// banner offers equal Accept / Reject; choice stored & honoured

Trackers load only after the user opts in, refusal is as easy as acceptance, and the choice is respected. This is compliant and honest.

Self-review checklist

Why it matters: Cookie consent is one of the most visible, actively enforced parts of privacy law. Non-compliant banners and tracking before consent draw complaints and fines, and tell customers we do not respect their choices. Gating trackers on genuine, freely-given consent is simple to do and keeps us compliant and trustworthy.