Do you know what cookies your website sets? How many of them require user consent? What trackers are running in the background? In this article, I’ll show you how to conduct a complete cookies and trackers audit.
Why Is a Cookie Audit Important?
Legal Requirements
- GDPR (Europe) - requires consent before setting non-essential cookies
- ePrivacy - regulates cookies and electronic tracking
- CCPA (California) - right to opt-out of data “sale”
- LGPD (Brazil) - similar requirements to GDPR
Consequences of Violations
| Regulation | Maximum Penalty |
|---|---|
| GDPR | 4% of turnover or €20 million |
| ePrivacy | Depends on EU country |
| CCPA | $7,500 per violation |
Common Problems
- Analytics cookies without consent
- Advertising trackers before acceptance
- Missing cookie documentation
- Incomplete privacy policy
What Exactly to Check?
1. HTTP Cookies
Traditional cookies set by the Set-Cookie header:
- First-party - from the same domain
- Third-party - from external domains
- Session - deleted after closing the browser
- Persistent - with expiration date
2. Local Storage
Data stored in the browser without expiration:
localStorage.setItem('user_preferences', JSON.stringify({...}));
3. Session Storage
Data deleted after closing the tab:
sessionStorage.setItem('cart_items', JSON.stringify([...]));
4. IndexedDB
Browser database for larger amounts of data.
5. Tracking Pixels
Invisible 1x1 images sending data to servers:
- Facebook Pixel
- Google Analytics
- LinkedIn Insight Tag
- TikTok Pixel
UPER SEO Auditor - Tracker Audit
The UPER SEO Auditor extension includes a full cookies and trackers audit in the Trackers tab.
How to Run the Audit?
- Open the page in your browser
- Launch the UPER SEO Auditor panel
- Go to the Trackers tab
- Results appear automatically

What Will You See?
The extension shows:
- Number of cookies - broken down by category
- Local/Session Storage - all keys
- IndexedDB - detected databases
- Tracking pixels - Facebook, Google, etc.
Cookie Categories
The auditor automatically categorizes cookies:
Necessary
Cookies essential for the website to function:
- User session
- Shopping cart
- Language preferences
- CSRF token
Do not require consent - can be set before acceptance.
Functional
Cookies improving UX:
- Remembered form data
- Display preferences
- Recently viewed products
- Chat settings
Require consent - users should be able to decline.
Analytics
Cookies for traffic analysis:
- Google Analytics (
_ga,_gid) - Hotjar (
_hjid) - Plausible, Matomo
Require consent - the main reason for cookie banners.
Marketing
Cookies for ad targeting:
- Facebook Pixel (
_fbp,_fbc) - Google Ads (
_gcl_au) - LinkedIn (
li_sugr) - Remarketing
Require consent - often the most invasive.
Unknown
Cookies not recognized by the database. They may be:
- Custom developer cookies
- New third-party cookies
- Outdated cookies
Cookie Details
For each cookie, you’ll see:
| Field | Description |
|---|---|
| Name | Cookie name |
| Value | Value (may be truncated) |
| Domain | Domain (.example.com = all subdomains) |
| Path | Path scope |
| Expires | Expiration date or “Session” |
| Secure | HTTPS only |
| HttpOnly | Not accessible to JavaScript |
| SameSite | Strict, Lax, or None |
Security Flags
The extension checks flags:
- ✅ Secure - cookie only over HTTPS
- ✅ HttpOnly - XSS protection
- ✅ SameSite=Strict/Lax - CSRF protection
- ⚠️ SameSite=None - requires Secure
Tracking Pixels
The auditor detects popular tracking pixels:
| Pixel | Domain |
|---|---|
| Facebook Pixel | facebook.com/tr |
| Google Analytics | google-analytics.com/collect |
| Google Ads | googleads.g.doubleclick.net |
px.ads.linkedin.com | |
| TikTok | analytics.tiktok.com |
analytics.twitter.com | |
ct.pinterest.com |
Local Storage and Session Storage
The extension shows all storage keys:
Local Storage:
├── user_id: "abc123"
├── cart: "[{...}]"
├── theme: "dark"
└── _ga_session: "{...}"
Session Storage:
├── current_page: "3"
└── filter_state: "{...}"
Note: Local Storage data doesn’t expire. If it contains user identifiers, it also requires consent.
CMP Detection
The extension detects popular consent management platforms:
- Cookiebot
- OneTrust
- TrustArc
- Usercentrics
- Cookie Notice
- GDPR Cookie Consent
Before vs After Consent Audit
The most important test: what cookies are set BEFORE acceptance?
How to Conduct the Test?
- Open the page in incognito mode
- DO NOT accept the cookie banner
- Launch UPER SEO Auditor
- Check the Trackers tab
Should only see:
- Necessary cookies
- Technical session cookies
Should NOT see:
- Google Analytics
- Facebook Pixel
- Marketing cookies
After Acceptance
- Accept all cookies
- Refresh the panel
- Check for new cookies
Now analytics and marketing should appear.
Issues to Detect
❌ GA4 Before Consent
_ga, _gid set without acceptance
Solution: Configure Google Consent Mode v2.
❌ Facebook Pixel Before Consent
_fbp cookie set automatically
Solution: Conditional loading of FB script.
❌ Missing SameSite
Cookie "session_id" without SameSite attribute
Solution: Add SameSite=Lax or Strict.
❌ Third-party Cookies Without Secure
Cookie from external domain without Secure flag
Solution: Set Secure; SameSite=None.
Data Export
Tracker audit results are included in PDF export:
- List of all cookies
- Category breakdown
- Detected pixels
- Security flags
Complementary Tools
Cookie Editor (extension)
Allows manual editing and deletion of cookies.
Chrome DevTools > Application
The Application tab shows:
- Cookies
- Local Storage
- Session Storage
- IndexedDB
- Cache Storage
Webpagetest.org
Shows cookies set on first load.
Best Practices
1. Document All Cookies
Create a table in your privacy policy:
| Name | Purpose | Lifetime | Category |
|---|---|---|---|
| session_id | User session | Session | Necessary |
| _ga | Statistics | 2 years | Analytics |
2. Minimize Cookies
- Use Local Storage for data that doesn’t need to be sent to the server
- Shorten cookie lifetimes
- Remove unused cookies
3. Configure Consent Mode
For Google Analytics and Ads:
gtag('consent', 'default', {
'analytics_storage': 'denied',
'ad_storage': 'denied'
});
4. Test Regularly
- Check cookies after each deploy
- Test in incognito mode
- Verify after consent acceptance and rejection
Summary
Cookies and trackers audit in UPER SEO Auditor allows you to:
- See all cookies - broken down by category
- Detect trackers - pixels, storage, IndexedDB
- Identify issues - cookies before consent
- Check security flags - Secure, HttpOnly, SameSite
It’s an essential tool for anyone who wants to be GDPR and ePrivacy compliant.
Try UPER SEO Auditor and check what trackers are running on your website.
Sources
-
GDPR - Official Text https://gdpr.eu/
-
ePrivacy Directive https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32002L0058
-
Google Consent Mode https://developers.google.com/tag-platform/devguides/consent
-
Cookie Database - Cookiepedia https://cookiepedia.co.uk/



