Add the Top.Mail.Ru counter to all four landings with a lead goal

The counter (id 3795059) was only in fitnes and only counted pageViews.
Carry the snippet over to hotel, medcenterstart and medcenterphysio — the
same counter serves all four, as the Metrika one already does — and fire
goal 'form' from submitLead(), the single place both the request form and
the callback dialog pass through.

The goal sits inside the existing `leadId !== 0` guard: that response is
the honeypot decoy, so a bot submission must not register a conversion,
in Top.Mail.Ru no more than in Metrika.

The noscript pixel goes in the body next to the Metrika one, per 9af36cc;
the fitnes one, added in the head, moves down to join it.

Note that fitnes/index.html also carries a Prettier pass over the whole
file — the reflowed Metrika block is formatting only, no behaviour change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-19 22:08:29 +06:00
co-authored by Claude Opus 5
parent da93bbc9f3
commit b32e7da506
8 changed files with 249 additions and 22 deletions
+77 -18
View File
@@ -2,7 +2,10 @@
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<title>EXO Recovery Zone для фитнес-клубов | Экзо Групп</title>
<meta
name="description"
@@ -16,13 +19,22 @@
<meta property="og:type" content="website" />
<meta property="og:locale" content="ru_RU" />
<meta property="og:site_name" content="ЭКЗО Групп" />
<meta property="og:title" content="EXO Recovery Zone — восстановление, которое удерживает клиента в клубе" />
<meta property="og:description" content="3 или 5 аппаратов, дизайн зоны, программы, обучение и." />
<meta
property="og:title"
content="EXO Recovery Zone — восстановление, которое удерживает клиента в клубе"
/>
<meta
property="og:description"
content="3 или 5 аппаратов, дизайн зоны, программы, обучение и."
/>
<meta property="og:url" content="%VITE_SITE_URL%" />
<meta property="og:image" content="%VITE_SITE_URL%/og-image.webp" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="EXO Recovery Zone для фитнес-клуба" />
<meta
property="og:image:alt"
content="EXO Recovery Zone для фитнес-клуба"
/>
<meta name="twitter:card" content="summary_large_image" />
<script type="application/ld+json">
@@ -43,37 +55,84 @@
m[i] =
m[i] ||
function () {
(m[i].a = m[i].a || []).push(arguments)
}
m[i].l = 1 * new Date()
(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
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=112352796', 'ym')
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=112352796",
"ym",
);
ym(112352796, 'init', {
ym(112352796, "init", {
ssr: true,
webvisor: true,
clickmap: true,
ecommerce: 'dataLayer',
ecommerce: "dataLayer",
referrer: document.referrer,
url: location.href,
accurateTrackBounce: true,
trackLinks: true,
})
});
</script>
<!-- /Yandex.Metrika counter -->
<!-- Top.Mail.Ru counter -->
<script type="text/javascript">
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({
id: "3795059",
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");
</script>
<!-- /Top.Mail.Ru counter -->
</head>
<body>
<noscript
><div><img src="https://mc.yandex.ru/watch/112352796" style="position: absolute; left: -9999px" alt="" /></div
><div>
<img
src="https://mc.yandex.ru/watch/112352796"
style="position: absolute; left: -9999px"
alt=""
/></div
></noscript>
<noscript
><div>
<img
src="https://top-fwz1.mail.ru/counter?id=3795059;js=na"
style="position: absolute; left: -9999px"
alt="Top.Mail.Ru"
/></div
></noscript>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>