lifadev/archive_privera

Exclude local traffic or selected IPs

Opened this issue · 2 comments

It'd be great if there were a way to exclude my own visits, as filtering by IP on Google's end naturally isn't an option.

How do you see this feature?
Would it be acceptable to provide some exclusion list directly via the script tag like <script src="..." pe-exclude="1.2.3.4,5.6.7.8"?

That would be totally acceptable. Right now I'm hacking a solution where I:

  • Add a script to my site that looks for a URL query like ?skipPrivera=true and writes a corresponding variable to LocalStorage
  • Visit my site from each device/browser I use and manually add the query
  • In my fork of aap.js, check for the variable in LocalStorage, and If I find it, don't send the POST.

This approach is inspired by GoatCounter, though they also do IP exclusion.