[转]由于第一次研究cookie,在分析校内的cookie的时候,遇到了一些__utma utmz的Name,参数的内容完全分析不懂,经多方求教,终于知道了原来那些代码竟然是Google的免费网站统计系统产生的信息(垃圾代码害得我浪费了整整一天),Down下来了它的生成文件:Urchin.js 几千行代码看的我脑袋发木,最后百度搜索寻求不到结果,求助于Google,才得到了如下的信息:
This article/section is a stub.
It is here because it was planned, created to drop some preliminary notes. Statements may be wrong, and the style and structure may suck. Feel free to add further notes or suggestions, rewrite sections or the whole into something understandable.
The cookies named:
?__utmv is used for user-custom variables in Analytics
__utma__utmz...and others are part of Google Analytics, specifically the Urchin tracking module. These cookies track usage on sites that use Google Analytics.
Some details:
?__utmz tracks where a visitor came from (search engine, search keyword, link)
?__utma tracks each user's amount of visits, first, last visit.
?__utmb and __utmc are used to track when a visit starts and ends to some decent time resolution (c expires quickly). If you look at cookie state changes (e.g. using firecookie), you will see these change a lot .
如上,英文的内容实在让人看得头痛,下面简要翻译下各个参数的内容:
__utmz:跟踪访问者是从哪里来的(搜索引擎,搜索关键字,链接地址);
__utma:跟踪每个用户的大量访问,第一次,最后一次;
__utmb和__utmc是跟踪每个用户的访问时间,从开始到结束。