How do I start monitoring my online forms?
Generally, you don't need to do anything for MVMCloud Analytics to detect existing forms on your site and create an equivalent form in MVMCloud Analytics to do the tracking.
However, if your form is not detected automatically, you can configure it manually and you will see how in this guide.
Forms Tracking
MVMCloud Analytics detects and starts tracking your forms automatically if they have a name attribute defined or an attribute id of form like these:
<form name="cloud_login">...</form>
<form id="cloud_login">...</form>
If your form doesn't have any of these attributes, we recommend setting one of them. If you cannot define a name or id attribute, You can still track the form if there is only one form on your page. To track such a form, go to Administration >> Sites >> Forms and create a new form. There you can define one or multiple pages that you want to track on this newly created form.
Custom Field and Form Names
If your form or field names change randomly, you can also set a form name using the data-mvm-name
attribute:
<form data-mvm-name="cloud_login">...</form>
Similarly, you can define a human-readable name for your fields like this:
<input data-mvm-name="username" type="text">
Note that in MVMCloud Analytics's own Form Analysis you can give a human-readable name to any form or field. If your form has, for example, a field called "input_4", you can map that field name to a human-readable name like "Username" directly in the {{ no such element: mkdocs.config.defaults.MkDocsConfig object['moule_name'] }} user interface. You don't need to set the data-mvm-name.
Custom Form Elements
If you do not use a <form>
element to create your forms, you can specify a data-mvm-form attribute on any element to tell the
MVMCloud Analytics that this element contains a form. MVMCloud Analytics will discover this form and all fields automatically.
<div data-mvm-form data-mvm-name="cloud_login">
<input name="username" type="text">
</div>
Alternatively, you can add a form manually using the JavaScript tracker code _paq.push(['FormAnalytics::trackForm', formNode]);
.
Skipping Forms
If you don't want a form to be tracked, you can specify a data-mvm-ignore attribute on your form like below:
<form name="cloud_signup" data-mvm-ignore></form>
If set, it won't even send any tracking requests for this form to your MVMCloud Analytics. This is useful if you want to delete e.g. forms that are shown on each page, such as a survey or a newsletter signup form.