feat: add ya metrica
This commit is contained in:
@@ -17,6 +17,21 @@ const { title = '', description = '' } = Astro.props
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<title>{title}</title>
|
||||
<ClientRouter />
|
||||
<script is:inline type="text/javascript">
|
||||
// prettier-ignore
|
||||
;(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();
|
||||
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
|
||||
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')
|
||||
|
||||
// prettier-ignore
|
||||
ym(111077958, 'init', {webvisor:true, clickmap:true, referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true})
|
||||
</script>
|
||||
<!-- prettier-ignore -->
|
||||
<noscript><div><img src="https://mc.yandex.ru/watch/111077958" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user