-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Ignore your own visits #100
Comments
It's currently not possible to block IPs or your own visits, but that's definitely something we should add. IPs can change so they aren't the best way. I'm open for ideas! |
It's true that IPs are not reliable. It's a bit of a hack, but maybe we could rely on a localStorage key on the browser. We could set this variable from a browser's console, and no records for this browser would be saved. This is not functional when you work with a team (especially non-technical people). But it would be good enough for my use case on a personal blog. I guess it depends on who Ackee is made for. |
This is also something that could be done within the implementation for example in Ackee Tracker (for node) or when the script is added. |
localStorage only works for the current domain. We therefore can't use localStorage to ignore sites on other (sub-)domains. It could work with cookies for sub-domains, but I'm not sure. |
Maybe use an url param to set a trigger in Ackee to false, which would save the current ip address in a "blacklist" table in the DB, for X hours or until the param flag is set to true again. this way would work cross domains. |
In the meantime, I'm using my ad blocker to filter out my own requests. I added my API endpoint to the list of trackers to block. I had to disable the ad blocker on my Ackee dashboard for it to work. It's working well |
One option might be having a "global" variable on the window object that, if set, would disable tracking. I imagine something like:
This would be very simple to implement in The variable could be set on developer machines using either a custom browser addon, or something generic like TamperMonkey. |
We should distinguish between two things:
Ideas are welcome. I'm still now sure what's the best solution. |
hey, just another idea,
|
It's an option, but it would be easier to use existing AdBlockers, because we would need to write an extension for every browser.
This won't work for domains located on different domains. At least as far as I know. Correct me when I'm wrong… |
Cookies with |
HTTPS only would be fine. I wouldn't recommend to track user data without HTTPS anyway. We should give cookies a try! |
So, we go for cross-domain cookie ? |
Yes, we should give cookies a try. |
I think I have a working solution for this. |
Ackee v2.4 now ignores your own visits once you have logged into the dashboard. Make sure to enable the
|
Hello 👋
My analytics are biased by my own visits, making them not so reliable.
How could I block my own IP? Is there a way to set a an IP blacklist?
I found that #8 addresses this issue, but it's from 2014 and seems outdated. I can't find this setting in the current version.
Thanks
The text was updated successfully, but these errors were encountered: