Metrica

Form analysis

Form analysis is a tool designed for sites that actively use fill-in forms. Examples of forms are the search bar on a site, an order form, or a contact form. Form analysis helps to understand how exactly the site's users interact with forms.

The tool is available with two types of data display: Form conversion rate and Form fields.

Form conversion rate allows you to view:

  • The number of views of the page containing the form.
  • The number of interactions with the form.
  • The number of forms submitted.

Form fields contain the following information:

  • Time spent interacting with each field in the form.
  • Fields left empty in the form.
  • Fields that users leave the page from without submitting the form (i.e. fields that cause difficulties when filling them out).

If there are several forms on the analyzed page, you can switch between them using the list of forms.

Statistics on a group of pages

To view statistics for a group of pages, you can use extra characters in the URL box.

Table 1. Characters used for displaying statistics

CharacterDescriptionExample
*Matches any number of any characters

Display data for all pages with URLs that start with https://example.com/goods/, including the specified page: https://example.com/goods/*.

If you enter the address without extra characters, Yandex.Metrica provides a drop-down suggestion with the * character

~The condition is a regular expressionShow data for pages with URLs that match the regular expression. For example, ~http://example.com/.*

Let's look at an example. You need to get statistics on how users interact with the search bar. But you are interested in how they interact with the search bar on all the website's pages.

In order for this data to be shown in Form Analysis, enter https://example.com/* in the address box (after you enter it, the same address is shown in the drop-down suggestion). Data is loaded automatically and will be totaled for all the pages that have this search bar.

Showing data in an iframe

If your site is protected from being shown in an iframe (the server settings use the X-Frame-Options header), the collected data won't be available for viewing. In order to view data about site traffic, you need to add an exception to the server settings for the webvisor.com domain and its subdomains, as well as for your site domain. Use the regular expression

^https?:\/\/([^\/]+\.)?(yourdomain\.com|webvisor\.com)\/

If you use nginx, add the following exceptions to your configuration:

location / {
        set $frame_options '';
        if ($http_referer !~ '^https?:\/\/([^\/]+\.)?(yourdomain\.com|webvisor\.com)\/'){
            set $frame_options 'SAMEORIGIN';
        }
        add_header X-Frame-Options $frame_options;
        ...
    }

where yourdomain\.com is the site's domain name. Use your site's domain zone (it may differ from .com).

Enabling

To get data using Form Analysis, follow these steps:

  1. In counter editing mode, go to the Counter code page in Yandex.Metrica.
  2. Select the WebVisor, scroll map, form analysis option.
  3. Install the updated counter code on website pages that contain the form.
Note. 
  • The order form usually appears in online stores only when there are products in the basket. To view the report on users' interaction with this form, go to the store's site in your browser, put any item in the basket, and then go to the page with the form report in Yandex.Metrica.

  • Form analysis uses data received from WebVisor and has corresponding limitations on the amount of reports. WebVisor records up to 150,000 sessions per day for each site. Only part of them will include the process of filling out the form which will then be processed by Form Analysis. The report shows data on forms for 15 days, including the current day.

  • For Form Analysis to work correctly, the site must use UTF-8 encoding, and data must be sent to the server in a submit event.

There is usually enough data to receive a quality report on users' interaction with the forms. The system provides a representative sample by recording a spread of sessions throughout the day.

FAQ

Data is not collected for a form

The Form Analysis report only includes pages where forms are sent using the submit event. Pages where the form is sent using other events will not be in the report.

Why is there an error opening the page with the form?

The page with a form might open with an error for the following reasons:

  • Your site uses protection against rendering in an iframe (the site returns the header X-Frame-Options: SAMEORIGIN or X-Frame-Options: DENY).

    To correctly replay sessions, you must delete the protection code (contact your webmaster or other person responsible for site support), or configure the web server.

  • A firewall on the computer or network is blocking access to:

    • The domains metrika.yandex.ru and mc.yandex.ru.
    • The domain *.yandex.tld.
  • The site does not open without the www prefix.

What should I do so that Form Analysis does not count data for the search form?

To exclude an undesired form from analysis, assign it the CSS class -metrika-noform.

A page has several forms, but the report shows data for only one of them. How can I see data for the other forms?

Select the desired form to view in the upper-right menu on the page.

Why doesn't Form Analysis display data for all users who filled out a form on the site?

Form Analysis uses data received from WebVisor and has the same limitations on the amount of reports. WebVisor records up to 150,000 sessions per day for each site. Usually, only some of these sessions include filling out a form.

There is usually enough data to receive a quality report on users' interaction with the forms. The system provides a representative sample by recording a spread of sessions throughout the day.