与关于名为 __utmz
的 Cookie 参数
Contents
GA Cookie
GA (Google Analytics)
1. 关键词
Google Analytics, Behavioral Targeting, Third party cookie, tracker / ad networks, flash cookie
2. 起因
在做测试时,观察 HTTP 请求的时候,发现一个不太熟悉的 cookie, 因此深入了解了一下。
3. 分析
经过一些搜索,初步推断是 Google Analytics 相关的一些 tracker 投放的 cookie。
GET /s?z=dbname&c=111 HTTP/1.1
Host: midas.example.com
Connection: close
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537 (KHTML, like Gecko) Chrome/68 Safari/537
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,ja;q=0.6
Cookie: RONGID=adb15b664492c759a0c2c82e9cf8a9d8; abclass=1537173347_78; PHPSESSID=ded14tj8jcc07680jrvvi3t0j5; cityDomain=beijing; gr_user_id=d1e68b53-1461-4fa0-a0eb-e3f6bac9a2e5; b_loan_limit=3.0; b_loan_term=12; b_car_price=20; city_id=1; m_credit_city=1; ADVC=225c85846e7379; ADVS=329c85846e7960; ASL=17791,0000q,b4a7134d; __jsluid=2ec89c045adb67eae91123aaa173291; KFl98_f167_saltkey=Uz1q22u4; KFl8_f167_lastvisit=1437172178; KFl8_f167_sid=vOSysT; KFl8_f167_lastact=1437175719%09avatar.php%09; __utmz=1431777613.utmcsr=(direct)|utmcmd=(direct)
举个例子
__utmz=1431777613.utmcsr=(direct)|utmcmd=(direct)
3.1. 部分代码片段
gaforflash (Google Analytics for flash) action script
http://gaforflash.googlecode.com/svn-history/r330/trunk/src/com/google/analytics/campaign/CampaignTracker.as
/**
* Format for tracker have the following fields (seperated by "|"):
*
<table> * <tr><td>utmcid - lookup table id</td></tr> *
<tr><td>utmcsr - campaign source</td></tr> *
<tr><td>utmgclid - google ad click id</td></tr> *
<tr><td>utmccn - campaign name</td></tr> *
<tr><td>utmcmd - campaign medium</td></tr> *
<tr><td>utmctr - keywords</td></tr> *
<tr><td>utmcct - ad content description</td></tr> *
</table> * should be in this order : utmcid=one|utmcsr=two|utmgclid=three|utmccn=four|utmcmd=five|utmctr=six|utmcct=seven
*
*/
其他补充信息
gaforflash
https://code.google.com/archive/p/gaforflash/
as3-universal-analytics
https://github.com/zwetan/as3-universal-analytics
每30分钟称为一个 session 。(对于 Google Analytics 而言)
3.2. 更多细节
参考 【GA Basics: The Structure of Cookie Values】
Google Analytics 主要有 5 种 cookie
UTMA – The Visitor Identifier (访客标识符)
UTMB – 30 Minute session identifier (30分钟会话标识符)
UTMC – On Exit session identifier (退出会话标识符)
UTMV – Custom Variable Cookie (自定义变量Cookie)
UTMZ – Visitor segmentation (访客细分)
utmcsr: This is the source of the visitor.
utmgclid: This is the Google ad click ID (thanks to Andy in the comments for bringing this omission to my attention)
utmccn: This is set by the campaign value of the url, or in the case of organic traffic it is (organic).
utmcmd: This is set by the medium defined by the URL.
utmctr: This is the keyword that brought the visitor here in search engine campaigns.
4. 用户视角: 如何禁用第三方 Cookie
chrome://settings/
Content settings > Cookies > Block third party cookie
5. 参考资料
What does the utmscr or utmcct values mean in reference to the Http cookie Server variable?
https://stackoverflow.com/questions/821321/what-does-the-utmscr-or-utmcct-values-mean-in-reference-to-the-http-cookie-server/821330#821330
How Advertisers Use Internet Cookies to Track You
https://www.wsj.com/video/how-advertisers-use-internet-cookies-to-track-you/92E525EB-9E4A-4399-817D-8C4E6EF68F93.html
Ad-trackers using third-party cookies
https://www.youtube.com/watch?v=35cWqC-71yw
What are Tracking Cookies?
https://www.youtube.com/watch?v=dHeZ9HpOvO4
查看你在 Google 的用户画像
https://adssettings.google.com/authenticated
数据分析中,你认为用户行为分析最重要的3个点是什么?
https://www.zhihu.com/question/19686197
这大概是全网最全的分析工具合集
https://zhuanlan.zhihu.com/p/28575121
将书籍迅速结构化
Margin Note
为什么marginnote没有Windows版?
https://www.zhihu.com/question/54960645
无讼 类似裁判文书网
https://www.itslaw.com/bj
司法考试的同学看过来,利用MarginNote五分钟阅读一篇法律案例
https://www.bilibili.com/video/av11802051
FB高级教程
https://space.bilibili.com/30974993/#/channel/detail?cid=43210
FACEBOOK广告投放入门教程
https://space.bilibili.com/30974993/#/channel/detail?cid=31832
Adwords入门教程
https://space.bilibili.com/30974993/#/channel/detail?cid=37968
SEO 细分在线课程网站
http://www.sheshou.cn/
GA Basics: The Structure of Cookie Values
https://www.cardinalpath.com/ga-basics-the-structure-of-cookie-values/
Google Analytics Academy
https://analytics.google.com/analytics/academy/course/6/unit/1/assessment/Assessment_1
泪雪博客 SEO
https://zhangzifan.com/
Leave a Reply