Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can you exclude your own public IP? And if there is a way to do that, can you do that via the reports, or just as an ongoing setting (i.e. will only affect future reports).

share|improve this question
You want to know how much time SO-employees spend on SO? ;-) – Ivo Flipse Nov 2 '10 at 12:43
up vote 10 down vote accepted

Google has an article about How do I exclude my internal traffic from reports?.

share|improve this answer
Basically it tells you how to set up filters – John Conde Nov 1 '10 at 23:46

It helps to track the IP as a user-defined variable from the start - this requires a server-side tweak to insert the visitor's IP address with the Google Analytics tracking code - example w/PHP:

pageTracker._setVar('<?php echo $_SERVER['REMOTE_ADDR']; ?>');

... you can then filter on the user-defined variable as needed (it's nice to be able to synch analytics activity with activity stored in server logs, too)

share|improve this answer
+1 nice one, and analytics help says it does not track ip addresses :) – Evgeny Nov 2 '10 at 3:51

You can exclude your own IP. You can add it under filters (not sure if that link will work).

I don't know if it applies to past data, though. I also don't see anywhere for applying it to reports. If you see your numbers change immediately then I guess it does.

share|improve this answer
Agreed filters are the best way to do this. One thing to note is that it doesn't apply to past data and going forward it will completely filter that data out of your profile (including reports) so if for some reason you don't want to lose that data you can create a second profile to apply the filter too. – Joshak Nov 1 '10 at 22:48
To answer your question, it only excludes future traffic. Google will not give you access to filter by ip due to their privacy clause. Your best bet is to figure out what of the traffic was your own based on city, or network and assume it out. – Frank Nov 2 '10 at 4:04
Thank you, Frank, for the clarification. – John Conde Nov 2 '10 at 11:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.