From 663b887a04074365558b98f55840df94fbacb244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D0=B0=D1=82=D0=B0?= =?UTF-8?q?=D0=B5=D0=B2?= Date: Mon, 3 Jun 2024 16:59:51 +0000 Subject: [PATCH] AW-97-yandex-metric-optimization --- environments/.env.develop | 3 +- environments/.env.production | 3 +- index.html | 41 +---------------- src/components/EmailEnterPage/index.tsx | 4 +- .../PaymentPage/results/SuccessPage/index.tsx | 5 ++- .../v1/pages/EmailEnterPage/index.tsx | 4 +- src/components/pages/Gender/index.tsx | 9 ++-- .../SuccessPaymentPage/index.tsx | 4 +- .../palmistry/step-email/step-email.tsx | 4 +- src/env.d.ts | 5 ++- src/init.tsx | 15 +++---- src/services/metric/metricService.ts | 45 +++++++++++++++++++ 12 files changed, 75 insertions(+), 67 deletions(-) create mode 100644 src/services/metric/metricService.ts diff --git a/environments/.env.develop b/environments/.env.develop index 2e275bb..8f4f3be 100644 --- a/environments/.env.develop +++ b/environments/.env.develop @@ -4,4 +4,5 @@ AURA_DAPI_PREFIX=v2 AURA_SITE_HOST=https://aura.wit.life AURA_PREFIX=api/v1 AURA_OPEN_AI_HOST=https://api.openai.com -AURA_OPEN_AI_PREFIX=v1 \ No newline at end of file +AURA_OPEN_AI_PREFIX=v1 +AURA_YANDEX_COUNTER_NUMBER=95799066 \ No newline at end of file diff --git a/environments/.env.production b/environments/.env.production index 178f647..6d73dbc 100644 --- a/environments/.env.production +++ b/environments/.env.production @@ -4,4 +4,5 @@ AURA_DAPI_PREFIX=v2 AURA_SITE_HOST=https://aura.wit.life AURA_PREFIX=api/v1 AURA_OPEN_AI_HOST=https://api.openai.com -AURA_OPEN_AI_PREFIX=v1 \ No newline at end of file +AURA_OPEN_AI_PREFIX=v1 +AURA_YANDEX_COUNTER_NUMBER=95799066 \ No newline at end of file diff --git a/index.html b/index.html index 05b8e9c..1da3385 100755 --- a/index.html +++ b/index.html @@ -42,30 +42,6 @@ } } - - @@ -91,16 +67,9 @@ window, document, "script", - "https://mc.yandex.ru/metrika/tag.js", + "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym" ); - - ym(95799066, "init", { - clickmap: true, - trackLinks: true, - accurateTrackBounce: true, - webvisor: true, - });