Open source
astro-opt-in-analytics
Why it exists
Most "privacy-respecting" analytics setups still track by default and leave blocking up to the visitor. This package flips that: the tracker script simply doesn't exist on the page until a stored, explicit yes. Global Privacy Control counts as an automatic no. The cost is real - less data than default-on tracking - and that's exactly the point.
- Opt-in consent prompt
- Script gate blocks tracking until consent
- Zero requests before opt-in
Install
npm install @vdaluz/astro-opt-in-analytics