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

Use Form Analytics on Ajax loaded forms [depreciated]

There is not longer need to use this function. MouseStats is compatible with major JavaScript frameworks without addition settings.

Ajax forms are loaded on the fly after page load. You need to notify MouseStats Form Analytics system to detect this form. To do this process, you need to call an JavaScript API call after form load.

Method 1

You can start Form Analytics paused on page load, and resume it on form loaded.

  1. Start in Paused mode.
  2. Resume on form load.

Method 2

If Form Analytics is activated, just calling the following JavaScript API anywhere on the page(on ajax form load) will detect new fields and forms(If URL rules be match):

try {   
   MouseStatsFormAnalytics.Reset(); //ResetForm Analytics Recording
} catch (e) { }