Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to ignore own views #72

Closed
arp242 opened this issue Dec 4, 2019 · 1 comment
Closed

Add ability to ignore own views #72

arp242 opened this issue Dec 4, 2019 · 1 comment

Comments

@arp242
Copy link
Owner

arp242 commented Dec 4, 2019

Can be done in backend by adding field to ignore IP addresses.

Or maybe JS option by setting cookie/localStorage? Can be set by visiting example.com?goatcounter_ignore (tracker script can pick up on this).

Maybe both?

@arp242 arp242 added this to the Version 1.1 milestone Dec 4, 2019
arp242 added a commit that referenced this issue Jan 18, 2020
So people can ignore requests coming from themselves. Part of fix
for #72; also want to do a pure frontend fix as well.
arp242 added a commit that referenced this issue Jan 26, 2020
So people can ignore requests coming from themselves. Part of fix
for #72; also want to do a pure frontend fix as well.
arp242 added a commit that referenced this issue Jan 27, 2020
So people can ignore requests coming from themselves. Part of fix
for #72; also want to do a pure frontend fix as well.
arp242 added a commit that referenced this issue Jan 27, 2020
* Add "IgnoreIPs" setting

So people can ignore requests coming from themselves. Part of fix
for #72; also want to do a pure frontend fix as well.

* Document frontend-solution

* Use new zvalidate version

* go generate

* Return 202 status code, and add update for this

This makes it easier to see/verify that a request was actually ignored.
@arp242
Copy link
Owner Author

arp242 commented Jan 27, 2020

Implemented #128; there is now a setting to do this based on IP address.

You can also do it client-side with a few lines of JS (could always do that, not a new feature); I added an example for it in the "site code" tab.

@arp242 arp242 closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant