Post view client event (#9408)

* Adds post:view client event tracking in feeds

* Add post:view event on the post page itself

* Don't send post:view to statsig for now

* convert to non reactive callback to reduce rerenders

---------

Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
Alex Benzer
2025-11-20 07:41:56 -08:00
committed by GitHub
parent 2faf62c7f7
commit 002a63b125
3 changed files with 114 additions and 4 deletions
+7
View File
@@ -263,6 +263,13 @@ export type MetricEvents = {
'post:unbookmark': {
logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo'
}
'post:view': {
uri: string
authorDid: string
logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo'
feedDescriptor?: string
position?: number
}
'bookmarks:view': {}
'bookmarks:post-clicked': {}
'profile:follow': {