about summary refs log tree commit diff
path: root/src/screens/Signup/StepCaptcha/index.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-07-01 15:11:04 -0700
committerGitHub <noreply@github.com>2024-07-01 15:11:04 -0700
commit0012c6d40f63ad6ee1dd1fe13d5b56b4e9006425 (patch)
tree4907d7fa0d1d912e499f7469b4b6f509e2cfa7f0 /src/screens/Signup/StepCaptcha/index.tsx
parenta9fe87b842b9e7cfca6f5acbf73aff555ce6eeee (diff)
downloadvoidsky-0012c6d40f63ad6ee1dd1fe13d5b56b4e9006425.tar.zst
Add events to signup for captcha results (#4712)
Diffstat (limited to 'src/screens/Signup/StepCaptcha/index.tsx')
-rw-r--r--src/screens/Signup/StepCaptcha/index.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screens/Signup/StepCaptcha/index.tsx b/src/screens/Signup/StepCaptcha/index.tsx
index d0fc4e934..b2a91a641 100644
--- a/src/screens/Signup/StepCaptcha/index.tsx
+++ b/src/screens/Signup/StepCaptcha/index.tsx
@@ -6,6 +6,7 @@ import {nanoid} from 'nanoid/non-secure'
 
 import {createFullHandle} from '#/lib/strings/handles'
 import {logger} from '#/logger'
+import {logEvent} from 'lib/statsig/statsig'
 import {ScreenTransition} from '#/screens/Login/ScreenTransition'
 import {useSignupContext, useSubmitSignup} from '#/screens/Signup/state'
 import {CaptchaWebView} from '#/screens/Signup/StepCaptcha/CaptchaWebView'
@@ -39,6 +40,7 @@ export function StepCaptcha() {
   const onSuccess = React.useCallback(
     (code: string) => {
       setCompleted(true)
+      logEvent('signup:captchaSuccess', {})
       submit(code)
     },
     [submit],
@@ -50,6 +52,7 @@ export function StepCaptcha() {
         type: 'setError',
         value: _(msg`Error receiving captcha response.`),
       })
+      logEvent('signup:captchaFailure', {})
       logger.error('Signup Flow Error', {
         registrationHandle: state.handle,
         error,