How to add cookie consent

Visitors in many regions must agree before analytics or advertising cookies are set.

Why it matters

In the EU, UK and a growing list of US states, setting tracking cookies before consent can lead to fines. A banner that really blocks scripts until consent keeps you compliant.

Steps

  1. Choose a consent tool such as CookieYes, Cookiebot or Complianz.
  2. Configure it to block analytics and ad scripts until the visitor accepts.
  3. Add a link to your cookie details in the privacy policy.
  4. Test with a fresh private window.

Check it worked

Open a private window, load the site and do not click the banner. In developer tools under Application, then Cookies, no analytics or ad cookies should be set yet.

See all 24 fix guides

Not sure if this affects your site?

Run a free scan to see exactly which of these your website needs.