Add events to signup for captcha results (#4712)
This commit is contained in:
parent
a9fe87b842
commit
0012c6d40f
3 changed files with 18 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue