log even on signup

This commit is contained in:
Hailey
2024-06-10 00:46:40 -07:00
parent 6f188b0eb2
commit 9e782626e8
2 changed files with 13 additions and 1 deletions
+4
View File
@@ -56,6 +56,10 @@ export type LogEvents = {
'onboarding:finished:nextPressed': {}
'onboarding:finished:avatarResult': {
avatarResult: 'default' | 'created' | 'uploaded'
usedStarterPack: boolean
starterPackName?: string
starterPackCreator?: string
starterPackUri?: string
}
'home:feedDisplayed:sampled': {
feedUrl: string
+9 -1
View File
@@ -1,6 +1,6 @@
import React from 'react'
import {View} from 'react-native'
import {AppBskyGraphDefs, AtUri} from '@atproto/api'
import {AppBskyGraphDefs, AppBskyGraphStarterpack, AtUri} from '@atproto/api'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useQueryClient} from '@tanstack/react-query'
@@ -122,6 +122,14 @@ export function StepFinished() {
: profileStepResults.image
? 'uploaded'
: 'default',
usedStarterPack: Boolean(starterPack),
starterPackName: AppBskyGraphStarterpack.isRecord(
starterPack?.record,
)
? starterPack.record.name
: undefined,
starterPackCreator: starterPack?.creator.did,
starterPackUri: starterPack?.uri,
})
})(),
requestNotificationsPermission('AfterOnboarding'),