IP Cookie Block

IP cooking blocking for tracking

http://dev.piwik.org/trac/ticket/42

Hi all, and first of all, congratz for this awsome project.

Then, here is an important (I think) option to be implemented : to be able to exclude my IP from statistics. Indeed, I regularly visit my website, when I make some changes and so on, and I generate a trafic that is not representative. I would like to say piwik “don’t take care about any requests made by xx.xx.xxx.xxx”, you see ?

Is it possible ?

Thanks !

Already requested. See Ticket #43. http://dev.piwik.org/trac/ticket/43

Well, ok but… which plugin allow that ? It is not said on the page you linked, and I didn’t find the way to exclude IP from statistics, even with the last version.

Thanks !

@nandayo

This feature is in development, it will be included in a later version.

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

Oh ok, all right, I thought it was already developped, sorry. Can’t wait for it style_emoticons/<#EMO_DIR#>/wink.gif

thx.

[quote=nandayo @ Mar 5 2009, 06:55 PM]Oh ok, all right, I thought it was already developped, sorry. Can’t wait for it style_emoticons/<#EMO_DIR#>/wink.gif

thx.[/quote]
Temporary workaround, just wrap your tracker code with a bit of php like this:

<?php
if ($_SERVER['REMOTE_ADDR']!="xx.xx.xx.xx"){
?>
<!-- Piwik -->
[[ your piwik code ]]
<!-- End Piwik Tag -->
<?php
}
?>

Put your IP address in for ‘xx.xx.xx.xx’.

This is indeed a solution style_emoticons/<#EMO_DIR#>/happy.gif thanks

Which effectively means that do the same for any server side scripting we are using for our website. JSP, PHP, ASP etc… got it

That helped me… Thanks MikeAlx!

We have used HitsLink for a few years, and it allows us to blog/exclude our own IP (and our outsourcers’ IP addresses) from the statistics.

It would be quite helpful it this feature could be integrated into Piwik as well, making it more accurate for all of us.

Thanks! style_emoticons/<#EMO_DIR#>/smile.gif

Please can you add the funtionality of phpmyvisites of link for not count admin (we) in the stat. Thanks.

That’s already on the roadmap. There are even some contributed patches pending review.

Can we try it ? style_emoticons/<#EMO_DIR#>/smile.gif

yes with enjoye! style_emoticons/<#EMO_DIR#>/smile.gif

The trac & svn server is either down or inaccessible. It’s being looked into…

Where have it and how install it?

[quote=MikeAlx @ Mar 18 2009, 05:07 PM]Temporary workaround, just wrap your tracker code with a bit of php like this:

<?php
if ($_SERVER['REMOTE_ADDR']!="xx.xx.xx.xx"){
?>
<!-- Piwik -->
[[ your piwik code ]]
<!-- End Piwik Tag -->
<?php
}
?>

Put your IP address in for ‘xx.xx.xx.xx’.[/quote]
Is there a way to put multiple IP addresses that are not in the same range in this code?

Actually it’s pretty easy. Just put your addresses in an array and check with in_array ( see http://de2.php.net/in_array )