Add a client event for "See more" link on suggested user interstitials (#9249)
This commit is contained in:
@@ -390,7 +390,12 @@ export function ProfileGrid({
|
|||||||
{!isProfileHeaderContext && (
|
{!isProfileHeaderContext && (
|
||||||
<InlineLinkText
|
<InlineLinkText
|
||||||
label={_(msg`See more suggested profiles on the Explore page`)}
|
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>
|
<Trans>See more</Trans>
|
||||||
</InlineLinkText>
|
</InlineLinkText>
|
||||||
)}
|
)}
|
||||||
@@ -429,6 +434,11 @@ function SeeMoreSuggestedProfilesCard() {
|
|||||||
to="/search"
|
to="/search"
|
||||||
color="primary"
|
color="primary"
|
||||||
label={_(msg`Browse more accounts on the Explore page`)}
|
label={_(msg`Browse more accounts on the Explore page`)}
|
||||||
|
onPress={() => {
|
||||||
|
logger.metric('suggestedUser:seeMore', {
|
||||||
|
logContext: 'Explore',
|
||||||
|
})
|
||||||
|
}}
|
||||||
style={[
|
style={[
|
||||||
a.flex_col,
|
a.flex_col,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
|
|||||||
@@ -297,6 +297,14 @@ export type MetricEvents = {
|
|||||||
recId?: number
|
recId?: number
|
||||||
position: number
|
position: number
|
||||||
}
|
}
|
||||||
|
'suggestedUser:seeMore': {
|
||||||
|
logContext:
|
||||||
|
| 'Explore'
|
||||||
|
| 'InterstitialDiscover'
|
||||||
|
| 'InterstitialProfile'
|
||||||
|
| 'Profile'
|
||||||
|
| 'Onboarding'
|
||||||
|
}
|
||||||
'profile:unfollow': {
|
'profile:unfollow': {
|
||||||
logContext:
|
logContext:
|
||||||
| 'RecommendedFollowsItem'
|
| 'RecommendedFollowsItem'
|
||||||
|
|||||||
Reference in New Issue
Block a user