How the free cookie scanner works
This page describes what the free cookie scanner does with the address you give it, how each result is decided, and what it can't see. It is methodology version 1, dated . When the method changes, the version and the change list at the bottom change with it.
What does the scanner load, and from where?
It loads one page in a headless Chromium browser on Cloudflare Browser Rendering, so the visit comes from Cloudflare's network rather than a fixed country. Each visit gets a fresh, isolated browser context: no cookies, storage or consent carried over from an earlier visit.
The scanner waits for the page's load event for up to 30 seconds, then another 2 seconds for tags to fire. The whole check has a budget of 2 minutes. Before loading, the address loses its fragment and common tracking tags such as utm_ parameters and gclid. The rest of the query string stays, because it can select the page.
It only loads public websites: private and internal network addresses are refused, for the page itself and for every request the page makes.
When the page uses a CookieConsentHQ banner, the scanner answers the banner's location lookup as a visitor from Germany, where opt-in rules apply. It also holds back that banner's consent and pageview pings, so a check never adds a record to the site's consent log or counts towards its pageviews.
What counts as a cookie set before consent?
It is a cookie the browser holds after the no-consent visit that the scanner can identify as functional, analytics or marketing. Necessary cookies don't count, and cookies it can't identify are reported separately as unknown.
In practice the check makes two visits. In the no-consent visit the page loads in an empty browser and nothing is clicked. After the 2-second wait the scanner reads every cookie the browser holds, third-party ones included, through the Chrome DevTools Protocol. The second visit presses Accept on a CookieConsentHQ banner; cookies from it join the list but never count as set before consent. The guide to finding cookies set before consent shows how to repeat the no-consent visit by hand.
How does it recognise trackers and consent tools?
Cookies are matched by name against a list of 90 known cookies, exact names before prefixes such as _ga_, and then by the domain that set them against 14 known vendor domains. The free check doesn't use AI classification, so anything else is counted as unknown.
Hardcoded tracker tags are found in the raw HTML the server sent. Every script tag with a src address is compared with 26 known tracker address patterns, except tags marked type="text/plain", which already wait for consent.
Consent tools are recognised by the address of their scripts and iframes, and the list has 22 tools. If one of them, or a CookieConsentHQ banner, is on the page, the page has a banner. No banner is only reported when the page also has something that needs consent: a cookie that isn't necessary, or a known tracker or Google tag.
How does it check Google Consent Mode v2?
It runs four checks, and only when Google tags are on the page; without them all four show as not applicable. The scanner records the requests the page sends to Google and reads the page's dataLayer.
- Defaults before tags
- A consent default command comes before any Google tag command in the dataLayer, or Google's own requests report defaults.
- All four signals
- ad_storage, analytics_storage, ad_user_data and ad_personalization are each set.
- No ad storage before consent
- No Google request reports ad storage as granted, and none of the ad cookies _gcl_*, IDE, test_cookie, __gads or _fbp is set during the no-consent visit.
- Update on accept
- On the second visit the scanner calls Accept, waits 2.5 seconds and looks for a consent update that grants ad_storage and analytics_storage. It can only do this on a CookieConsentHQ banner. For every other tool this check reads Not tested.
Google's requests carry two parameters the scanner decodes. gcs is G1 followed by one digit each for ad_storage and analytics_storage (1 granted, 0 denied), so G100 means both denied. gcd holds one letter per v2 signal that says whether a default, an update or neither set it. Google doesn't document either format; the decoding follows consent tool vendors' and practitioners' testing guides.
The walkthrough on checking Consent Mode v2 covers the same checks in your own browser, and the Consent Mode v2 page explains how CookieConsentHQ sets the defaults.
How is the grade worked out?
Every page starts at 100 points and each problem takes points away: 25 for no banner, 15 plus 5 per cookie (40 at most) for cookies set before consent, 10 for hardcoded tags, 5 for unknown cookies and 10 for each failed Consent Mode check. 90 or more is an A, 75 a B, 60 a C, 40 a D, and anything lower an F.
For example, a page with a banner, two analytics cookies set before consent and one missing Consent Mode signal loses 25 and 10 points, leaving 65: a C. Warnings, checks that don't apply and the name of another consent tool cost nothing. The grade table on the scanner page sets out the same rules.
What can't the scanner see?
Anything outside one visit to one page in one browser. The cookie scanner in a CookieConsentHQ account crawls more pages on a schedule.
- Other pages
- A free check covers one page.
- Other places
- The browser runs on Cloudflare's network. A banner from another tool that changes by country sees that location, not your visitors'.
- Later activity
- Cookies set after a scroll, a click, a login or a timer that fires after the wait are not in the list.
- Other tools' buttons
- The scanner doesn't press Accept or Reject on other consent tools.
- Server-side tracking
- Requests your server sends to analytics vendors never pass through the browser.
What is stored when you run a check?
The page address, its host, the result or an error message, when the check was requested and when it finished, and how you reached the checker, such as a referring site's host. Your IP address is not stored: a keyed SHA-256 hash of it is kept to apply the rate limit, and addresses in one IPv6 /64 count as one.
Each IP address, counted by its hash, can start 5 new checks an hour. If the same page was checked in the last 24 hours and that check didn't fail, you get the earlier report instead of a new scan. A check that hasn't finished after 10 minutes is shown as failed. Reports can be shared by link and are marked noindex, so search engines leave them out.
Version and changes
This is methodology version 1, dated 2026-11-10. The dates below are when the scanner's behaviour changed in code.
- : Free checker launched with the cookie, tracker, consent tool and Consent Mode v2 checks. Other vendors' consent tools count as a banner.
- : Every request the browser makes is checked against the public-address rules, redirects included.
- : On a CookieConsentHQ banner, checks answer the location lookup as a visitor from Germany.
- : Reports are reused per page, not per site. The query string is kept and only tracking tags are dropped.
- : Methodology version 1 published.