diff --git a/web/app/components/app-initializer.tsx b/web/app/components/app-initializer.tsx index 4f343bf402..2def16f585 100644 --- a/web/app/components/app-initializer.tsx +++ b/web/app/components/app-initializer.tsx @@ -58,12 +58,12 @@ export const AppInitializer = ({ const utmInfo = utmInfoStr ? JSON.parse(utmInfoStr) : null // Track registration event with UTM params - trackEvent('user_registration_success', { + trackEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', { method: 'oauth', ...utmInfo, }) - sendGAEvent('user_registration_success', { + sendGAEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', { method: 'oauth', ...utmInfo, }) diff --git a/web/app/signup/set-password/page.tsx b/web/app/signup/set-password/page.tsx index f9b73f55d1..47ea2faf87 100644 --- a/web/app/signup/set-password/page.tsx +++ b/web/app/signup/set-password/page.tsx @@ -60,12 +60,12 @@ const ChangePasswordForm = () => { const utmInfoStr = Cookies.get('utm_info') const utmInfo = utmInfoStr ? JSON.parse(utmInfoStr) : null - trackEvent('user_registration_success', { + trackEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', { method: 'email', ...utmInfo, }) - sendGAEvent('user_registration_success', { + sendGAEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', { method: 'email', ...utmInfo, })