How Yandex.Metrica works with tags

Yandex.Metrica takes into account click-throughs from links with a tag. This can be a direct click on a link saved in the browser, a click on a link in an email, and so on.

Yandex.Metrica can process the following types of tags:

Tag label Note
UTM

Standard reports are created for tags. Data on the utm_referrer tag can be tracked in the By URL parameters and Sites reports. In order for a tag to appear in a report, it must be compiled correctly.

The Advertising systems, Social networks, and Messenger reports are also generated from UTM tags.

Openstat
from
yclid
The tag is added by Yandex.Direct. Example:
https://example.com/?yclid=123
Data about ad click-throughs is available in the “Yandex.Direct” reports group:

In these reports, statistics reflect only registered clicks that were not filtered out by the anti-fraud system.

ymclid The tag is set by Yandex.Market. For data about traffic from Yandex.Market, see the Advertising systems report. Example:
https://example.com/?ymclid=123
gclid Used for tracking Google Adwords ads. To determine sources with the gclid tag, use segmentation. Example:
https://example.com/?gclid=123

Yandex.Metrica gets tag information from the first pageview in a user's session. If there isn't a tag in the first pageview, it isn't detected for the entire session.

Tag parameters used for determining sources:
Ad systems Mailing lists Social networks and websites Search engines, messengers
utm_source, utm_medium, openstat_service, gclid from, utm_medium, openstat_service utm_source, utm_medium, utm_referrer utm_source, utm_medium
Note. Tag content is recognized correctly if the site uses UTF-8 encoding.

How to correctly create a tag

UTM

The first parameter is always added after a “?”, and all of the others after a “&”. Example:

Tags also should not contain superfluous characters (for example, %2B).

Required UTM tag parameters:
  • utm_source — Traffic source.
  • utm_medium — Traffic channel.
  • utm_campaign — Campaign name.
Optional parameters:
  • utm_content — Campaign content.
  • utm_term – Keyword.
If you don't use all the parameters in the tag, pay attention to their sequence:
https://example.com/?utm_source=link&utm_medium=cpc&utm_campaign=new

The utm_referrer tag is used to determine the source when the site has a JavaScript redirect installed and when navigation is from a site with HTTPS to one with HTTP (learn more about switching to HTTPS).

For the value, enter the address of the site that the click-through came from. Example:
https://example.com/?utm_referrer=example-source.com

where

  • example.com is your site.
  • example-source.com is the referral source.

If you specify the full address as the value with HTTP or HTTPS, then you need to encode this URL. For example, you want to specify the address https://example.com. The encoded address will look like this: https%3A%2F%2Fexample.com.

Openstat
Openstat tag parameters are transferred via “;”. Example:
https://example.com/?_openstat=direct;phone;discount;top
Openstat parameters with recommended values:
  • openstat_service — Traffic source.
  • openstat_campaign — Campaign ID.
  • openstat_ad — Ad ID.
  • openstat_source — Site ID.
from
Example:
https://example.com/?from=transition-source