close this to read article
Describes the things that you need to consider while setting up Forms in VWO.
- VWO tracks forms by either the id or name or CSS selector property inside the <form> tag.
- In VWO Form Analysis, users are tracked every time they land on the URL where the Form Analysis campaign is running.
- The form submissions are tracked based on the form submit an event. If the event is triggered on clicking Submit, then the submissions and ignored fields are successfully tracked.
- VWO’s form tracks multiple visits and multiple conversions of a visitor.
- VWO currently does not support the tracking of forms that dynamically change.To capture the Dynamic/AJAX form submissions, refer to https://help.vwo.com/hc/en-us/articles/360019734013-How-to-Track-Form-Submissions-on-Dynamic-Ajax-Forms
- To track a form field, VWO requires the form field to have a name or ID. In case your form field does not have either of these, VWO provides an attribute named nls_fa_el_name by which you can track that field. For example, you have a form that adds two numbers, and one of the fields doesn’t have an ID or Name, then using the nls_fa_el_name attribute to allow VWO to read interactions on this field.
Before
<form method="post">
After
Enter First Number:
<input type="number" /><br><br>
Enter Second Number:
<input type="number" name="number2" /><br><br>
<input type="submit" name="submit" value="Add">
</form>
<form method="post">
Enter First Number:
<input type="number" nls_fa_el_name=”number1”/><br><br>
Enter Second Number:
<input type="number" name="number2" /><br><br>
<input type="submit" name="submit" value="Add">
</form>