Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit 9274dea

Browse files
authored
Add Yandex.Metrika counter (#41)
1 parent 91ea25b commit 9274dea

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Templates/main.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,23 @@ <h1 class="h6 text-uppercase fw-bold mt-2">Good First Issue</h1>
6868
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
6969
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
7070
crossorigin="anonymous"></script>
71+
72+
<!-- Yandex.Metrika counter -->
73+
<script type="text/javascript" >
74+
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
75+
m[i].l=1*new Date();
76+
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
77+
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
78+
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
79+
80+
ym(95393401, "init", {
81+
clickmap:true,
82+
trackLinks:true,
83+
accurateTrackBounce:true
84+
});
85+
</script>
86+
<noscript><div><img src="https://mc.yandex.ru/watch/95393401" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
87+
<!-- /Yandex.Metrika counter -->
88+
7189
</body>
7290
</html>

0 commit comments

Comments
 (0)