Add to Google Reader, Bloglines, Netvibes

We all want our stats to be accurate, So we don’t want to count our own visit on our stats.

Fauzi shows us how to do it in Wordpress, just copy the php code below and add your Counter Code between it.

[code lang="php"]
< ?php global $user_ID; if ( !$user_ID ) { ?>
site counter code here
< ?php } ?>
[/code]Now, the counter code will disappear if your logged in.



3 Comments and Trackbacks (Add Your Own)

  1. Google Analytics plugin has an option to “disable counting blog owners hits”, I always check that. no point seeing myself on the hits :)

  2. I use Stattraq, So no question about Counter Code and stuuf like that… it does it by itself

  3. A great tip, I was troubled by some of the counters I use not being able to discard my own visits. I wonder if one can specify which registered users’ visits can be discarded or not…

Leave a Reply

Grab our RSS feed.

Updates straight to your inbox.