Yandex Metrica: GDPR, cookies and installation

Analytics
Consent-controlled integration
Yandex Metrica
11 cookies listed Privacy policy
service metrica
311.2k
requests / 30 days

64.95% consent


Yandex Metrica and GDPR: how to manage consent

Yandex Metrica is an audience measurement or analytics service. Depending on its configuration, its use may involve browser storage, tracking technologies or the transmission of data to a third-party provider.

When the configuration of Yandex Metrica requires consent, the service should only be activated after the visitor has made a choice. tarteaucitron can condition its loading on that decision.

Managing Yandex Metrica with tarteaucitron

When Yandex Metrica is integrated through tarteaucitron, its activation is managed according to the visitor's consent choice. The service can therefore be loaded only when the corresponding permission has been granted and the visitor can later change this choice through the consent interface.

Cookies and storage used by Yandex Metrica

The current tarteaucitron integration declares 11 cookies associated with Yandex Metrica:

  • _ym_metrika_enabled
  • _ym_isad
  • _ym_uid
  • _ym_d
  • yabs-sid
  • _ym_debug
  • _ym_mp2_substs
  • _ym_hostIndex
  • _ym_mp2_track
  • yandexuid
  • usst

This list corresponds to the cookies currently declared in the tarteaucitron service definition. The service provider may change its technical implementation over time.

Configuring Yandex Metrica

Add the following code to your website after initializing tarteaucitron. Replace the example values with those provided by Yandex Metrica.

<script>
tarteaucitron.user.yandexmetrica = 'id';
(tarteaucitron.job = tarteaucitron.job || []).push('metrica');
</script>

Code to remove

Default HTML code to remove from your website:

<script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(id, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/id" style="position:absolute; left:-9999px;" alt="" /></div></noscript>

For a complete guide, read the documentation to install tarteaucitron.js.

Privacy information

For detailed information about the processing of data by Yandex Metrica, cookies and applicable retention periods, refer to the documentation or privacy policy published by the service provider:

Yandex Metrica privacy information

Frequently asked questions about Yandex Metrica

Does Yandex Metrica require consent?

It depends on how Yandex Metrica is configured and which data is processed. Audience measurement tools using non-exempt tracking technologies generally need to be conditioned on the visitor’s consent.

How does tarteaucitron block Yandex Metrica?

tarteaucitron controls the activation of Yandex Metrica according to the consent choice recorded for the visitor. The service code is triggered through tarteaucitron instead of being loaded independently from the consent manager.