Add a few aav2 metrics (#9540)

* Add a few aav2 metrics

* Eh

(cherry picked from commit fcc4018971)
This commit is contained in:
Eric Bailey
2025-12-11 13:14:43 -06:00
parent c2e792867a
commit 34264fbe02
2 changed files with 15 additions and 0 deletions
@@ -68,6 +68,13 @@ export function NoAccessScreen() {
useEffect(() => { useEffect(() => {
// just counting overall hits here // just counting overall hits here
logger.metric(`blockedGeoOverlay:shown`, {}) logger.metric(`blockedGeoOverlay:shown`, {})
logger.metric(`ageAssurance:noAccessScreen:shown`, {
accountCreatedAt: data?.accountCreatedAt || 'unknown',
isAARegion,
hasDeclaredAge,
canUpdateBirthday,
})
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []) }, [])
const onPressLogout = useCallback(() => { const onPressLogout = useCallback(() => {
@@ -90,6 +97,7 @@ export function NoAccessScreen() {
label={_(msg`Click here to update your birthdate`)} label={_(msg`Click here to update your birthdate`)}
style={[textStyles]} style={[textStyles]}
{...createStaticClick(() => { {...createStaticClick(() => {
logger.metric('ageAssurance:noAccessScreen:openBirthdateDialog', {})
birthdateControl.open() birthdateControl.open()
})}> })}>
clicking here clicking here
+7
View File
@@ -606,6 +606,13 @@ export type MetricEvents = {
'ageAssurance:redirectDialogFail': {} 'ageAssurance:redirectDialogFail': {}
'ageAssurance:appealDialogOpen': {} 'ageAssurance:appealDialogOpen': {}
'ageAssurance:appealDialogSubmit': {} 'ageAssurance:appealDialogSubmit': {}
'ageAssurance:noAccessScreen:shown': {
accountCreatedAt: string
isAARegion: boolean
hasDeclaredAge: boolean
canUpdateBirthday: boolean
}
'ageAssurance:noAccessScreen:openBirthdateDialog': {}
/* /*
* Specifically for the `BlockedGeoOverlay` * Specifically for the `BlockedGeoOverlay`