Add Yandex Metrika (#286)

This commit is contained in:
Rinat Arsaev 2020-11-23 17:02:37 +03:00 committed by GitHub
parent e27f8869eb
commit c4e72c56d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,3 +14,17 @@ body
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-131422254-1');
// Yandex.Metrika counter
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(69481282, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
noscript
div
img(src='https://mc.yandex.ru/watch/69481282' style='position:absolute; left:-9999px;' alt='')
// /Yandex.Metrika counter