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

Merged
yuriy.p merged 1 commits from topmail-counter into main 2026-09-20 17:47:41 +06:00
Owner

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

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>
yuriy.p added 1 commit 2026-09-19 22:20:25 +06:00
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>
yuriy.p merged commit 56ff5839b8 into main 2026-09-20 17:47:41 +06:00
yuriy.p deleted branch topmail-counter 2026-09-20 17:47:54 +06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panov/exodevices#1