Quick start

Step 1. Log in

You need a Yandex user account in order to work with Yandex.Metrica. If you don't have one, register.

If you are the owner of an advertising campaign in Yandex.Direct, or your online store is a Yandex.Market partner, we recommend that you log in with the username registered in these services. This allows you to quickly switch between services.

Step 2. Create a tag

Click Add tag. A page opens with tag settings. For more information, see the section How to create and install a tag.

Training video. Creating a code snippet.

Watch the video

Step 3. Install the tag on the site

Tip. To install the tag, we recommend contacting the employee who is responsible for website support.

In the Settings section, go to the Tag tab and click Copy. Then insert this code into the HTML code of all the site's pages. We recommend inserting it as close to the top of the page as possible — the accuracy and completeness of data calculation depends on this. For more information, see the section Installing a tag.

After installation, the tag will be available on the My tags page. Data starts being collected immediately. A few minutes after you have installed the code, the My tags page shows the verification status for whether the tag is correctly installed.

Training video. Installing a tag on a site

Watch the video

Questions and answers

Checking the code snippet and setting up goals
To check whether the code snippet was installed and set up correctly, use the _ym_debug=1 parameter. For more information, see the section How to create and install a tag.
Error when installing code snippet on a site

You’re probably using the Smarty template engine, which incorrectly processes the curly brackets contained within the code snippet.

In order for the JavaScript code to be correctly handled in this template engine, you must enclose the Yandex.Metrica code snippet in a special {literal}{/literal} element (see the Smarty documentation) or use the {ldelim}{rdelim} element to escape the curly brackets in the code snippet (see the Smarty documentation).

Getting statistics in a YAN tag

The YAN code snippet is installed automatically on site pages that contain YAN blocks. To get complete statistics, install the Yandex.Metrica code snippet on all the site's pages. You can get the code snippet on the Settings page (Tag).

Here you can enable displaying the click map, accurate bounce rate, and other Yandex.Metrica features. For more information, see Basic and additional tag settings.

Installing multiple tags on a site's pages

For details, see the section Installing multiple tags on a site.

Installing the same tag on multiple sites

Statistics will be collected for all sites that have the tag installed, even if they are not indicated in the Website address and Additional addresses fields (see the section Basic and additional tag settings). In some reports, such as the Popular report, URLs for these sites are shown in gray.

If you were unable to independently check the tag, follow the recommendations below.

This might happen for the following reasons:

  • The tag is installed incorrectly. For example, the CMS modified the code snippet. Reinstall the tag or contact the support service for your CMS.
  • Broken scripts are preventing the Yandex.Metrica tag from working on the site. You can check this in the browser console.

This means that information is being transmitted to Yandex.Metrica. However, the data might not be shown in reports for any of the following reasons:
  • Data is sent to a tag with a different number.
  • The Filters tab in the tag settings has overly strict filters defined. Remove unneeded filters.
  • The Filters tab in the tag settings has the Don't count my sessions filter enabled. This means that the tag doesn't register your own sessions. Try accessing the site with your browser in “incognito” mode.