From 7182812a317b18b7fefbe5a0e59dfc7a064705fd Mon Sep 17 00:00:00 2001 From: Hailey Date: Sun, 16 Jun 2024 01:05:02 -0700 Subject: [PATCH] add follow all log --- src/lib/statsig/events.ts | 4 ++++ src/screens/StarterPack/StarterPackScreen.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/lib/statsig/events.ts b/src/lib/statsig/events.ts index 6b41967eff..81436b7d07 100644 --- a/src/lib/statsig/events.ts +++ b/src/lib/statsig/events.ts @@ -155,6 +155,10 @@ export type LogEvents = { shareType: 'link' | 'qrcode' qrShareType?: 'save' | 'copy' } + 'starterPack:followAll': { + starterPack: string + followCount: number + } 'test:all:always': {} 'test:all:sometimes': {} diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx index a392e542ec..ecd35a4587 100644 --- a/src/screens/StarterPack/StarterPackScreen.tsx +++ b/src/screens/StarterPack/StarterPackScreen.tsx @@ -155,6 +155,10 @@ function Header({ queryKey: RQKEY(starterPack.list.uri), }) + logEvent('starterPack:followAll', { + starterPack: starterPack.uri, + followCount: dids.length, + }) Toast.show(_(msg`All accounts have been followed!`)) } catch (e) { Toast.show(_(msg`An error occurred while trying to follow all`))