diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-03-09 06:46:12 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-03-09 06:46:12 +0300 |
commit | 9f611ae3f9a885eb1d04b2cabe1b3294375550b2 (patch) | |
tree | 41754fb15a780380ef685c61eadfa1e8c3a7b37d /Views/Shared | |
parent | 6b57030087d7690ec773bc588cd5f33670ca75cf (diff) |
Add Yandex counter
Diffstat (limited to 'Views/Shared')
-rw-r--r-- | Views/Shared/_Layout.cshtml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index 514aacd..4430aec 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -11,6 +11,26 @@ <script src="/lib/font-awesome/js/all.js"></script> <link href="/lib/fancyapps-ui/fancybox.css" rel="stylesheet" /> <link href="/css/styles.css" rel="stylesheet" /> + <!-- 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(92730586, "init", { + clickmap: true, + trackLinks: true, + accurateTrackBounce: true + }); + </script> + <noscript> + <div><img src="https://mc.yandex.ru/watch/92730586" style="position:absolute; left:-9999px;" alt="" /></div> + </noscript> + <!-- /Yandex.Metrika counter --> </head> <body id="page-top"> |