Some metrics (#7294)

* Add trending metrics

* Progress guide events

* Fix naming, improve existing events
This commit is contained in:
Eric Bailey
2024-12-27 16:21:17 -06:00
committed by GitHub
parent 8b7a331815
commit c6d26a0a9c
9 changed files with 57 additions and 15 deletions
@@ -10,6 +10,7 @@ import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
import {logEvent} from '#/lib/statsig/statsig'
import {cleanError} from '#/lib/strings/errors'
import {logger} from '#/logger'
import {isWeb} from '#/platform/detection'
@@ -75,7 +76,10 @@ export function FollowDialog({guide}: {guide: Follow10ProgressGuide}) {
<>
<Button
label={_(msg`Find people to follow`)}
onPress={control.open}
onPress={() => {
control.open()
logEvent('progressGuide:followDialog:open', {})
}}
size={gtMobile ? 'small' : 'large'}
color="primary"
variant="solid">
+6 -1
View File
@@ -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}