Add more data to trending metrics (#11565)
This commit is contained in:
@@ -26,6 +26,7 @@ import * as Prompt from '#/components/Prompt'
|
||||
import {RichText} from '#/components/RichText'
|
||||
import {SubtleHover} from '#/components/SubtleHover'
|
||||
import {
|
||||
getTrendingTopicFeedUri,
|
||||
TrendingTopicsPrompt,
|
||||
useTrendingTopicSeen,
|
||||
} from '#/components/TrendingTopics'
|
||||
@@ -95,6 +96,7 @@ function Inner() {
|
||||
onPress={() => {
|
||||
ax.metric('trendingTopic:click', {
|
||||
context: 'explore',
|
||||
feedUri: getTrendingTopicFeedUri(trend),
|
||||
rank,
|
||||
recId: trending.recId,
|
||||
})
|
||||
@@ -134,7 +136,7 @@ export function TrendRow({
|
||||
|
||||
const actors = useModerateTrendingActors(trend.actors)
|
||||
const formattedPostCount = formatCount(i18n, trend.postCount)
|
||||
useTrendingTopicSeen('explore', rank, recId)
|
||||
useTrendingTopicSeen('explore', getTrendingTopicFeedUri(trend), rank, recId)
|
||||
|
||||
const description = useMemo(() => {
|
||||
if (!trend.description) return
|
||||
|
||||
Reference in New Issue
Block a user