Add counter
This commit is contained in:
parent
6ce15cb355
commit
c022a4440f
@ -7,6 +7,7 @@
|
|||||||
<meta name=“description” content="{{ .Site.Params.Description }}"/>
|
<meta name=“description” content="{{ .Site.Params.Description }}"/>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
{{ partial "style.html" . }}
|
{{ partial "style.html" . }}
|
||||||
|
{{ partial "analytics.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
20
layouts/partials/analytics.html
Normal file
20
layouts/partials/analytics.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<!-- 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();
|
||||||
|
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");
|
||||||
|
|
||||||
|
ym(95658716, "init", {
|
||||||
|
clickmap: true,
|
||||||
|
trackLinks: true,
|
||||||
|
accurateTrackBounce: true
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<div><img src="https://mc.yandex.ru/watch/95658716" style="position:absolute; left:-9999px;" alt="" /></div>
|
||||||
|
</noscript>
|
||||||
|
<!-- /Yandex.Metrika counter -->
|
Reference in New Issue
Block a user