From c8d18fc625b7a0b53a18e1c3e76757d2b3d674be Mon Sep 17 00:00:00 2001 From: Nastya Date: Mon, 13 May 2024 02:00:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B5=D1=82=D1=80=D0=B8=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B5=D1=80=D0=BA=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=B8=D0=BA=D1=81=D0=B5=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 46 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 6 deletions(-) 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 + }); + }; +