Cookie consent is how a website asks visitors for permission before setting cookies and trackers that are not strictly necessary. In the UK the requirement comes from PECR, with the standard of consent taken from UK GDPR.
What the ICO expects
- No non-essential cookies before consent. Advertising tags must not fire on page load. Since February 2026 cookies used only for aggregate statistics that improve your own site are exempt, but the ICO says third-party analytics qualify only where the provider acts purely on your behalf, which most standard Google Analytics set-ups do not. Keep analytics behind consent unless you have checked.
- Reject as easy as accept. A prominent “Accept all” with “Reject” hidden in a settings menu is not acceptable.
- No pre-ticked boxes and no “by continuing to browse you agree”.
- Clear information about which cookies are used and why.
- Easy to change your mind later, usually via a link in the footer.
Consent management platforms
A CMP handles the banner, records each choice as proof of consent, and blocks or releases tags accordingly. For sites using Google products, choose a Google-certified CMP that supports Consent Mode v2.
The trade-off
A compliant banner means some visitors decline, so GA4 and ad platforms see less data. Good design (plain language, a clean layout) improves acceptance without dark patterns, and Consent Mode and server-side tracking help recover insight within the rules.
Related terms
PECR
PECR are the UK rules on cookies and electronic marketing. They set when you need consent for tracking and before sending marketing emails or texts.
Consent Mode v2
Consent Mode v2 is Google's framework that passes each visitor's cookie choices to GA4 and Google Ads, required for UK ad personalisation and remarketing.
UK GDPR
UK GDPR is the UK's main data protection law, alongside the Data Protection Act 2018. It governs how businesses collect, use and store personal data.
GA4
GA4, or Google Analytics 4, is Google's free analytics platform. It tracks visits, traffic sources and conversions using events rather than sessions.
Remarketing
Remarketing shows ads to people who have already visited your website or app, reminding them to come back and finish an enquiry, booking or purchase.