Privacy
Tracker starts without checking consentprivacy.tracker-without-consent-gate
An analytics, advertising or session-replay SDK is initialised with no consent check in front of it, so it runs for every visitor from the first page load. Under GDPR/ePrivacy and India's DPDP Act that tracking needs consent first. If a consent platform blocks the script some other way, mark this reviewed.
- In force Rule privacy.tracker-without-consent-gate
- 3 clauses
At a glance
| Severity | medium |
|---|---|
| Certainty | Needs review — a heuristic; confirm before changing code |
| Looks at | your source code |
| When it runs | Runs on every scan |
How to fix it
Start the tracker only after the visitor accepts (from your banner's accept callback), or start it in a cookieless/opted-out mode and opt in on consent.
Check your own app
Run npx scanlyfix scan in your project. Every finding gets an id; after fixing, npx scanlyfix verify <id> proves it is gone.
If it is a false positive in your project, silence that one line with // scanlyfix-ignore-next-line privacy.tracker-without-consent-gate -- <why>.
Your code stays
on your machine
Only findings are uploaded, and only to your own dashboard.
ScanlyFix
Security, privacy pages, SEO and AI visibility checked in one scan, with fixes your AI editor can apply.
Home