Keep Yandex Metrica in the code, dormant behind HM_YM_ID

- Restore analytics.js, the counter id and the consent banner. The banner
  renders and the "Cookie" reset button exists only when HM_YM_ID is non-zero;
  at 0 the node is removed and no request reaches mc.yandex.ru.
- Release state stays data-free (verified headless): id 0, banner absent,
  0 requests to Yandex, 0 external hosts. With an id set, the banner appears,
  and tag.js loads only after "Принять".
- check-release now fails on a non-zero counter instead of banning the code,
  so the gate protects the release state, not the implementation.
- privacy.html says the counter exists but is not activated; ads-readiness
  section 3 is the enable procedure (id + RKN notice + policy paragraph).
This commit is contained in:
FastD committed 2026-11-15 17:45:13 +03:00
1 parent 0ac596086a
commit a013db4c5b
9 files changed
+174 -19

No files matched your search

+3
View File
@@ -12,6 +12,9 @@
Больше на сервере ничего не нужно. PHP, базы данных, cron, сборка на сервере — нет.
Аналитика выключена: `window.HM_YM_ID = 0`, запросов к Метрике нет, баннер не показывается.
Включать только вместе с уведомлением РКН — `docs/ads-readiness.md` §3.
## Чего в docroot быть не должно
`content/` (исходники текстов), `content/projects/_raw/` (сырьё), `Work_files/` (планетный арт и