Fix Yandex Metrica
This commit is contained in:
parent
e5e0702a15
commit
c6b1a24854
|
|
@ -63,16 +63,16 @@ tarteaucitron.services.metrica = {
|
||||||
}
|
}
|
||||||
tarteaucitron.addScript('https://mc.yandex.ru/metrika/tag.js', '', function() {
|
tarteaucitron.addScript('https://mc.yandex.ru/metrika/tag.js', '', function() {
|
||||||
|
|
||||||
window.ym = window.ym || function () {
|
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||||
(window["ym"].a = window["ym"].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");
|
||||||
window["ym"].l = 1 * new Date();
|
|
||||||
|
|
||||||
window.ym(tarteaucitron.user.yandexmetrica, "init", {
|
ym(tarteaucitron.user.yandexmetrica, "init", {
|
||||||
clickmap:true,
|
clickmap:true,
|
||||||
trackLinks:true,
|
trackLinks:true,
|
||||||
accurateTrackBounce:true,
|
accurateTrackBounce:true,
|
||||||
webvisor: true
|
webvisor:true,
|
||||||
|
ecommerce:"dataLayer"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue