how to add a counter code?
Namaste! I can not add a counter to my site xn--108-iddybtxbgw3cxi.xn--p1ai.
I try to add a counter code in footer.php, and with footer text vidget, but the counter did not appear.
Thank you!
Sergey.
The code of the counter
<!-- Yandex.Metrika informer -->
<a href="https://metrika.yandex.ru/stat/?id=37401770&from=informer"
target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/37401770/3_1_EFEFEFFF_EFEFEFFF_0_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" class="ym-advanced-informer" data-cid="37401770" data-lang="ru" />
<!-- /Yandex.Metrika informer -->
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter37401770 = new Ya.Metrika({
id:37401770,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div> </div></noscript>
<!-- /Yandex.Metrika counter -->