VWO offers default attributes that help you track forms or elements that do not have a name or ID.
-
To track a form that does not have an id, or a name, you need to use the following attribute in your form.
<form nls_fa_name=“form-name”></form>
-
To track an element on your website that doesn't have an id or a name, you need to use the following attribute in your element:
<input nls_fa_el_name=“dummy-element”></input>
Once you have added the default attribute (nls_fa_name=“form-name”) in your form, you need to set up the form campaign. To track the form with newly added attribute:
- Navigate to Forms > Create.
-
Select Manual setup using Form Name or ID or CSS Selector option, and from the dropdown select CSS Selector and in the input field add the CSS selector you added in your form (For example - form[nls_fa_name="test-form"].
Note: Ensure that you pass the actual value of the nls_fa_name attribute that you have added in your form, instead of using test-form (as shown in the image) during the setup. - Click Create.
Need more help?
For further assistance or more information, contact VWO Support.