From e6018dedb43d9fafbf4762fc5fcecd8db8b1ff5b 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: Fri, 31 May 2024 10:06:18 +0000 Subject: [PATCH] metric-data-gender --- src/components/App/index.tsx | 8 ++++++-- src/components/pages/Gender/index.tsx | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 62371bd..3c0ca59 100755 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -296,7 +296,9 @@ function App(): JSX.Element { } - /> + > + } /> + } - /> + > + } /> + { const isShowTryApp = targetId === "i"; dispatch(actions.userConfig.addIsShowTryApp(isShowTryApp)); + if (targetId && typeof window.ym === "function" && targetId !== "i") { + window.ym(95799066, "userParams", { + genderFrom: targetId, + }); + } }, [dispatch, targetId]); const selectGender = (gender: Gender) => {