metric-data-gender

This commit is contained in:
Денис Катаев 2024-05-31 10:06:18 +00:00 committed by Daniil Chemerkin
parent d675effed3
commit e6018dedb4
2 changed files with 11 additions and 2 deletions

View File

@ -296,7 +296,9 @@ function App(): JSX.Element {
<Route
path={routes.client.epeGender()}
element={<GenderPage productKey={EProductKeys["moons.pdf.aura"]} />}
/>
>
<Route path=":targetId" element={<GenderPage />} />
</Route>
</Route>
<Route
element={
@ -423,7 +425,9 @@ function App(): JSX.Element {
<Route
path={routes.client.advisorChatGender()}
element={<GenderPage productKey={EProductKeys["chat.aura"]} />}
/>
>
<Route path=":targetId" element={<GenderPage />} />
</Route>
</Route>
<Route
element={

View File

@ -20,6 +20,11 @@ function GenderPage({ productKey }: IGenderPageProps): JSX.Element {
useEffect(() => {
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) => {