How do I block google analytics from my development sites? Is there a way (in code or configuration) that I could prevent google analytics from collecting visits on any of my development websites?
just add the following line in in hosts file in computers which you want to exclude analytics tracking:

127.0.0.1 www.google-analytics.com