GA源代码里的小技巧之cookie篇 - MZhou's blog
文章推薦指數: 80 %
作者前段时间在做类似Google Analytics(以下简称GA)的第三方监控脚本。
... GA会在当前网站域名下面设置一个全局唯一的cookie _ga ,用于标志相同的用户。
MZhou'sblog
GA源代码里的小技巧之cookie篇
作者前段时间在做类似GoogleAnalytics(以下简称GA)的第三方监控脚本。
所以对GA的前端代码做过调研,对GA的压缩后代码做了一定程度上的人肉美化。
这里美化的是analytics.js的j41版本,本文提到的小技巧也是基于这个
延伸文章資訊
- 1Google Analytics cookies: _ga cookie, _utmb, _gat - Tutorial ...
Cookies and Client ID. Google analytics identify unique users across GA sessions through client I...
- 2what are the values in _ga cookie? - Stack Overflow
_ga=1.2.286403989.1366364567;. 1st Field. This is a versioning number. In case the cookie format ...
- 3Set Google Analytics _ga cookie | Fastly Developer Hub
Due to ITP 2.1 restrictions, cookies set in JavaScript may be limited to a 7-day TTL. Set your Go...
- 4Cookie: _ga | Cookiedatabase.org
Read about the cookie: _ga on Cookiedatabase.org and know more about the purpose, functionality a...
- 5Google Analytics Cookie Usage on Websites
js does not require setting cookies to transmit data to Google Analytics. gtag.js sets the follow...