Add a few aav2 metrics (#9540)
* Add a few aav2 metrics
* Eh
(cherry picked from commit fcc4018971)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user