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/components/ProgressGuide | |
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/components/ProgressGuide')
-rw-r--r-- | src/components/ProgressGuide/FollowDialog.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/ProgressGuide/FollowDialog.tsx b/src/components/ProgressGuide/FollowDialog.tsx index fa233bb65..288dcfe24 100644 --- a/src/components/ProgressGuide/FollowDialog.tsx +++ b/src/components/ProgressGuide/FollowDialog.tsx @@ -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"> |