Guides

Cookie consent and Google Consent Mode v2: what every website owner should know

Almost every website has a cookie banner today, but some only inform visitors about cookies without actually blocking anything. We explain what the law requires, how Google Consent Mode v2 fits in, and how to check your own website.

By PageVision · Updated

When you need consent

In the UK, cookie use is governed by PECR (the Privacy and Electronic Communications Regulations) alongside UK GDPR. The rule is straightforward: cookies that are strictly necessary for the website to work (a basket, sign-in, security, or remembering the consent choice itself) can be set without consent. Analytics and marketing cookies – Google Analytics, Google Ads, Meta Pixel, Hotjar and similar – need clear visitor consent before they're set.

Compliance with these rules is overseen by the ICO (Information Commissioner's Office).

What a compliant cookie banner should look like

  • Accepting and declining should be equally easy: "Accept all" and "Necessary only" buttons the same size and both visible immediately.
  • Analytics and marketing categories should not be pre-ticked.
  • Until the visitor chooses, no non-essential cookie should be set.
  • The visitor should be able to change their choice at any time, for example via a link in the footer.
  • There should be a link to a privacy or cookie policy explaining which cookies are used and why.

The most common mistakes: a banner with only an "I agree" button, Google Analytics code added directly to the website and firing before consent, Meta Pixel not being blocked, or a banner set up once and never checked again even as new tools get added.

How to check your own website

  1. Open your website in your browser's private (incognito) window and don't click anything.
  2. Press F12, and in Chrome open the "Application" tab and look at the "Cookies" list.
  3. If cookies starting with _ga, _gcl or _fbp are already there, tracking is firing without consent.
  4. Click "Necessary only" and reload the page – those cookies should still be absent.
  5. Check Consent Mode signals with Google Tag Assistant: it shows which consent states are passed before and after consent.

Quicker still – a free website check shows in half a minute which tracking tools load and whether a consent banner was found.

What else you need

A cookie banner only covers part of UK GDPR compliance. Your website also needs a privacy policy: what data you collect, what you use it for, how long you keep it, and what rights visitors have. If others process data on your behalf (for example, Google, Meta, or a newsletter tool), you need data processing agreements with them – usually accepted when you agree to their terms of service.

Frequently asked questions

Can’t find your answer? Ask us.

Do I need consent if I only use Google Analytics?

Yes. Google Analytics sets analytics cookies that aren't strictly necessary for the website to function, so they can't be set without consent.

Can I hide the "Decline" button in settings?

No. If accepting takes one click, declining has to be just as easy, in that same first screen.

How long does consent last?

The law doesn't set an exact length. Consent is usually stored for 6–12 months, after which the visitor is asked again. You should also ask again whenever the tools you use change significantly.

Got a question?

Send it over — we'll reply with advice for your situation. No obligation either way.