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

编程入门 行业动态 更新时间:2024-10-25 02:22:47

有关<a href=https://www.elefans.com/category/jswz/34/1771406.html style=cookie中遇到的 utma utmz 的解释"/>

有关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. Statements may 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. using firecookie), you will see these change a lot .

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

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

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

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

 

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

更多推荐

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

本文发布于:2024-02-11 11:02:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1680642.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:cookie   utma   utmz

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!