File tree Expand file tree Collapse file tree
src/libs/Navigation/AppNavigator/Navigators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ import Overlay from './Overlay';
3838
3939const Stack = createPlatformStackNavigator < OnboardingModalNavigatorParamList > ( ) ;
4040
41+ let signUpEventPublishedForAccountID : number | undefined ;
42+
4143function OnboardingModalNavigator ( ) {
4244 const styles = useThemeStyles ( ) ;
4345 const { onboardingIsMediumOrLargerScreenWidth} = useResponsiveLayout ( ) ;
@@ -68,10 +70,11 @@ function OnboardingModalNavigator() {
6870 // Publish a sign_up event when we start the onboarding flow. This should track basic sign ups
6971 // as well as Google and Apple SSO.
7072 useEffect ( ( ) => {
71- if ( ! accountID ) {
73+ if ( ! accountID || signUpEventPublishedForAccountID === accountID ) {
7274 return ;
7375 }
7476
77+ signUpEventPublishedForAccountID = accountID ;
7578 GoogleTagManager . publishEvent ( CONST . ANALYTICS . EVENT . SIGN_UP , accountID ) ;
7679 } , [ accountID ] ) ;
7780
You can’t perform that action at this time.
0 commit comments