about summary refs log tree commit diff
path: root/src/components/interstitials
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-12-27 16:21:17 -0600
committerGitHub <noreply@github.com>2024-12-27 14:21:17 -0800
commitc6d26a0a9c6606cccaee38adb535be257f19809d (patch)
treeec5669983ca34f5ce94ed6578dd405643cc6420a /src/components/interstitials
parent8b7a33181534b4bce1a74ba81e20db8195f1ae40 (diff)
downloadvoidsky-c6d26a0a9c6606cccaee38adb535be257f19809d.tar.zst
Some metrics (#7294)
* Add trending metrics

* Progress guide events

* Fix naming, improve existing events
Diffstat (limited to 'src/components/interstitials')
-rw-r--r--src/components/interstitials/Trending.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/interstitials/Trending.tsx b/src/components/interstitials/Trending.tsx
index ff41797f4..153f08aaa 100644
--- a/src/components/interstitials/Trending.tsx
+++ b/src/components/interstitials/Trending.tsx
@@ -88,7 +88,12 @@ export function Inner() {
         ) : !trending?.topics ? null : (
           <>
             {trending.topics.map(topic => (
-              <TrendingTopicLink key={topic.link} topic={topic}>
+              <TrendingTopicLink
+                key={topic.link}
+                topic={topic}
+                onPress={() => {
+                  logEvent('trendingTopic:click', {context: 'interstitial'})
+                }}>
                 {({hovered}) => (
                   <TrendingTopic
                     topic={topic}