Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Exclude local traffic or selected IPs #6

Open
jakezien opened this issue May 17, 2021 · 2 comments
Open

Exclude local traffic or selected IPs #6

jakezien opened this issue May 17, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jakezien
Copy link

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.

@fsenart fsenart added the enhancement New feature or request label May 17, 2021
@fsenart
Copy link
Contributor

fsenart commented May 17, 2021

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"?

@jakezien
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants