diff options
author | Eric Bailey <git@esb.lol> | 2024-12-27 16:21:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-27 14:21:17 -0800 |
commit | c6d26a0a9c6606cccaee38adb535be257f19809d (patch) | |
tree | ec5669983ca34f5ce94ed6578dd405643cc6420a /src/screens/Search/components/ExploreRecommendations.tsx | |
parent | 8b7a33181534b4bce1a74ba81e20db8195f1ae40 (diff) | |
download | voidsky-c6d26a0a9c6606cccaee38adb535be257f19809d.tar.zst |
Some metrics (#7294)
* Add trending metrics * Progress guide events * Fix naming, improve existing events
Diffstat (limited to 'src/screens/Search/components/ExploreRecommendations.tsx')
-rw-r--r-- | src/screens/Search/components/ExploreRecommendations.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/screens/Search/components/ExploreRecommendations.tsx b/src/screens/Search/components/ExploreRecommendations.tsx index 44ab1770f..7070c44ac 100644 --- a/src/screens/Search/components/ExploreRecommendations.tsx +++ b/src/screens/Search/components/ExploreRecommendations.tsx @@ -1,6 +1,7 @@ import {View} from 'react-native' import {Trans} from '@lingui/macro' +import {logEvent} from '#/lib/statsig/statsig' import {isWeb} from '#/platform/detection' import { DEFAULT_LIMIT as RECOMMENDATIONS_COUNT, @@ -71,7 +72,12 @@ function Inner() { ) : !trending?.suggested ? null : ( <> {trending.suggested.map(topic => ( - <TrendingTopicLink key={topic.link} topic={topic}> + <TrendingTopicLink + key={topic.link} + topic={topic} + onPress={() => { + logEvent('recommendedTopic:click', {context: 'explore'}) + }}> {({hovered}) => ( <TrendingTopic topic={topic} |