Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: Statistics about a website's traffic

Statistics about a website's traffic 1 Jahr 4 Monate her #93006

  • vipgroup
  • vipgroups Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 26
  • Dank erhalten: 1
  • Karma: 1
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>
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Statistics about a website's traffic 1 Jahr 4 Monate her #93008

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6205
  • Dank erhalten: 787
  • Karma: 238
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: vipgroup

Statistics about a website's traffic 1 Jahr 4 Monate her #93010

  • vipgroup
  • vipgroups Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 26
  • Dank erhalten: 1
  • Karma: 1
DenisChenu, you are a genius, everything is working, thank you for your support!
Andrew
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.500 Sekunden
Donation Image