diff --git a/src/components/activity-notifications/SubscribeProfileDialog.tsx b/src/components/activity-notifications/SubscribeProfileDialog.tsx index 7d87ea42ab..480987378e 100644 --- a/src/components/activity-notifications/SubscribeProfileDialog.tsx +++ b/src/components/activity-notifications/SubscribeProfileDialog.tsx @@ -128,21 +128,27 @@ function DialogInner({ }), ) if (!activitySubscription.post && !activitySubscription.reply) { + logger.metric('activitySubscription:disable', {}) Toast.show( _( msg`You will no longer receive notifications for ${sanitizeHandle(profile.handle, '@')}`, ), 'check', ) - } else if (!initialState.post && !initialState) { - Toast.show( - _( - msg`You'll start receiving notifications for ${sanitizeHandle(profile.handle, '@')}!`, - ), - 'check', - ) } else { - Toast.show(_(msg`Changes saved`), 'check') + logger.metric('activitySubscription:enable', { + setting: activitySubscription.reply ? 'posts_and_replies' : 'posts', + }) + if (!initialState.post && !initialState.reply) { + Toast.show( + _( + msg`You'll start receiving notifications for ${sanitizeHandle(profile.handle, '@')}!`, + ), + 'check', + ) + } else { + Toast.show(_(msg`Changes saved`), 'check') + } } }, onError: err => { diff --git a/src/logger/metrics.ts b/src/logger/metrics.ts index 31af1be2b0..bbde6c9bc0 100644 --- a/src/logger/metrics.ts +++ b/src/logger/metrics.ts @@ -443,4 +443,8 @@ export type MetricEvents = { [key: string]: any } 'thread:click:headerMenuOpen': {} + 'activitySubscription:enable': { + setting: 'posts' | 'posts_and_replies' + } + 'activitySubscription:disable': {} }