From c6d26a0a9c6606cccaee38adb535be257f19809d Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 27 Dec 2024 16:21:17 -0600 Subject: [PATCH] Some metrics (#7294) * Add trending metrics * Progress guide events * Fix naming, improve existing events --- src/components/ProgressGuide/FollowDialog.tsx | 6 +++++- src/components/interstitials/Trending.tsx | 7 ++++++- src/lib/statsig/events.ts | 15 +++++++++++++-- .../Search/components/ExploreRecommendations.tsx | 8 +++++++- .../Search/components/ExploreTrendingTopics.tsx | 7 ++++++- src/screens/Settings/ContentAndMediaSettings.tsx | 11 ++++++++++- src/state/preferences/trending.tsx | 7 +------ src/state/shell/progress-guide.tsx | 2 ++ src/view/shell/desktop/SidebarTrendingTopics.tsx | 7 ++++++- 9 files changed, 56 insertions(+), 14 deletions(-) diff --git a/src/components/ProgressGuide/FollowDialog.tsx b/src/components/ProgressGuide/FollowDialog.tsx index fa233bb65a..288dcfe247 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}) { <>