Skip to content

Commit

Permalink
fix: added trackeventwithcache in the password page
Browse files Browse the repository at this point in the history
  • Loading branch information
aswathy-deriv committed Aug 14, 2024
1 parent 8ebb276 commit f289a02
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { Button, PasswordInput, PasswordMeter, Text } from '@deriv/components';
import { getErrorMessages, redirectToSignUp } from '@deriv/shared';
import { observer, useStore } from '@deriv/stores';
import { Localize, localize } from '@deriv/translations';
import { Analytics } from '@deriv-com/analytics';

import { trackEventWithCache } from 'Utils/Analytics/analytics.ts';
import SignupSeparatorContainer from '../AccountSignupModal/signup-separator-container.jsx';

import 'Sass/app/modules/account-signup.scss';
Expand All @@ -30,11 +29,19 @@ const PasswordSelectionModal = observer(
const { is_mobile } = ui;

React.useEffect(() => {
Analytics.trackEvent('ce_virtual_signup_form', {
action: 'password_screen_opened',
form_name: is_mobile ? 'virtual_signup_web_mobile_default' : 'virtual_signup_web_desktop_default',
trackEventWithCache({
name: 'ce_virtual_signup_form',
properties: {
action: 'password_screen_opened',
form_name: is_mobile ? 'virtual_signup_web_mobile_default' : 'virtual_signup_web_desktop_default',
},
});

// Analytics.trackEvent('ce_virtual_signup_form', {
// action: 'password_screen_opened',
// form_name: is_mobile ? 'virtual_signup_web_mobile_default' : 'virtual_signup_web_desktop_default',
// });

//eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Expand Down

0 comments on commit f289a02

Please sign in to comment.