Privacy / Compliance

GDPR Cookie Scanner

Automated privacy compliance checks using Headless Chrome.

Role

Lead Developer

Timeline

3 Weeks

Stack

Node.js, Puppeteer, JSON

> launch_browser(headless=True)
> navigating to target_url... [OK]
> extracting_cookies()...
> [ALERT] Found: 'marketing_pixel_id' (Third-Party)
> [ALERT] Found: '_ga_tracker' (Analytics)
> detailed_report_generated.json

The Solution

I built a Node.js tool using `Puppeteer` to simulate a real user visit. The scanner launches a headless browser, navigates to the target URL, and intercepts all cookie 'set' events before any interaction occurs.

It then categorizes cookies based on a known database of tracking signatures (Google Analytics, Facebook Pixel, etc.) to flag potential compliance violations.

Simulation

Mimics a fresh visitor (Clean Storage/Cache) to detect initial load cookies.

Categorization

Automatically tags cookies as 'Strictly Necessary', 'Marketing', or 'Analytics'.

The Result

100%

Audit Accuracy

Safe

GDPR Compliant

This tool is essential for performing automated audit checks across client portfolios, ensuring no rogue pixels are firing without permission.

Next Project

Server Log Analyzer →