I’m currently using Google Analytics to get reports for my project hosted on code.google.com.
I’d like to exclude the traffic generated by myself. I know that Google Analytics basically offers two way to filter my traffic: by IP address and by cookies.
The ISP gives me a dynamic IP address so I can’t filter by IP address. I should then use the cookies method.
I read I should add some javascript code to my site to set the cookie.
My question is: how can I add into the wiki pages of google code the javascript I need? Is there another way to achieve my goal?
Thanks.
http://ode2code.blogspot.se/2009/02/how-to-exclude-self-traffic-from-google.html contains a solution that seems valid:
Use this together with this wiki article http://code.google.com/p/support/wiki/WorkingWithGoogleGadgets to create a gadget containing the script that you may include on your page.