Disable tracking for own visits


(Lacos) #1

Hi

Can I disable that Piwik tracks my own visits on my websites?

I visit my websites quite often to see if everything is ok but I don’t want that my visits get tracked.


(Karlsson) #2

Not at the moment.

see: http://forum.piwik.org/index.php?showtopic=313


(Inox) #3

[quote=Lacos @ May 11 2009, 01:32 PM]Hi

Can I disable that Piwik tracks my own visits on my websites?

I visit my websites quite often to see if everything is ok but I don’t want that my visits get tracked.[/quote]
Hi,
if you have a PHP site with login, you can include the piwik tracking code block in a condition like

<?php
if ($user != 'you!!!') {
?>
---Piwik code here!---
<?php
}
?>

So only your first visit (as ‘guest’ before login) will be tracked.
If you have a static IP address, you can change the code for excluding this. This should exclude your clicks with 100%!

<?php
if ($REMOTE_ADDR != 'xxx.xxx.xxx.xxx') {   //insert your IP address
?>
---Piwik code here!---
<?php
}
?>