Enable Metrica
To analyze statistics on form visits and user actions, you can embed a Yandex Metrica
Add the tag
To add a tag to the form page:
-
Select a Yandex Metrica tag to use for collecting statistics or create a new one
. -
Copy the form link and paste it in the tag settings as the website URL.
Note
To make sure the tag can receive data from different forms or other websites, turn off Accept data only from the specified addresses in the tag settings. In this case, you can specify any URL in the Site address field.
-
Go to the Settings tab and select Additional in the left panel.
-
Enable the Connect Yandex Metrica option and enter the tag number.
-
Click Save.
Analyze user actions
You can use a Yandex Metrica tag to track the actions of users who opened the form page. For example, you can track the number of users who submitted a completed form and calculate the conversion rate (the percentage of all users who opened the form).
To track user actions:
-
Add a Yandex Metrica tag to your form.
-
In Yandex Metrica, go to the tag's settings and add a goal
. -
For the goal, select the JavaScript event condition type and specify the ID of the goal with the contains condition. Events with the following goal IDs are tracked on the form page:
-
The user filled in at least one field in the form:
ya-forms_start-change
. -
The user clicked Submit in the form:
ya-forms_submit
. -
The user clicked Next in a multi-page form:
ya-forms_next
. -
The user clicked Back in a multi-page form:
ya-forms_prev
.
-
For more information about goals, see Yandex Metrica Help