diff options
author | dan <dan.abramov@gmail.com> | 2024-03-19 20:19:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 13:19:11 -0700 |
commit | ebf8644df9d677a57e565f1c8b2983e33dab5749 (patch) | |
tree | 9a73e13fc7b5d02771d39d1e71cfcd507b52a277 /src/lib/notifications | |
parent | 0cac671e8a09057a457c912534eb9d65240f2f56 (diff) | |
download | voidsky-ebf8644df9d677a57e565f1c8b2983e33dab5749.tar.zst |
Track notification open (#3274)
Diffstat (limited to 'src/lib/notifications')
-rw-r--r-- | src/lib/notifications/notifications.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/notifications/notifications.ts b/src/lib/notifications/notifications.ts index 62d0bfc4b..e811f690e 100644 --- a/src/lib/notifications/notifications.ts +++ b/src/lib/notifications/notifications.ts @@ -7,6 +7,7 @@ import {logger} from '#/logger' import {RQKEY as RQKEY_NOTIFS} from '#/state/queries/notifications/feed' import {truncateAndInvalidate} from '#/state/queries/util' import {SessionAccount, getAgent} from '#/state/session' +import {logEvent} from '../statsig/statsig' const SERVICE_DID = (serviceUrl?: string) => serviceUrl?.includes('staging') @@ -123,6 +124,7 @@ export function init(queryClient: QueryClient) { logger.DebugContext.notifications, ) track('Notificatons:OpenApp') + logEvent('notifications:openApp', {}) truncateAndInvalidate(queryClient, RQKEY_NOTIFS()) resetToTab('NotificationsTab') // open notifications tab } |