有关cookie中遇到的 utma utmz 的解释

由于第一次研究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. Statementsmay be wrong,and the style and structure may suck. Feel free to add further notes orsuggestions, rewrite sections or the whole into somethingunderstandable.

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 totrack when a visit starts and ends to some decent time resolution (cexpires quickly). If you look at cookie state changes (e.g. usingfirecookie), you will see these change a lot .

如上,英文的内容实在让人看得头痛,下面简要翻译下各个参数的内容:

__utmz:跟踪访问者是从哪里来的(搜索引擎,搜索关键字,链接地址);

__utma:跟踪每个用户的大量访问,第一次,最后一次;

__utmb和__utmc是跟踪每个用户的访问时间,,从开始到结束。

好了,现在了解了这些无关紧要的数据了,算法还未分析完毕,先把代码贴上,希望牛人如果看到的话给一下具体算法,到底如何计算出这几个参数的~

不要轻言放弃,否则对不起自己

有关cookie中遇到的 utma utmz 的解释

相关文章:

你感兴趣的文章:

标签云: