From 6525c666002c0b0149cff0b799447e705c9879d4 Mon Sep 17 00:00:00 2001 From: Shahbaz Shabbir <32649010+shahbaz-arbisoft@users.noreply.github.com> Date: Mon, 20 Mar 2023 18:17:57 +0500 Subject: [PATCH] fix: fix missing userId in segment page event call on welcome page (#784) --- src/progressive-profiling/ProgressiveProfiling.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/progressive-profiling/ProgressiveProfiling.jsx b/src/progressive-profiling/ProgressiveProfiling.jsx index 0fbd799d..24fdf228 100644 --- a/src/progressive-profiling/ProgressiveProfiling.jsx +++ b/src/progressive-profiling/ProgressiveProfiling.jsx @@ -64,13 +64,13 @@ const ProgressiveProfiling = (props) => { if (registrationResponse) { setRegistrationResult(registrationResponse); - sendPageEvent('login_and_registration', 'welcome'); } }, [DASHBOARD_URL, registrationResponse]); useEffect(() => { if (registrationResponse && authenticatedUser?.userId) { identifyAuthenticatedUser(authenticatedUser.userId); + sendPageEvent('login_and_registration', 'welcome'); } }, [authenticatedUser, registrationResponse]);