Home / Docs / Cookie scanner

Cookie scanner

The ClearCrumb WordPress cookie scanner shows what your site really loads, including cookies set by JavaScript that a server-side crawl misses. It opens up to 50 of your pages in your own browser, notes every cookie and known service, and lists what still needs sorting. One click on Add and that service waits for consent.

What does the WordPress cookie scanner check?

A cookie banner can only hold back what it knows about. Themes, plugins and pasted tracking codes add scripts over time, and many of them set cookies only after JavaScript runs. The WordPress cookie scanner finds them so your banner and your cookie policy stay complete.

On each page, the scanner looks at:

  • Cookies: every cookie name the page sets in the browser, including ones written by JavaScript. Learn more about how cookies work on MDN.
  • Scripts, iframes and stylesheets: their addresses, plus inline script code.
  • Network requests: every file the page fetched while it loaded.

It matches what it finds against ClearCrumb’s library of known services, so a Google Analytics script or a Meta Pixel cookie is named, not just listed.

Because the scanner runs in your browser while you are logged in, it sees each page the way a visitor would, with your theme, plugins and tracking codes all running.

How do I run a scan?

  1. Go to ClearCrumb → Scanner and click Start scan.
  2. ClearCrumb opens your pages one by one in a hidden frame in your browser: the home page, shop pages if you have WooCommerce, and your latest posts and pages, up to 50.
  3. Keep the tab open until it finishes. Each page gets a few seconds to load its scripts.

A progress bar shows how many pages are checked. When the scan is done, the screen shows the date of the last scan and how many pages it read. Later, the button reads Start new scan.

During a scan, blocking is switched off for your admin session only, so the scanner sees everything the page could load. Visitors are not affected: for them, blocking stays on the whole time.

Trackers may set cookies in your own browser during a scan. That is expected and does not affect visitors.

The setup wizard runs the same scan when you first install ClearCrumb, so your first results may already be there.

WordPress cookie scanner flow: start scan, open each page, collect cookies and scripts, match services, review

Which pages does the WordPress cookie scanner open?

The WordPress cookie scanner builds its list of up to 50 addresses in this order:

  1. Your home page.
  2. The WooCommerce shop, cart, checkout and My account pages, when WooCommerce is active.
  3. Your most recently edited published content of every public post type, such as posts and pages. Password-protected content is skipped.

Only pages on your own site’s address are opened. The frame is sandboxed: scripts on the page run, but they cannot move the admin screen away or open new windows.

After the page loads, the scanner waits about two and a half seconds, because many trackers set their cookies a moment later. A page that takes longer than 15 seconds, refuses to be shown in a frame or redirects elsewhere is skipped and not counted in Pages scanned.

How do I review the results?

At the top, four numbers sum up the scan: Pages scanned, Cookies found, Services and Not yet sorted. Below them, the list that matters most:

  • Needs your review: everything ClearCrumb could not sort by itself. A service it recognises shows a New service chip and an Add button; click it to start blocking that service.
  • Cookies marked No category: usually from your theme or a plugin. Check where they come from before adding anything.

After you click Add, ClearCrumb confirms that the service was added to your services, and from then on it waits for consent like every other service on the list. The row leaves the review list straight away.

Each row also says where it came from: “First seen on” a page path, “Found in the page code” for a service spotted in a script, or “Already in your browser before the scan” for a cookie that was set earlier.

When the list says “Nothing to sort. Every cookie found belongs to a service on your list.”, your services list covers everything the WordPress cookie scanner saw. The Open services link takes you to Services & cookies, where you can check categories and switch services on or off.

WordPress cookie scanner review list: New service items with an Add button and cookies with No category

Can I scan from the command line?

Yes. With WP-CLI installed, run:

wp clearcrumb scan
wp clearcrumb scan --pages=10 --format=json

wp clearcrumb scan reads your pages from the server. It finds scripts and server-set cookies, but not cookies set by JavaScript, so the browser scanner is the more complete check.

--pages sets how many pages to read (50 by default), in the same order as the browser scan, and --format takes table, json or csv. At the end it tells you how many pages it read, how many items it found and how many are not on your services list yet. See the WP-CLI command reference for general WP-CLI use.

What should I do after a scan?

A scan tells you what your pages can load. The next step is to prove that none of it loads before consent:

  1. Add every recognised service from Needs your review.
  2. Run the cookie leak test on the same screen to check that nothing loads before a yes.
  3. Look at your cookie compliance check on the Dashboard for anything still open.

Run the WordPress cookie scanner again after you install a plugin, change your theme or paste a new tracking code. ClearCrumb Pro adds scheduled scans and leak alerts, so a weekly scan runs without you.

To understand how ClearCrumb holds services back until consent, read block scripts until consent. ClearCrumb helps you meet consent rules; it is not legal advice.

WordPress cookie scanner: questions

Does the WordPress cookie scanner slow down my site?

No. It runs in your own browser tab while you watch, one page at a time. Visitors never see it.

Why do I see cookies with no category?

They are not in ClearCrumb’s service library. They usually come from your theme or a plugin, so check which one sets them before you change anything.

Why does the command-line scan find fewer cookies?

It reads pages from the server, so it cannot see cookies that JavaScript sets in the browser. Use the Scanner screen for the full picture.

How many pages does a scan cover?

Up to 50: the home page, WooCommerce pages if present, then your most recently edited content.