Cookies & tracking
How to audit the cookies on your website
A cookie audit tells you every cookie, storage item and third-party request your site creates, why it's there, and whether it respects your visitors' choices. Combine an automated scan with manual checks in three consent states, then record everything in one inventory.
- Plain English
- Written for website owners
- Free to read
On this page
- When to run an audit
- Step 1: Define the scope
- Step 2: List what you know you installed
- Step 3: Run an automated scan
- Step 4: Check by hand in three consent states
- Step 5: Record everything in an inventory
- Step 6: Compare against your banner and policy
- Step 7: Fix, re-test and document
- Cookie audit checklist
- Frequently asked questions
To audit the cookies on your website, list every cookie, browser storage item and third-party request your pages create. Then work out who sets each one and why, check how each behaves before consent, after a rejection and after acceptance, and record the results in an inventory. Fix anything that runs without the consent it needs, and update your banner and cookie policy to match. An automated scan does most of the finding. Manual checks cover the parts a scanner can't reach.
This guide walks through each step and gives you the inventory columns to use.
When to run an audit
Cookies accumulate quietly. A marketing team adds a pixel for a campaign, a plugin update brings a new analytics feature, or an embedded video sets cookies you never chose. Run a full audit:
- before you install or reconfigure a cookie banner,
- after a redesign, CMS migration or new tag manager setup,
- when you add a new vendor, such as chat, reviews, A/B testing or ads,
- at least once a year, even if nothing obvious has changed,
- when you receive a complaint or a question from a regulator.
Step 1: Define the scope
Different parts of a site often load different code. Write down what's in scope before you start:
- Domains and subdomains:
www,shop,blog,help, landing page domains, and any separate checkout domain. - Page types: home page, article, product, category, search, contact form, checkout, account, and campaign landing pages.
- States and flows: logged out and logged in, cart with items, after submitting a form, and pages with embedded video or maps.
- Regions and languages: if your site or banner behaves differently by country, plan to test at least one opt-in region and one opt-out region.
Pick one or two representative URLs for each page type. You don't need to test every product page, but you do need every template.
Step 2: List what you know you installed
Before scanning, gather the intended setup. It'll help you explain what you find:
- Every container in your tag manager, with its tags, triggers and consent settings.
- Scripts hard-coded in theme files, headers and footers.
- CMS plugins, apps and extensions, especially analytics, SEO, forms, chat, reviews and social sharing.
- Embeds: video, maps, social posts, booking widgets and payment forms.
- Cookies set by your own server or framework, such as sessions, CSRF tokens, load balancers and your CDN's bot protection.
- Vendor contracts and accounts. Ask marketing and sales which platforms are connected to the site.
Anything in the scan results that's not on this list is a lead to follow up.
Step 3: Run an automated scan
A cookie scanner loads your pages in a real browser and records what happens. A good scan captures:
- cookies with name, domain, expiry and whether they're first-party or third-party,
- localStorage and sessionStorage keys,
- requests to third-party hosts, which reveal pixels and beacons that don't set cookies,
- a suggested category for each item, based on a database of known cookies and trackers.
PrivacyQuick's free scan works this way: a headless browser crawls your site and classifies what it finds. Other scanners exist, and the method is similar.
Scanners have limits. They usually don't log in, add items to a cart or submit forms. They may not trigger scripts that wait for scrolling or clicks. And they see only the region they scan from. Treat the scan as your starting list, not the final answer.
Step 4: Check by hand in three consent states
The most important question in an audit isn't "what cookies exist?" but "what happens before the visitor chooses?". Test each key page in three states, starting from a clean browser profile each time:
- No choice yet. Load the page and don't touch the banner. Only strictly necessary cookies should appear in opt-in regions, and no requests should go to analytics or ad hosts.
- After Reject all. Click reject, then browse to two or three more pages. Nothing new and non-essential should appear.
- After Accept all. Click accept and browse again. Now you'll see everything your site can set, which is the full list for your cookie policy.
Use your browser's developer tools to see cookies, storage and network requests. Our guide to checking cookies in Chrome DevTools shows exactly where to look. Then repeat the accepted state through the flows a scanner misses: log in, add to cart, start checkout, submit a form, and play an embedded video.
Clear site data between states. Cookies left over from an earlier test make a site look like it's setting cookies before consent when it isn't, and the reverse.
Step 5: Record everything in an inventory
Put the results in one spreadsheet. These columns cover what you'll need for your banner, your cookie policy and any questions from a regulator:
| Column | What to record | Example |
|---|---|---|
| Name | Cookie name or storage key (note patterns) | _ga_<ID> |
| Type | Cookie, localStorage, sessionStorage, IndexedDB or request/pixel | Cookie |
| Domain | Domain the cookie is set for, or host contacted | .example.com |
| Party | First- or third-party | First |
| Vendor | Company that provides the tool | |
| Set by | The tag, plugin or code responsible | GA4 tag in GTM |
| Purpose | Plain-English description | Keeps session state for Google Analytics |
| Category | Necessary, functional, analytics or marketing | Analytics |
| Duration | Session, or the expiry period | 2 years (capped by some browsers) |
| Found on | Page types or flows | All pages |
| Before consent? | Yes / No, per region tested | No |
| After reject? | Yes / No | No |
| Data goes to | Vendor and data location, if known | Google, US |
| Owner | Who in your team is responsible | Marketing |
| Action | Keep, block until consent, remove or investigate | Keep, block until consent |
For the Category column, use clear rules so everyone classifies the same way. Cookie categories explained gives examples, and what counts as strictly necessary helps with the borderline cases. Include storage, not just cookies: European rules cover anything stored on or read from the device, as explained in do localStorage and sessionStorage need consent?
Step 6: Compare against your banner and policy
With the inventory built, look for mismatches. These are the problems audits find most often:
- Tags firing before consent. Often a snippet hard-coded in the theme, outside the tag manager, or a plugin that loads its own analytics.
- Reject doesn't stop anything. The banner records the choice, but scripts aren't actually tied to it.
- Forgotten tags. Pixels from old campaigns, trial tools nobody uses, or duplicate analytics installs.
- Embeds that set cookies on load. Video players, maps and social posts are common culprits.
- Third-party fonts and libraries loaded from external servers, which send visitors' IP addresses to those servers.
- Category mismatch. The banner offers "Marketing" but no tags use it, or a tag uses a category the banner doesn't show.
- Policy out of date. The cookie policy lists cookies you removed years ago and misses ones you added.
Step 7: Fix, re-test and document
Work through the Action column:
- Remove anything nobody can justify. It's the simplest fix and makes the site faster.
- Block non-essential tags until the visitor allows their category. See how to block cookies until consent.
- Replace where it helps, for example by self-hosting fonts or using click-to-load for video embeds.
- Update your banner's categories and descriptions, and your cookie policy's cookie table.
- Re-test the three consent states on every template you changed.
- Save the dated inventory and a short summary of what you changed. It's useful evidence that you take your obligations seriously.
Keep it current
An audit is a snapshot. To stop the inventory drifting:
- Schedule automated scans. With PrivacyQuick, scans run weekly on Starter and daily on Pro, with email alerts when a new tracker appears. On Free you can run a manual scan each month.
- Add a step to your release process: any new tag or plugin gets a category before it goes live.
- Let scan results update your cookie policy's table automatically, where your tools support it.
- Repeat the manual three-state test at least once a year.
Cookie audit checklist
- Scope written down: domains, templates, flows, regions.
- Known tags and plugins listed from tag manager, theme and CMS.
- Automated scan run and exported.
- Manual tests done with no choice, after reject and after accept, from a clean profile.
- Login, cart, checkout, forms and embeds tested.
- Inventory completed with category, purpose, duration and vendor for every item.
- Pre-consent and post-reject problems fixed and re-tested.
- Banner categories and cookie policy updated. Our guide to what to include in a cookie policy lists the table columns visitors expect.
- Next audit date in the calendar, with scheduled scans running in between.
- Pasted content checked too: text from suppliers, guest authors or AI tools can carry invisible characters or hidden prompts aimed at AI summarizers.
Frequently asked questions
How often should I audit my website's cookies?
Do a full audit at least once a year and after any redesign, platform migration or new marketing campaign. Between audits, scheduled automated scans catch new trackers as they appear.
Can a cookie scanner find every cookie?
No. Scanners see what loads on the pages they visit without logging in, so cookies set during checkout, after login, on user interaction or only for some regions can be missed. Combine scans with manual checks of key flows.
What is the difference between a cookie audit and a cookie policy?
The audit is the internal investigation: finding and classifying everything your site stores and sends. The cookie policy is the public document that tells visitors the results in plain language.
Do I need to include localStorage in a cookie audit?
Yes. EU and UK rules apply to any information stored on or read from a visitor's device, so localStorage, sessionStorage, IndexedDB and tracking pixels belong in the audit alongside cookies.
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.
This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.