Merge branch 'metric-data-gender' into 'develop'

metric-data-gender

See merge request witapp/aura-webapp!148
This commit is contained in:
Daniil Chemerkin 2024-05-31 10:06:18 +00:00
commit d7f49476fb
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) => {