如何使用外部javascript持续报告数据?
Clicktale(以及其他热图站点)等服务如何使用一个 JavaScript 文件将页面时间和鼠标移动等报告回其服务器?
我知道 Google Analytics 通过 gif 图像来实现,但只调用一次。如何不断地发回数据? (由于跨站点脚本限制,无法使用 ajax)。
干杯,蒂姆
How do services such as Clicktale (and other heatmapping sites) report time on page and mouse movements etc back to their servers using one javascript file?
I understand Google Analytics does it via a gif image but that is only called once. How do you constantly send data back? (Can't use ajax because of cross site scripting limitations).
Cheers, Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 NodeJS,它是一个事件驱动的 javascript I/O 库。用它做了一些令人印象深刻的事情。请参阅此示例,该示例跟踪鼠标移动并分发活动。
Take a look at NodeJS, it's an event driven javascript I/O library. Some impressive things have been done with it. See this example which tracks mouse movements and distributes the activity.