Add a client event for "See more" link on suggested user interstitials (#9249)

This commit is contained in:
Alex Benzer
2025-10-22 03:53:42 -07:00
committed by GitHub
parent 199821d670
commit 6086bc5d5c
2 changed files with 19 additions and 1 deletions
+11 -1
View File
@@ -390,7 +390,12 @@ export function ProfileGrid({
{!isProfileHeaderContext && (
<InlineLinkText
label={_(msg`See more suggested profiles on the Explore page`)}
to="/search">
to="/search"
onPress={() => {
logger.metric('suggestedUser:seeMore', {
logContext: isFeedContext ? 'Explore' : 'Profile',
})
}}>
<Trans>See more</Trans>
</InlineLinkText>
)}
@@ -429,6 +434,11 @@ function SeeMoreSuggestedProfilesCard() {
to="/search"
color="primary"
label={_(msg`Browse more accounts on the Explore page`)}
onPress={() => {
logger.metric('suggestedUser:seeMore', {
logContext: 'Explore',
})
}}
style={[
a.flex_col,
a.align_center,
+8
View File
@@ -297,6 +297,14 @@ export type MetricEvents = {
recId?: number
position: number
}
'suggestedUser:seeMore': {
logContext:
| 'Explore'
| 'InterstitialDiscover'
| 'InterstitialProfile'
| 'Profile'
| 'Onboarding'
}
'profile:unfollow': {
logContext:
| 'RecommendedFollowsItem'