Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #118778
    sergey
    Participant

    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&#8221;
    target=”_blank” rel=”nofollow”><img src=”https://informer.yandex.ru/informer/37401770/3_1_EFEFEFFF_EFEFEFFF_0_pageviews&#8221;
    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&#8221;;

    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 –>

    #118789
    tikaram
    Participant

    @sergey: Namaste. I checked your site and it seems like the counter is working on your site. Its below copyright.

    Regards,
    Tikaram

    #118832
    sergey
    Participant

    Thank you, Tikaram, but I used wordpress plugin to make it, therefore I can not see the informer block in my site, so it works just as a counter only. But I need everybody can see the counter informer in the footer of my site. And I could not to make it with vidget or footer.php (the counter work, but I can not see it in the footer).

    #118878
    tikaram
    Participant

    @sergey: Can you please visit the link and check that the counter is displayed at the footer of your site. https://prnt.sc/ftr370. Is this what you wanted or something different ? let me know

    Regards,
    Tikaram

    #119195
    sergey
    Participant

    Thank you Tikaram!
    In Opera brouser I can not see it, but in chrome I can.
    Now It is OK, no problem 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘how to add a counter code?’ is closed to new replies.