Basic and additional tag settings

Tag settings are available in the Settings section (on the Tag tab).

  1. Basic tag settings
  2. Additional tag settings
    1. FAQ about the informer

Basic tag settings

Tag name
The specified name is shown on the My tags page and in the upper menu for switching between tags. If it is not set, the Website address is used instead.
Website address

The main domain of the site. This information is required. Don't include the prefix of the schema or protocol (http://, https://).

In this field, you can enter the site's path in the URL structure. For example, example.com/category/. However, don't specify the URL for a specific file or page section (using the “#” symbol), or you will get an error. In addition, URL request parameters will be ignored (the part of the URL after the “?” symbol).

More information about the URL structure

http://<host>/<path>/<page>?<params>

  • <host> — Site domain.
  • <path> — The path, which can have a hierarchical structure. The structure is indicated using slashes (“/”).
  • <page> — The page name.
  • <params> — The parameters section, which is separated from the <path> section using the “?” symbol.
Additional addresses

You may need to enter additional addresses in the following cases:

  • The same site with the same installed tag responds from different addresses.
  • You want to get statistics for multiple sites using a single tag.

Click-throughs between all of the set addresses are interpreted as internal clicks.

In this field, you can enter the site's path in the URL structure. For example, example.com/category/. However, don't specify the URL for a specific file or page section (using the “#” symbol), or you will get an error. In addition, URL request parameters will be ignored (the part of the URL after the “?” symbol).

If reports show data on page views that don't belong to your site addresses and you don't need this data, select Receive data only from specified addresses.

This situation can arise in the following cases:

  • Someone initialized a tag with your number on their own site (probably by mistake).
  • Your site's pages were being viewed via a proxy service.
  • There is an almost exact copy of your pages on other domains. When copying content, the code snippet was also copied.

The Including sub-domains option lets you include subdomains of the main site and additional sites for filtration (subdomain.example.com, other.subdomain.example.com, ...).

Session Replay, scroll map, form analytics
This option also enables the click map and link map.

Learn more about Session Replay

Learn more about Form Analysis

Additional tag settings

Hash tracking in the address bar
This option is applied for AJAX sites and allows correct calculation of the number of pageviews on pages that are updated without being refreshed.
Asynchronous code
The code does not block pages and does not affect page loading speed.
For XML sites
The noscript element must not be used in XML documents.
Stop automatic page indexing
Pages containing the Yandex.Metrica tag with this option will not be indexed automatically. More information 
Alternative CDN
This option allows you to correctly count sessions from regions that have restricted access to Yandex.Metrica. It might take longer to load the code snippet when using this option. Even with the option enabled, the code snippet can send a preliminary request to mc.yandex.ru to save traffic.
Don't save full IP addresses of site users
Yandex.Metrica normally stores the entire depersonalized IP address of the user. If this option is enabled, the system registers an incomplete address. For example, 192.0.2.2 changes to 192.0.2.0. This means that location detection will not be as precise. More information
Dispatch e-commerce data to Metrica
This option allows you to connect E-commerce through the interface. If the option is on, by default the JavaScript array is assigned the name dataLayer. You can change it in the Name of data container field.
Visit timeout in minutes

This is how long a user is inactive on the site. When the specified number of minutes has passed, the session will be considered ended. The session timeout is specified as an integer between 30 and 360. By default, it is 30 minutes.

Informer

Allows you to select the tag display mode: invisible, or showing a ticker with your site's traffic statistics. Select the type of informer and configure its appearance:

  • Basic — Clicking on the informer takes you to Yandex.Metrica.
  • Advanced — Clicking on the informer shows a widget with site statistics for the week.

The informer itself shows the data collected by the tag for the current day (this period is not configurable by the user).

If you only install the informer code (<!-- Yandex.Metrica informer -->) on a site without the tag, statistics aren't collected for the site.

FAQ about the informer

The informer does not display data

Make sure the informer is enabled. In the Settings section (on the Tag tab), the Informer option must be selected. If this option is disabled, save changes after enabling it and update the code snippet on the website pages.

The label “Yandex.Metrica” is shown instead of the informer

Check whether the website where you are expecting to see the informer has been added as an additional domain in the tag settings. Without this setting, data is not displayed.