How to track forms
Manual Form Tracking
All the forms on the site should be tracked via the calling method MeiroEvents.track("formSubmit");
inside Meiro Events initializing script located in the site header. Please contact the Meiro team, if some unexpected site behaviour occurs.
There are some cases though when tracking form doesn’t work and manual forms are needed:
-
The element is not of
<form>
type and it’s sent via some other custom javascript logic. -
The form is sent via JQuery using button click event with
return false
command. -
The form is sent via JQuery using form submit event with
return false
command. -
Other unpredictable cases.
-
It is not needed to track all the forms globally.
To track forms manually get form element and pass it as an argument to the MeiroEvents.track
method as a second argument.