使用JavaScript库的用户活动跟踪 [英] User Activity Tracking using javascript library

查看:59
本文介绍了使用JavaScript库的用户活动跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以跟踪用户在网页上的每项操作并创建日志?这个想法是通过AJAX将用户操作的日志传输到服务器并保存.在每个事件的每个元素上,我都可以编写代码/逻辑以在控制台中编写一些日志,但是我想知道是否有任何库/快捷方式可以记录客户端网页上的所有操作,包括事件和操作,例如复制,粘贴,点击,双击,选择等内容及其元素引用.

Is it possible to track every action of a user on a webpage and creating log of it? The idea is to transfer log of user actions to server via AJAX and saving it. On each event for each element I can write code/logic to write some log in console, but I was wondering if there is any library/shortcut available which can log all actions on webpage at client side including events and actions such as copy, paste, click, double click, selection etc. with their element reference.

推荐答案

您可以使用现成的解决方案:

You can use ready-made solutions:

  • http://www.google.com/analytics/
  • http://www.clicktale.com/
  • https://segment.io/
  • http://www.extrawatch.com/
  • http://mouseflow.com/
  • https://www.seevolution.com/
  • http://clicky.com/

您可以使用Google Analytics(分析)及其Event Tracker进行出色的工作:

You can do amazing stuff with Google Analytics and its Event Tracker:

  • https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
  • http://searchenginewatch.com/article/2287906/10-Google-Analytics-Custom-Events-That-Track-the-Untrackable

如果您正在寻找定制解决方案,则可以使用PHP和JavaScript尝试以下解决方案:

If you're looking for a custom-made solution, you can try the following one with PHP and JavaScript:

请记住,使用第三方解决方案在性能方面会更好.在数据库中实时编写鼠标移动的坐标,需要大量资源.

Keep in mind that using third-party solutions is better performance-wise. Writing the coordinates of the mouse movements in a database in real time, needs a lot of resources.

这篇关于使用JavaScript库的用户活动跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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