Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Statistics about a website's traffic

Statistics about a website's traffic 1 year 7 months ago #93006

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Thank you received: 3
  • Karma: 2
The Yandex code looks like this -
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
var yaParams = {};
</script>
 
<script type="text/javascript">
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter20199256 = new Ya.Metrika({id:20199256,
                    webvisor:true,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true,
                    trackHash:true,params:window.yaParams||{ }});
        } 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 = (d.location.protocol == "https:" ? "https:" : "http:") + "//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><img src="//mc.yandex.ru/watch/20199256" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
This code should be copied between <body></body>
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 7 months ago #93008

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6362
  • Thank you received: 827
  • Karma: 245
Hello,

There are some line who need modification:
var yaParams = {};
->
var yaParams = {  };
new Ya.Metrika({id:20199256,
->
new Ya.Metrika({
id:20199256,
trackHash:true,params:window.yaParams||{ }});
->
trackHash:true,params:window.yaParams||{  }
});

Each time you have { or }, put a [space] or [line-feed] after (for {) or before (for }). Else Expression manager think it's a expression.

Denis
The administrator has disabled public write access.
The following user(s) said Thank You: vipgroup

Statistics about a website's traffic 1 year 7 months ago #93010

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Thank you received: 3
  • Karma: 2
DenisChenu, you are a genius, everything is working, thank you for your support!
Andrew
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.487 seconds
Donation Image