PrivacyQuick

Comparisons

How cookie scanners work, and their limits

A cookie scanner loads your pages in an automated browser, records the cookies, storage and third-party requests it sees, and matches them against a database of known trackers. It's a fast way to build an inventory, but it only sees what an anonymous visitor in one place sees on the pages it reaches.

  • Plain English
  • Written for website owners
  • Free to read

A cookie scanner visits your website with an automated browser, loads pages the way a visitor would, and records every cookie, every item written to local or session storage and every request sent to another domain. It then compares what it found with a database of known cookies and trackers to suggest what each item is and which consent category it belongs to. That gives you a fast, repeatable inventory. The limits come from the same design: a scanner sees only what an anonymous visitor in one location sees on the pages it manages to reach.

This guide explains how scanners work under the hood, what their results mean and where you still need to look yourself.

Modern scanners use a headless browser, which is a real browser engine such as Chromium running without a visible window. Automation libraries like Puppeteer and Playwright drive it. The scan usually follows these steps:

  1. Find pages. The scanner starts from your home page, reads your sitemap if there is one, and follows internal links up to a page limit or depth.
  2. Load each page in a clean session. Each scan typically starts with no cookies, like a first-time visitor in a private window.
  3. Wait for activity. Many scripts load late, so scanners wait for network activity to settle and may scroll the page to trigger lazy-loaded content.
  4. Record what happened. Through the browser's debugging protocol the scanner reads every cookie the browser holds, the contents of local and session storage, and the list of network requests with their destination hosts.
  5. Classify. Each cookie name and domain, and each third-party host, is matched against a database of known items.
  6. Report. You get a list per page or for the whole site, usually with suggested categories and the items that couldn't be identified.

Because a real browser engine runs your JavaScript, a scanner sees cookies set by scripts as well as cookies set by your server. That's the main difference from simply looking at HTTP headers.

What scanners record

ItemHow it's detectedWhy it matters
First-party cookiesBrowser cookie store for your domainIncludes analytics cookies set by scripts on your own domain, which are easy to overlook
Third-party cookiesBrowser cookie store for other domainsSome browsers block or partition them, so results can vary by browser
Local and session storageReading storage for each originStorage on the device needs consent under the same rule as cookies
Third-party requestsNetwork log of hosts contactedPixels and beacons may send data without setting any cookie
Cookie attributesExpiry, domain, path, Secure, HttpOnly, SameSiteExpiry goes into your cookie policy table
Source pageWhich URL the item first appeared onTells you where to find and tag the script

The third-party request list is often the most useful part. A tracking pixel can collect data with no cookie at all, and the ePrivacy rule on device access isn't limited to cookies. The guide to localStorage, sessionStorage and consent explains why storage counts too.

How classification works

Scanners classify by matching. A cookie named _ga on your domain is recognized as Google Analytics; a request to a known ad network's host is marked as marketing. Some names include variable parts, such as _ga_ followed by a measurement ID, so databases use patterns as well as exact names.

Matching has two weaknesses. First, a database can't know your custom cookies; anything your own developers or plugins set will show as unknown until you classify it. Second, one tool can serve several purposes, and the category depends on how you use it. A chat widget may be functional on one site and used for marketing on another. Treat suggested categories as a draft. The guide to cookie categories helps you decide where each item belongs.

A scanner that doesn't interact with your banner sees the site as a visitor who hasn't chosen yet. That's exactly the view you want for one question: does anything non-essential load before consent? If the pre-consent scan shows analytics or ad cookies, your blocking isn't working.

For a full inventory, though, you also need to know what loads after consent. Some scanners can click Accept all, or set the consent state directly, and scan again. Comparing the two runs tells you more than either one alone:

  • Items in both scans should be strictly necessary. If they aren't, they're leaking before consent.
  • Items only after Accept all are the ones your banner controls. They belong in your cookie policy with their categories.
  • Items that appear after Reject all are a red flag, since rejecting should leave you with the pre-consent set.

If your scanner can't do a post-consent scan, accept the banner yourself in a private window and record what appears using the steps in checking cookies in Chrome DevTools.

Run two scans, not one: a pre-consent scan to prove nothing non-essential loads early, and a post-consent scan to build the full inventory for your cookie policy.

Blind spots: what scanners miss

