You are reviewing MouseStats documentation: Take a look to the product!
< back

Handling heavy ajax page updates in visitor playbacks

In most cases, MouseStats will handle all ajax requests without any problem. but in some cases, if you feel there is some problems with ajax requests and playbacks are not playing correctly, you need to trigger MouseStats API when your page has been changed.

How?

You can start a new recording when your page has been changed. Sometimes using Ajax, most of the page will be changed and you need to start a new recording session for playback. You need to fire this MouseStats JavaScript API on page change/or ajax complete:

   setTimeout("try { MouseStatsVisitorPlaybacks.NewRecording();}MouseStatsVisitorPlaybacks.NewRecording(); } catch (e) { }",200);}", 200); //Start New Recording