GA 与关于名为 __utmz 的 Cookie 参数

wpadmin~September 18, 2018 /InfoSec/Software Engineering

与关于名为 __utmz 的 Cookie 参数

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  
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)



3.1. 部分代码片段

gaforflash (Google Analytics for flash) action script

 * 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  



每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


Content settings > Cookies > Block third party cookie

5. 参考资料

What does the utmscr or utmcct values mean in reference to the Http cookie Server variable?

How Advertisers Use Internet Cookies to Track You

Ad-trackers using third-party cookies

What are Tracking Cookies?

查看你在 Google 的用户画像



Margin Note

无讼 类似裁判文书网





SEO 细分在线课程网站

GA Basics: The Structure of Cookie Values

Google Analytics Academy

泪雪博客 SEO

Leave a Reply

Your email address will not be published.