A missing item in a scan report doesn't prove the item isn't on your site. Common causes of false negatives:

  • Logged-in pages. Account areas, members' content and admin screens aren't reachable without credentials. Some tools accept a login or a session cookie, but most free scans don't.
  • Checkout and form flows. Conversion pixels often fire on the order confirmation page or after a form submission, which a crawler never reaches.
  • Interaction-triggered tags. Tags that fire on a click, scroll depth, video play or timer may not run during an automated visit. Tag manager triggers are a frequent example.
  • Location. A scanner runs from one country. If your consent tool, ad partners or content vary by region, a scan from the US can show a different picture from what a visitor in Germany gets.
  • Pages the crawler didn't reach. Pages not linked from anywhere and not in the sitemap, or beyond the scan's page limit, are skipped. Landing pages built for campaigns are often in this group.
  • Bot protection. Firewalls and bot-management services may challenge or block headless browsers, so the scanner sees an error page instead of your site.
  • Variation. A/B tests, rotating ads and personalized content load different scripts on different visits.
  • Things that leave no trace in the browser. Server-side tracking sends data from your server, not the visitor's browser, so a browser scan can't see it. Fingerprinting scripts may read device properties without storing anything.

There are false positives too. A scan may list cookies set by a third-party embed that only appears on one old blog post, or test cookies that a script sets and deletes immediately. Those are still worth knowing about, but they may not need a line in your policy if you remove the source.

How often to scan

A scan is a snapshot. Sites change when someone installs a plugin, adds a marketing tag, embeds a video or updates a theme, and vendors change what their scripts load without telling you. A sensible rhythm:

  • Scheduled scans on a regular cycle, weekly or monthly for most small sites, more often for sites where marketing tags change frequently.
  • A scan after every release that changes templates, plugins or tag manager containers.
  • Alerts for new items. A scanner that tells you when a new tracker appears saves you from reading full reports each time.
  • A manual review at least once or twice a year covering the pages scanners can't reach.

PrivacyQuick's scanner, for example, crawls your site in a real headless browser, records cookies, local and session storage and third-party hosts, and classifies them against a database of known cookies and trackers. Scheduled scans run monthly on the Free plan (started manually), weekly on Starter and daily on Pro, with email alerts when new trackers appear. You can try a one-off free public scan on any site.

Combining a scanner with a manual audit

The most reliable inventory comes from using both methods for what they're good at. Let the scanner cover breadth: every public page, on a schedule. Cover depth yourself:

  1. List the flows a crawler can't complete: login, checkout, contact and newsletter forms, booking widgets.
  2. Walk through each one in a private window with DevTools open, before and after accepting the banner.
  3. Open your tag manager and list every tag with its trigger, so you know what fires on interactions.
  4. If you serve different content by region, test with a VPN or ask a colleague in another country.
  5. Merge everything into one inventory with columns for name, provider, purpose, category, duration and where it loads.

The full process is described in how to audit the cookies on your website, and the inventory then feeds the table described in what to include in a cookie policy.

Next steps

  • Run a pre-consent scan and fix anything non-essential that loads before a choice.
  • Run or simulate a post-consent scan and update your cookie policy from it.
  • Classify every unknown item yourself instead of leaving it uncategorized.
  • Check logged-in, checkout and form pages manually.
  • Schedule regular scans with alerts, and rescan after every release that touches scripts.

Frequently asked questions

Are cookie scanners accurate?

They're accurate about what they observe, but they can't observe everything. Pages behind logins, tags that fire only after clicks or form submissions, and content shown only in some countries are common blind spots, so combine scans with a manual check.

Can a cookie scanner see HttpOnly cookies?

Scanners that control a real browser through its debugging interface can read all cookies the browser stores, including HttpOnly ones. Tools that only run JavaScript in the page see cookies through document.cookie, which hides HttpOnly cookies.

Why does my cookie scan show different results each time?

Sites change between scans, ad and marketing tags vary what they load, A/B tests show different versions, and some scripts load only on certain pages or after delays. Small differences are normal; new third-party hosts are the thing to investigate.

Is a free cookie scan enough for a compliance audit?

A free scan is a good starting point for an inventory. An audit also needs the logged-in and checkout pages, a check of what loads before and after consent, and a review of what each tool is used for, which a scanner can't tell you.

Check your own website in 30 seconds

Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.

Run a free cookie scan Start free

This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.