Cookie Scanner
Automatically detect and categorize cookies and scripts on your website using our headless browser scanner.
Overview
The Cookie Scanner crawls your website to discover all cookies, localStorage items, sessionStorage items, and external scripts. This information is essential for:
- Building an accurate cookie declaration for GDPR compliance
- Identifying which scripts need consent before loading
- Detecting new cookies when your site changes
- Categorizing cookies for your consent banner
The scanner performs a two-phase scan (pre-consent and post-consent) to detect cookies both before and after consent is given. This helps you identify cookies that are set without proper consent — a critical GDPR compliance issue.
Access the scanner from Cookie Management in your dashboard.
How It Works
The scanner uses a headless browser (Puppeteer) to visit your website just like a real user would, performing a two-phase scan to capture cookies before and after consent.
- Starts at your homepage – Loads your main URL and waits for the page to fully render
- Pre-consent scan – Records all cookies, localStorage, and sessionStorage items before any consent is given
- Finds consent banner – Automatically locates your cookie consent dialog using common selectors
- Clicks accept – Accepts cookies by clicking the banner's accept button
- Post-consent scan – Records new cookies that appear after consent is accepted
- Discovers internal pages – Finds links and scans up to 10 pages on your domain
- Auto-categorizes – Matches detected items against our database of known cookies and scripts
Running a Scan
- Go to Cookie Management in your dashboard
- Select the domain you want to scan from the dropdown
- Click "Scan Now"
- Wait for the scan to complete (typically 1-2 minutes)
Scan Frequency
How often scans run depends on your plan:
- Free – Every 2 weeks
- Starter – Weekly automatic scans
- Pro – Weekly automatic scans
- Business – Weekly automatic scans
Manual scans are rate-limited to 1 per hour.
Scan Progress
During a scan, you'll see a 6-step progress indicator showing the current phase:
- Starting browser – Launching headless Chromium
- Loading page – Navigating to your homepage
- Pre-consent scan – Recording cookies before consent
- Looking for banner – Finding your consent dialog
- Post-consent scan – Recording cookies after accepting
- Finalizing – Saving results to database
A typical scan takes about 2 minutes to complete.
Scan Results
After a scan completes, you'll see detailed results about your website's cookie behavior before and after consent.
Banner Detection
The scanner successfully located and interacted with your consent banner. You'll also see which button was clicked to accept cookies.
The scanner couldn't find a consent banner. This could mean your banner isn't installed, uses non-standard selectors, or appears conditionally.
Pre vs Post Consent
The scan results show cookie counts for each phase:
Cookies detected before any consent was given. Non-essential cookies here may indicate a GDPR compliance issue.
Cookies that appeared after accepting the consent banner. This is the expected behavior for analytics and marketing cookies.
Scripts Tab
The Scripts tab shows all external JavaScript files loaded by your website. These are third-party scripts from domains other than your own.
Script Details
- Script Domain – The third-party domain hosting the script
- Full URL – Complete path to the script file
- Category – What the script is used for
- Vendor – The company/service (Google, Meta, Hotjar, etc.)
- Blocked – Whether the script is blocked before consent
Protected Scripts
Scripts from cookient.app are marked asProtectedand cannot be blocked. These are essential for the consent banner to function correctly.
Auto-detected Vendors
Cookient automatically recognizes scripts from major services:
Categories
Cookies and scripts are organized into categories that determine when they can be loaded based on user consent.
Essential for basic website functionality. Always allowed, no consent required. Examples: session cookies, language preferences, shopping cart.
Remember user preferences for a personalized experience. Examples: theme settings, display preferences, recently viewed items.
Track website usage and visitor behavior for analytics purposes. Examples: Google Analytics, Hotjar, Microsoft Clarity.
Used for advertising and retargeting across websites. Examples: Facebook Pixel, Google Ads, LinkedIn Insight Tag.
Required for security and fraud prevention. Always allowed. Examples: CSRF tokens, bot detection, authentication state.
Not yet classified. Review and assign to the appropriate category.
Auto-categorization
Cookient automatically categorizes many common cookies and scripts using our built-in database.
How It Works
- Cookie names are matched against patterns in our database
- Script URLs are analyzed to identify known services
- Vendor information is added when recognized
- Descriptions are pulled from our cookie knowledge base
Pattern Matching
Our database includes both exact matches and wildcard patterns:
# Exact match _ga → Analytics (Google Analytics) # Wildcard pattern _gid* → Analytics (Google Analytics) _fbp → Marketing (Meta Pixel)
Script Blocking
Control which scripts load before and after user consent.
How Blocking Works
- Before consent: Blocked scripts are prevented from loading
- User gives consent: Scripts matching accepted categories are restored
- Consent withdrawn: Scripts are blocked again on next page load
Default Blocking Rules
- Analytics – Blocked by default
- Marketing – Blocked by default
- Personalization – Blocked by default
- Functional – Never blocked
- Security – Never blocked
Toggle Blocking
Use the toggle switch in the Scripts tab to enable or disable blocking for each script. The switch appears red when blocking is enabled.
Scan History
View past scans and their results at the bottom of the Cookie Management page. Click on any scan row to expand and see detailed information.
Scan Statuses
Expanded Details
Each completed scan shows:
- Number of cookies found
- Number of scripts found
- Pages scanned
- New cookies detected (compared to previous scan)
- Timestamp
- Pre-consent cookies – Count of cookies before consent
- Post-consent cookies – Count of cookies after accepting
- Banner status – Whether a consent banner was found
- Button clicked – Text of the accept button (if banner was found)