D
D
Dmitry Serikov2021-01-24 18:49:48
Google Analytics
Dmitry Serikov, 2021-01-24 18:49:48

Why don't counters of analytical systems work?

I found a code so that the counters do not interfere with the loading of the site, implemented it, but they stopped working .. Tell me what's wrong?

spoiler
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J09Y4EQWP7"></script>
<script type="text/javascript" >
var fired = false;
window.addEventListener('scroll', () => {
if (fired === false) {
fired = true;
setTimeout(() => {
(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();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(70948387, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-J09Y4EQWP7');
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "3204213", type: "pageView", start: (new Date()).getTime()});
(function (d, w, id) {
if (d.getElementById(id)) return;
var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
ts.src = "https://top-fwz1.mail.ru/js/code.js";
var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
})(document, window, "topmailru-code");
(function(d,s){d.getElementById("licnt1B28").src=
"https://counter.yadro.ru/hit?t26.6;r"+escape(d.referrer)+
((typeof(s)=="undefined")?"":";s"+s.width+"*"+s.height+"*"+
(s.colorDepth?s.colorDepth:s.pixelDepth))+";u"+escape(d.URL)+
";h"+escape(d.title.substring(0,150))+";"+Math.random()})
(document,screen);
(function (w, d, c) {
(w[c] = w[c] || []).push(function() {
var options = {
project: 7301345,
};
try {
w.top100Counter = new top100(options);
} 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:") +
"//st.top100.ru/top100/top100.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(window, document, "_top100q");
});
}, 1000)
}
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/70948387" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<noscript><div><img src="https://top-fwz1.mail.ru/counter?id=3204213;js=na" style="border:0;position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div></noscript>
<a href="https://www.liveinternet.ru/click"
target="_blank"><img id="licnt1B28" width="88" height="15" style="border:0"
title="LiveInternet: показано число посетителей за сегодня"
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7"
alt=""/></a>
<noscript>
<img src="//counter.rambler.ru/top100.cnt?pid=7301345" alt="Топ-100" />
</noscript>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question