How-to guides

How to check whether your website sets cookies before consent

A five-minute test anyone can do in a browser, to find out whether your banner really blocks trackers.

1 min read

A banner on the page does not prove your website is compliant. What matters is what happens before the visitor clicks anything. You can test it yourself in five minutes.

#The test

  1. Open a private window, so no old choice is remembered.
  2. Open your website. Do not click the banner.
  3. Open the browser's developer tools (F12, or right-click and Inspect).
  4. Go to Application (Chrome, Edge) or Storage (Firefox), then Cookies, and choose your domain.

#How to read the result

You should see only cookies that are strictly necessary: a session, a cart, the CookieTrue choice cookie.

You have a problem if you see names like these:

  • _ga, _ga_XXXX: Google Analytics.
  • _fbp: Meta Pixel.
  • _gcl_au: Google Ads conversion linker.
  • _hjSessionUser...: Hotjar.
  • _clck: Microsoft Clarity.

Also look at the Network tab. Requests to google-analytics.com, facebook.com/tr or analytics.tiktok.com before consent are the same problem.

#Fixing it

  • Put the banner script first in the head.
  • Mark scripts you paste yourself with type="text/plain" and a category. See manual tagging.
  • Set consent checks on tags in Tag Manager.
  • Clear every cache after changes.

#Or let a scanner do it

A scanner does the same test across hundreds of pages and gives you a list. CookieTrue's free scanner works with no account.

This article is general information, not legal advice.

This article is general information, not legal advice. Laws change and differ by country; ask a lawyer about your own situation.