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

Mark a form as submitted manually

In a fewrare cases, such as some complicated Ajax forms, detecting if a form is submitted or not would be impossible for the MouseStats tracking script. To achieve accurate reports, you need to send a Submit Ok request by using MouseStats JavaScript API on form submit.

How?

you need to call the following function in the appropriate part of your codes when a form as been submitted successfully:successfully. You have to call this code inside the page which contains the form. Therefore, calling it after navigation or in another page would not be possible.

   try { MouseStatsFormAnalytics.Submitted(); } catch(e) { };