Metrica

HTML markup

Yandex.Metrica lets you use HTML markup to influence some types of collected data. This influence is mostly limited to disabling data transmission for certain HTML elements.

The JavaScript code of a Yandex.Metrica counter reacts to the presence of certain classes of HTML elements (the class attribute). The rules defined for a class are triggered for the element itself and all child elements.

ClassAction
ym-disable-clickmap

Disables click tracking.

Information about clicks on these elements is not collected and not displayed in the click map.

Single element
<a href="/forum/" class="ym-disable-clickmap">Forum</a>
Container element
<ul class="ym-disable-clickmap">
    <li><a href="/events/">Events</a></li>
    <li><a href="/specials/">Special offers</a></li>
    <li><a href="/contacts/">Contact us</a></li>
</ul>
Entire page
<body class="ym-disable-clickmap">
    ...
</body>

Indicates that the link is not external.

Clicks on these links are not shown in the External links report.

<a href="/top-secret/" class="ym-disable-tracklink">Private</a>
ym-disable-submit

Disables tracking form data submission events.

Information about submitted form data will not be shown in the WebVisor and form analysis tools.

ym-disable-keys

Disables tracking data entered in fields.

Information about filled in fields will not be shown in the WebVisor and form analysis tools.

Indicates that the link is external.

<a href="/support/forum/" class="ym-external-link">Forum</a>