开发者

Ajax Logging on any site

开发者 https://www.devze.com 2022-12-16 05:04 出处:网络
All, Is there a way to log all clicks(like hyperlinks,buttons,.....) performed by the user on the client on any webpage and send it to server for logging purpose.If so please direct me to a sample co

All,

Is there a way to log all clicks(like hyperlinks,buttons,.....) performed by the user on the client on any webpage and send it to server for logging purpose.If so please direct me to a sample code for it.开发者_运维技巧

Thanks......


You can include the Google Analytics script in your file and reap its benefits.


Unless you are going to build a extension (or some greasemonkey script) for some browser you won't be able to do that for any web page the user visits.


Assuming that all clicks result in a server request, then why not just scan the access logs of the web server?

You can add a uniquely identifying id in each url in order to distinguish between users.

0

精彩评论

暂无评论...
验证码 换一张
取 消