Google Analytics 检查“唯一访客” PHP
上述对“唯一访客”的检查是否只是简单的IP检查?
或者是更神秘和更强大的东西(这是我们正在谈论的谷歌)
Is the aformentioned's check for "Unique Visitors" just a simple IP check?
Or is something a bit more mysterious and powerful (this is Google we're on about)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它在(我猜)其他机制中使用cookie。您可以查看这篇文章 查看如何使用 Google Analytics 发送的 cookie。
It's using cookies among (I guess) other mechanisms. you can have a look at this article to see how the cookies sent by Google Analytics are used.
Google Analytics 计算唯一访问者时根本不考虑 IP 地址;想象一下如果您将笔记本电脑带到咖啡店并使用他们的 WiFi 会发生什么;您真的应该被视为不同的访客吗?或者如果您的 ISP 使用动态 IP 地址怎么办?
唯一访问者指标仅基于特定 cookie 的存在,即
__utma
cookie(设置为 2038 年到期)。来自 Google Analytics(分析)官方帮助中心 :
因此,“唯一访客”是一个本质上有缺陷的指标。它可能会因 cookie 删除、浏览器更改和多台机器而产生偏差。换句话说,因为我在 2 台笔记本电脑上使用 3 个浏览器,再加上我的手机,访问 Stackoverflow 的 Google Analytics 帐户,所以我有 7 个独立访客。这还没有考虑我清除cookies的频率。
IP address is not at all a consideration for Google Analytics calculations of unique visitors; think about what happens if you take your laptop to a coffee shop and use their WiFi; should you really be counted as a different visitor? Or what if your ISP uses dynamic IP addresses?
The unique visitor metric is based solely on the existence of a particular cookie, the
__utma
cookie (the one set to expire in 2038).From the Official Google Analytics Help Center:
Because of this, 'Unique Visitor' is an inherently flawed metric. It can be skewed by cookie deletion, browser changes, and multiple machines. In other words, because I use 3 browsers across 2 laptops, plus my phone, to Stackoverflow's Google Analytics account, I'm 7 unique visitors. And that's before factoring in how often I clear my cookies.