By Thilak September 24, 2006

Wordpress Quickie: Don’t count your own Visits

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.

Related Posts that you may like:

Discussion

Comments for “Wordpress Quickie: Don’t count your own Visits”

  • 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...
  • I use Stattraq, So no question about Counter Code and stuuf like that... it does it by itself
  • Google Analytics plugin has an option to "disable counting blog owners hits", I always check that. no point seeing myself on the hits :)
blog comments powered by Disqus

Welcome to TechBuzz

TechBuzz is a technology blog read by 3000+ readers every day. We regularly write about new trends in technology, useful computer application and new web services. If you are new here, please subscribe our feed or opt for email updates to get new articles to your inbox.

Free Daily Updates

You can get fresh daily articles delivered straight to your feed reader or email inbox. Please subscribe to our RSS feed or opt for our free newsletter

Recent Posts

Google’s Chrome Tablet Concept Revealed
February 3, 2010
By Thilak
Ixquick. Ixquick allows users to surf the web with complete privacy. It let’s users surf the world wide web safely without revealing any personally identifiable or private information to the websites being viewed.

Ixquick is a free service which provides complete anonymity to the user enabling the user to surf the internet anonymously and safely. They claim it to be world’s most private search engine.

Surf The Internet Anonymously With Ixquick!

Surf The Internet Anonymously With Ixquick!
January 28, 2010
By Meghan
Apple iPad Unveiled
January 28, 2010
By Meghan
Happy New Year!
January 1, 2010
By Meghan
WordPress Version 2.9 Is Out!
December 19, 2009
By Meghan