Google Analytics实时性如何运作? [英] How does Google Analytics Real Time work?

查看:137
本文介绍了Google Analytics实时性如何运作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道Google Analytics实时用户界面是如何工作的,这有什么技巧?他们是否使用来自客户端的长轮询,通过从服务器向客户端传递实时信息,使UI统计信息立即保持最新状态?
我只是在网络标签上打开Chrome开发工具,并且 https:/ /www.google.com/analytics/realtime/bind
是否有人知道这个诀窍?它的工作原理是完美无瑕的......

解决方案

下面是指如何收集实时数据,更新。 (看起来用户界面只是在客户端使用AJAX轮询)



没有特别的轮询或使用客户端技术。数据收集与以往一样。



相反,Google Analytics会假设在过去5分钟内触发了综合浏览量的用户仍然是活跃访问者。



从e-nor: $ b


这些访问者一直处于活动状态在过去的5分钟内,任何超过5分钟没有活动的人将被丢弃。



I'm wondering how Google Analytics Real Time user interface works, what's the technique ? Do they use long-polling from the client to keep the UI statistics instantly up to date by delivering realtime information from the server to the client? I just open Chrome dev tool on network tab and there is a infinite request on https://www.google.com/analytics/realtime/bind Does anybody know the trick? It works flawless...

解决方案

The below refers to how the real time data is collected, not how the UI updates. (It looks like the UI is just using AJAX polling on the client-side, though)

No special polling or client-side technique is used. Data collection is the same as it always has been.

Instead, Google Analytics will assume that someone who's triggered a pageview in the last 5 minutes is still an "active" visitor.

From e-nor:

These visitors have been active in the last 5 minutes, any one not active for over 5 minutes is dropped.

这篇关于Google Analytics实时性如何运作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