如何从谷歌分析报告中排除Google代码中的自我流量? [英] How to exclude self-traffic in google code from google analytics reports?
问题描述
我目前正在使用Google Analytics获取我在code.google.com上托管的项目的报告。
我想排除自己生成的流量。我知道Google Analytics基本上提供了两种方式来过滤我的流量:按IP地址和Cookie。
ISP给我一个动态IP地址,所以我无法通过IP地址进行过滤。然后我应该使用cookies方法。
我读过我应该添加一些javascript代码到我的网站来设置cookie。
我的问题是:我怎样才能在wiki代码页中添加我需要的javascript代码?有没有另外一种方法可以实现我的目标?
谢谢。
http://ode2code.blogspot。 se / 2009/02 / how-to-exclude-self-traffic-from-google.html 包含的解决方案似乎有效: b
设置Cookie:
在您的域上创建一个新页面,其中包含以下代码:
body onLoad =javascript:__ utmSetVar('no_report')
访问此页面,您希望从
您的报告,在每台机器上设置cookie。
创建过滤器:
您需要创建一个排除过滤器,以便使用此cookie从访问者
中移除数据。
如何创建过滤器?
http://www.google.com/support/analytics/bin/answer.py?hl=zh_CN& ; answer = 55494
使用此wiki文章 http://code.google.com/p/support/wiki/WorkingWithGoogleGadgets 创建包含您可能包含的脚本的小工具你的网页。
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:
Setting the cookie:
Create a new page on your domain, containing the following code:
body onLoad="javascript:__utmSetVar('no_report')"
Visit this page from all computers that you would like to exclude from your reports, to set the cookie on each machine.
Creating the filter:
You'll need to create an Exclude filter to remove data from visitors with this cookie.
- Filter Type: Custom filter > Exclude
- Filter Field: User Defined
- Filter Pattern: no_report
- Case Sensitive: No
How to create a filter?
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55494
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.
这篇关于如何从谷歌分析报告中排除Google代码中的自我流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!