当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Is there any way to trace the user activity in a web application?

问题描述:

I have an image manipulation application for applying effects such as zoom, pan, rotate, etc. Is it possible to keep track of the order in which the user performs these manipulations? I have all these manipulations done in JavaScript.

So no communication with the web server. This can be easily done in a Windows app by maintaining log files, but is there any way to trace the user actions in a web application (keep a record)?

网友答案:

You can create a function to call after performing an action. This function can be something like:

function logFunction(loginfo){
  //perform ajax call to server and store in db or textfile or something
}
分享给朋友:
您可能感兴趣的文章:
随机阅读: