From 89b1211c9c831b610f9acea577217e010b9fa701 Mon Sep 17 00:00:00 2001 From: Zishan Mohd Date: Wed, 16 Oct 2024 12:44:38 +0530 Subject: [PATCH 1/2] Enable tracking on successfull signups --- src/onboarding/Register.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/onboarding/Register.jsx b/src/onboarding/Register.jsx index aaa2af59..682259cc 100644 --- a/src/onboarding/Register.jsx +++ b/src/onboarding/Register.jsx @@ -27,12 +27,6 @@ export default function Register() { const navigate = useNavigate(); const handleSignUp = async data => { - window._paq.push([ - 'trackEvent', - 'Sign Up', - 'Sign Up button clicked', - data.email - ]); if (!isClerkLoaded) return; try { @@ -75,6 +69,12 @@ export default function Register() { }); if (completeSignUp.status === 'complete') { await setActive({ session: completeSignUp.createdSessionId }); + window._paq.push([ + 'trackEvent', + 'Sign Up', + 'Sign Up button clicked', + getValues('email') + ]); navigate('/'); } else { console.error(JSON.stringify(completeSignUp, null, 2)); From 97e9065c885ae57ca2432a32c4a484e5d194b382 Mon Sep 17 00:00:00 2001 From: Zishan Mohd Date: Wed, 16 Oct 2024 12:47:04 +0530 Subject: [PATCH 2/2] update event description --- src/onboarding/Register.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onboarding/Register.jsx b/src/onboarding/Register.jsx index 682259cc..8caa8cbc 100644 --- a/src/onboarding/Register.jsx +++ b/src/onboarding/Register.jsx @@ -72,7 +72,7 @@ export default function Register() { window._paq.push([ 'trackEvent', 'Sign Up', - 'Sign Up button clicked', + 'New account created', getValues('email') ]); navigate('/');