A website may load analytics libraries, advertising pixels, embedded videos, chat widgets and third-party JavaScript without the development team having a complete inventory of those technologies.
This becomes a privacy and engineering problem when scripts access browser storage or transmit information before the visitor's consent has been handled correctly.
Cookie scanning helps developers discover these technologies.
However, an automated scan is not a complete audit. It observes what happens under particular browsing conditions. Technologies triggered by interactions, authentication, region-specific logic or server-side processing may require additional investigation.
This article explains how browser-based cookie scanning works and how to combine automated discovery with manual technical testing.
1. What does a cookie scanner actually inspect?
A cookie scanner can observe different types of browser activity, depending on its implementation.
Common targets include:
-
document.cookieactivity. - Cookies received through HTTP responses.
- Third-party JavaScript resources.
- Tracking pixels and network requests.
- Third-party domains.
- Local storage.
- Session storage.
- Embedded resources and iframes.
Not every scanner detects all these categories.
Also, the regulatory concept is broader than cookies. The ICO's current storage and access technologies guidance discusses pixels, web storage, fingerprinting, scripts and tags.
2. How automated cookie scanning works
A simplified browser-based scanning pipeline looks like this:
Website URL | v Page discovery / crawler | v Browser-based page loading | v Resource and storage observation | v Cookie and tracker extraction | v Domain and vendor identification | v Purpose/category review | v Scan report Step 1: Page discovery
The scanner receives a website URL and determines which pages to visit.
Depending on the product, it may crawl links, use a predefined page list or follow a configured scan scope.
A homepage-only scan does not provide the same coverage as a scan that includes product, checkout, contact and account pages.
Step 2: Browser execution
The scanner loads pages in a browser-like environment.
This is important because many technologies execute only after JavaScript runs.
A static HTML fetch may identify script references, but it may not observe all cookies or requests generated by JavaScript.
Step 3: Resource observation
During page execution, the scanner can observe:
- Network requests.
- Loaded JavaScript resources.
- Cookie changes.
- Third-party domains.
- Browser storage changes, where supported.
- Tracking resources.
A useful scanner also records the conditions under which a resource appeared.
Step 4: Cookie and tracker identification
Detected technologies can be matched against known cookie databases or vendor signatures.
For example, a known analytics cookie may be associated with an analytics provider.
Unknown cookies should not automatically be assigned a purpose based only on their names. Developers should investigate the code and service responsible for setting them.
Step 5: Classification
Technologies are commonly organised into categories such as necessary, functional, analytics and marketing.
Classification requires context.
A technology is not necessarily essential simply because it is first-party. Similarly, a third-party domain does not automatically establish that consent is required in every situation.
Review the purpose and applicable rules.
3. What can automated scanning miss?
Automated scanners are useful, but their results are limited by crawl coverage and trigger conditions.
User interaction triggers
Consider a pixel that fires only after a visitor submits a form.
A scanner that loads the page but never submits the form may not observe the pixel.
Other examples include:
- Add-to-cart events.
- Video playback.
- Modal openings.
- Chat widget activation.
- Checkout initiation.
- Search submissions.
Authenticated routes
A public scanner may not access pages that require authentication.
Examples include:
- Customer dashboards.
- Subscription portals.
- Account settings.
- Logged-in ecommerce journeys.
These routes may use additional analytics or third-party services.
Geo-specific configurations
A website may load different services depending on location.
A scan performed in one region may not reproduce the behaviour of another region.
Server-side tracking
A browser scanner cannot fully inspect server-side processing.
For example, a website may send conversion information from its backend to a marketing platform without exposing the entire data flow in browser storage.
This requires separate server-side investigation.
Tag Manager triggers
A tag management system may fire scripts based on clicks, form submissions, custom events or consent conditions.
A scan that does not reproduce those events may miss the associated tracking activity.
4. Manual auditing with browser developer tools
Manual testing helps validate the automated report.
A developer can use browser developer tools to inspect the website under different consent conditions.
Inspect cookies
In Chrome DevTools:
- Open the website.
- Open Developer Tools.
- Select the Application panel.
- Review Cookies for the website and relevant domains.
- Inspect local storage and session storage.
Compare the results before and after the visitor makes a consent choice.
Inspect network requests
Use the Network panel.
Look for:
- Analytics endpoints.
- Advertising requests.
- Pixel requests.
- Third-party JavaScript.
- Embedded service domains.
- Requests that appear after interactions.
The Network panel helps establish when requests occur, but it does not independently establish the full legal purpose of each request.
Test consent states
A useful testing matrix:
| Test | Expected investigation |
|---|---|
| Fresh visit | What loads before interaction? |
| Reject optional cookies | Do restricted scripts remain blocked? |
| Accept analytics | Does analytics activate as configured? |
| Accept marketing | Do relevant advertising tags activate? |
| Withdraw consent | Are subsequent behaviours updated? |
| Submit a form | Are interaction-triggered trackers introduced? |
| Open an embedded video | Does the embed load additional resources? |
Run these tests in a clean browser session and record the results.
5. Manual vs automated scanning
| Area | Automated scan | Manual audit |
|---|---|---|
| Page discovery | Automated within crawl scope | Human-selected journeys |
| Cookie discovery | Fast and repeatable | Detailed but slower |
| Script analysis | Depends on scanner | Source and runtime investigation |
| Interaction triggers | Limited unless simulated | Can be tested directly |
| Authenticated pages | Needs configuration | Can be accessed by an authorised tester |
| Server-side tracking | Limited | Requires backend review |
| Continuous monitoring | Can be scheduled | Requires a review process |
| Purpose classification | May suggest categories | Requires human validation |
The strongest process uses automated scanning for discovery and manual auditing for verification.
6. Building a cookie inventory
A scan report should become a maintainable technology inventory.
A useful data model could include:
| Field | Description |
|---|---|
| Technology name | Cookie, script or tracker identifier |
| Domain | Domain associated with the technology |
| Vendor | Service provider |
| Purpose | Actual business or technical purpose |
| Category | Necessary, functional, analytics or marketing |
| Storage type | Cookie, local storage, session storage, etc. |
| Duration | Session or persistent, where applicable |
| Trigger | Page load, click, form submit or other event |
| Consent requirement | Reviewed decision based on applicable rules |
| Owner | Team responsible for the integration |
| Last reviewed | Date of the latest verification |
This inventory is more useful than a raw list of cookie names because it records the reason each technology exists and who owns it.
7. Integrating scan findings with a CMP
A cookie scanner discovers potential technologies. A consent management platform helps translate reviewed findings into consent configuration.
A practical workflow:
Scan website | v Review detected technologies | v Identify purpose and vendor | v Determine applicable consent treatment | v Configure consent categories | v Configure script blocking | v Test before and after consent | v Maintain the inventory ConsentX provides a free scanner for public pages that identifies observed cookies, trackers, pixels, scripts, vendors and potential pre-consent activity.
Try it at https://www.consentx.io/scan.
Its hosted CMP provides additional consent configuration and prior-script blocking capabilities. The standalone WordPress plugin is also available at https://wordpress.org/plugins/consentx/.
8. A practical audit checklist for developers
Before marking an audit complete, check:
- [ ] Homepage and important internal pages scanned.
- [ ] Product and checkout journeys tested.
- [ ] Forms and interactive widgets tested.
- [ ] Fresh browser session tested.
- [ ] Cookies inspected.
- [ ] Local and session storage inspected.
- [ ] Network requests reviewed.
- [ ] Third-party domains identified.
- [ ] Tag Manager triggers reviewed.
- [ ] Authenticated pages considered.
- [ ] Regional behaviour considered.
- [ ] Server-side tracking reviewed separately.
- [ ] Cookie purposes verified.
- [ ] Consent categories configured.
- [ ] Reject and withdrawal behaviour tested.
- [ ] Cookie and privacy notices updated.
Conclusion
Automated cookie scanning is a valuable discovery tool, but it cannot replace technical verification.
A crawler can identify technologies observed during its session. Manual testing can investigate the events, user journeys, code paths and backend systems that a standard scan may not reach.
For a dependable audit, combine browser-based scanning, DevTools inspection, source review, tag management analysis and regular inventory maintenance.
