HTML markup

Yandex.Metrica lets you use HTML markup to control 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 tag 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.

Class Action

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/">Specials</a></li>
    <li><a href="/contacts/">Contacts</a></li>
Entire page
<body class="ym-disable-clickmap">

Indicates that the link is not external.

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

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

Disables tracking form data submission events.

Information about submitted form data will not be shown in the Session Replay and Form Analysis tools.


Disables tracking data entered in fields.

Information about filled in fields will not be shown in the Session Replay and Form Analysis tools.

Indicates that the link is external.
<a href="/forum/" class="ym-external-link">Forum</a>