|
|
|
@@ -41,10 +41,18 @@
|
|
|
|
const acceptButton = document.getElementById('cookie-accept');
|
|
|
|
const acceptButton = document.getElementById('cookie-accept');
|
|
|
|
|
|
|
|
|
|
|
|
function loadCounters() {
|
|
|
|
function loadCounters() {
|
|
|
|
console.log("Загрузка счетчиков (Яндекс, Google)...");
|
|
|
|
// console.log("Загрузка счетчиков (Яндекс, Google)...");
|
|
|
|
// Код Яндекс.Метрики
|
|
|
|
// Код Яндекс.Метрики
|
|
|
|
// (function(m,e,t,r,i,k,a){...})(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
|
|
|
(function (m, e, t, r, i, k, a) {
|
|
|
|
// ym(XXXXXX, "init", {...});
|
|
|
|
m[i] = m[i] || function () { (m[i].a = m[i].a || []).push(arguments) };
|
|
|
|
|
|
|
|
m[i].l = 1 * new Date();
|
|
|
|
|
|
|
|
for (var j = 0; j < document.scripts.length; j++) { if (document.scripts[j].src === r) { return; } }
|
|
|
|
|
|
|
|
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?id=106310834', 'ym');
|
|
|
|
|
|
|
|
ym(106310834, 'init', {
|
|
|
|
|
|
|
|
ssr: true, webvisor: true, clickmap: true, ecommerce: "dataLayer",
|
|
|
|
|
|
|
|
accurateTrackBounce: true, trackLinks: true
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Код Google Analytics
|
|
|
|
// Код Google Analytics
|
|
|
|
// window.dataLayer = window.dataLayer || [];
|
|
|
|
// window.dataLayer = window.dataLayer || [];
|
|
|
|
@@ -57,16 +65,16 @@
|
|
|
|
_tmr.push({id: "3734603", type: "pageView", start: (new Date()).getTime()});
|
|
|
|
_tmr.push({id: "3734603", type: "pageView", start: (new Date()).getTime()});
|
|
|
|
(function (d, w, id) {
|
|
|
|
(function (d, w, id) {
|
|
|
|
if (d.getElementById(id)) return;
|
|
|
|
if (d.getElementById(id)) return;
|
|
|
|
var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
|
|
|
|
var ts = d.createElement("script");
|
|
|
|
ts.src = "https://top-fwz1.mail.ru/js/code.js";
|
|
|
|
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);};
|
|
|
|
var f = function () {
|
|
|
|
if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
|
|
|
|
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, "tmr-code");
|
|
|
|
})(document, window, "tmr-code");
|
|
|
|
// <noscript><div><img src="https://top-fwz1.mail.ru/counter?id=3734603;js=na" style="position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div></noscript>
|
|
|
|
// <noscript><div><img src="https://top-fwz1.mail.ru/counter?id=3734603;js=na" style="position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div></noscript>
|
|
|
|
// <!-- /Top.Mail.Ru counter -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// и т.д.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// alert("Отладка. Счетчики загружены (здесь должен быть реальный код счетчиков).");
|
|
|
|
// alert("Отладка. Счетчики загружены (здесь должен быть реальный код счетчиков).");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|