---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/support/forms/en/metrica.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/forms/en/llms.txt

# Enabling Yandex Metrica

To analyze statistics on form visits and user actions, you can embed a [Yandex Metrica](https://metrika.yandex.com) tag in the page of your form. For more information about tags, see [Yandex Metrica Help](https://yandex.ru/support/metrica/general/creating-counter.html#counter-html).

## Adding a tag {#add-counter}

To add a tag to the form page:

1. Select a Yandex Metrica tag to use for collecting statistics or [create a new one](https://yandex.com/support/metrica/general/creating-counter.html).

1. [Copy the form link](https://yandex.com.tr/support/forms/en/publish.md#link) and paste it in the tag settings as the website URL.

     {% note info "" %}

    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.

    {% endnote %}

1. Go to the **Settings** tab and select **Additional** in the left panel.

1. Enable the ![](_assets/enabled-switch-blue.png) **Connect Yandex Metrica** option and enter the tag number.

1. Click **Save**.

## Analyze user actions {#goals}

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:

1. Add a [Yandex Metrica](https://yandex.com.tr/support/forms/en/metrica.md#add-counter) tag to your form.

1. In Yandex Metrica, go to the tag's settings and [add a goal](https://yandex.com/support/metrica/general/goal-js-event.html).

1. 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](https://yandex.com/support/metrica/general/goals.html).

{% include [style](https://yandex.com.tr/support/forms/en/_assets/style-a13ddc9841bc.md) %}
