Do not track cookie


(willpeavy.net) #1

Is there an existing configuration to prevent Piwik from tracking hits from browsers on my dev machine?

If possible I don’t want to do IP blocking, because I hit the server from multiple IPs, and I want to track other people who may use the same IP to view my site. If there isn’t an existing config, I can write a cookie to prevent hits from my browsers from being logged. But if there is something already out there that does this, please let me know.

I went ahead and created a cloaking cookie for my site.

Try visiting: http://whpinvest.com/cookie.html

Set your cookie, then go to: http://whpinvest.com/home

You can then go back to cookie.html to toggle whether you want to be tracked.

Right now, this only works for my site. But if something like this would be useful to other people, let me know and I’ll take a look at the Piwik API and write a plugin.


(Karlsson) #2

See http://dev.piwik.org/trac/ticket/42[/url] and [url=http://dev.piwik.org/trac/ticket/43]http://dev.piwik.org/trac/ticket/43

[size=8pt]-----------
my site[/size]


(willpeavy.net) #3

Nice! Thanks. It looks like you posted this while I was editing my original posting above. I’ll go ahead and try #42.


(ptrau) #4

Yes…Yes…YES!!! I would very much like to have a plugin like this. I can’t use IP tracking because my ISP supplies random IP numbers each time I login. my email is: rugguy99@gmail.com

[quote=willpeavy.net @ Jul 7 2009, 11:28 PM]Is there an existing configuration to prevent Piwik from tracking hits from browsers on my dev machine?

If possible I don’t want to do IP blocking, because I hit the server from multiple IPs, and I want to track other people who may use the same IP to view my site. If there isn’t an existing config, I can write a cookie to prevent hits from my browsers from being logged. But if there is something already out there that does this, please let me know.

I went ahead and created a cloaking cookie for my site.

Try visiting: http://whpinvest.com/cookie.html

Set your cookie, then go to: http://whpinvest.com/home

You can then go back to cookie.html to toggle whether you want to be tracked.

Right now, this only works for my site. But if something like this would be useful to other people, let me know and I’ll take a look at the Piwik API and write a plugin.[/quote]


(ptrau) #5

Sorry… missed the #42 part…I will use that. Thanks