Skip to content

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

privacy.tracker-without-consent-gate
Severitymedium
CertaintyNeeds review — a heuristic; confirm before changing code
Looks atyour source code
When it runsRuns 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>.

All rules

Your code stays
on your machine

Only findings are uploaded, and only to your own dashboard.