diff options
author | Ansh <anshnanda10@gmail.com> | 2023-06-27 08:11:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 10:11:05 -0500 |
commit | a8bbaa06c7266c73f6a71b5e9223c11c96995947 (patch) | |
tree | bae43bbbd724ceb513aa29339273418623b8d7f4 /src/state/models/content/list.ts | |
parent | bfaa6d73f37f251259c521befa9e9ee8ea877560 (diff) | |
download | voidsky-a8bbaa06c7266c73f6a71b5e9223c11c96995947.tar.zst |
[APP-705] Metrics revamp pt2 (#896)
* export track function from analytics.tsx * fix create account tracking * fix tracking sign in * add custom feed events * fix type errors * refactor create post event * add profile follow & unfollow events * refactor PostsFeedSliceModel into its own file * refactor PostThreadItemModel into its own file * reorganize code a lil bit * refactor post-thread-item to use post-feed-item model under the hood * add post events * add post reply tracking * track custom feed load more * track list subscribe and unsubscribe
Diffstat (limited to 'src/state/models/content/list.ts')
-rw-r--r-- | src/state/models/content/list.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/models/content/list.ts b/src/state/models/content/list.ts index 038e9fc30..d5c9e649e 100644 --- a/src/state/models/content/list.ts +++ b/src/state/models/content/list.ts @@ -11,6 +11,7 @@ import {RootStoreModel} from '../root-store' import * as apilib from 'lib/api/index' import {cleanError} from 'lib/strings/errors' import {bundleAsync} from 'lib/async/bundle' +import {track} from 'lib/analytics/analytics' const PAGE_SIZE = 30 @@ -222,6 +223,7 @@ export class ListModel { await this.rootStore.agent.app.bsky.graph.muteActorList({ list: this.list.uri, }) + track('Lists:Subscribe') await this.refresh() } @@ -232,6 +234,7 @@ export class ListModel { await this.rootStore.agent.app.bsky.graph.unmuteActorList({ list: this.list.uri, }) + track('Lists:Unsubscribe') await this.refresh() } |