diff --git a/public/index.html b/public/index.html index 331147be..3e128bab 100755 --- a/public/index.html +++ b/public/index.html @@ -50,15 +50,49 @@ }) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); - ym(96979625, "init", { - clickmap: true, - trackLinks: true, - accurateTrackBounce: true, - webvisor: true - }); + const domain = location.hostname + if (domain === "quiz.pena.digital") { + ym(96979576, "init", { + clickmap: true, + trackLinks: true, + accurateTrackBounce: true, + webvisor: true + }); + + // + var _tmr = window._tmr || (window._tmr = []); + _tmr.push({ id: "3513005", 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, "tmr-code"); + // + + }; + if (domain === "squiz.pena.digital") { + ym(96979625, "init", { + clickmap: true, + trackLinks: true, + accurateTrackBounce: true, + webvisor: true + }); + }; + if (domain === "penaquiz.online" || domain === "penaquiz.ru") { + ym(97241101, "init", { + clickmap: true, + trackLinks: true, + accurateTrackBounce: true, + webvisor: true + }); + }; +