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
Honor "Do Not Track" while still counting page views #68
Comments
if a user has set Do Not Track, don't set a cookie (even if the setting is enabled) and don't try to get the referrer, fixes ibericode#68.
Hey @alpipego, I'm afraid I can't merge this right away as it changes the default behavior of the plugin and in turn will effect statistics for people who've been running Koko Analytics for a while now. I also think it's debatable what What we can do is make this configurable through a filter hook by adding a property to the |
…otTrack setting. relates to #68
Hi Danny, thanks for your reply and the quick fix. I should've kept the PR as "Draft" to show you that it was more an idea than a mergeable solution. Your solution in 9d2e133 is not quite what I had in mind, as I'd like to honor "Do Not Track" (as in I don't want to connect two data points) but I still want to collect the pageview. If that's nothing you're interested in at the moment I'm fine with that. |
Hey @alpipego, The main thing preventing me is that I don't see the value at this moment. All data that is stored is already completely anonymised and can in no way lead back to the visitor or connect two datapoints together. One could argue that there is no individual tracking going on anyway and we can just ignore DNT altogether (hence, the new filter). Perhaps the following snippet is close to what you're intending to do?
That will configure the plugin to only set a cookie when doNotTrack is disabled. |
Thanks. The combination of the filter and the |
Is there an easier way to implement this in my theme's functions.php? I would like to track the pageview but not set a cookie. |
@askel45 add this to your
|
When a user has turned on "Do Not Track", no pageviews get tracked at all.
My understanding of DNT is, to not "track" users, try to identify them, and analyze their behavior and not necessarily not to gather statistics.
The solution I propose: Do not set a cookie or gather a referrer when a user has DNT turned on but still record the impression.
The text was updated successfully, but these errors were encountered: