diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts index a1692e62cc..3c75126d6f 100644 --- a/src/lib/hooks/useOTAUpdates.ts +++ b/src/lib/hooks/useOTAUpdates.ts @@ -12,6 +12,7 @@ import { import {logger} from '#/logger' import {IS_TESTFLIGHT} from 'lib/app-info' +import {logEvent} from 'lib/statsig/statsig' import {isIOS} from 'platform/detection' const MINIMUM_MINIMIZE_TIME = 15 * 60e3 @@ -49,6 +50,7 @@ export function useOTAUpdates() { if (res.isAvailable) { logger.debug('Attempting to fetch update...') await fetchUpdateAsync() + logEvent('update:fetched', {'update-id': res.manifest.id}) } else { logger.debug('No update available.') } diff --git a/src/lib/statsig/events.ts b/src/lib/statsig/events.ts index 68de52e14e..df5ec6d3b1 100644 --- a/src/lib/statsig/events.ts +++ b/src/lib/statsig/events.ts @@ -3,6 +3,9 @@ export type LogEvents = { init: { initMs: number } + 'update:fetched': { + 'update-id': string + } 'account:loggedIn': { logContext: | 'LoginForm'