Add more data to trending metrics (#11565)

This commit is contained in:
DS Boyce
2026-09-04 16:11:20 -07:00
committed by GitHub
parent 1556804f78
commit e595243b1f
6 changed files with 48 additions and 15 deletions
@@ -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