[Statsig] Track threads (#6057)

* [Statsig] Send thread length

* Split events
This commit is contained in:
dan
2024-11-01 16:21:18 +00:00
committed by GitHub
parent 1c2186bc03
commit 125ac5049a
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -405,6 +405,7 @@ export const ComposePost = ({
? post.embed.media.images.length
: 0,
isReply: index > 0 || !!replyTo,
isPartOfThread: thread.posts.length > 1,
hasLink: !!post.embed.link,
hasQuote: !!post.embed.quote,
langs: langPrefs.postLanguage,
@@ -413,6 +414,12 @@ export const ComposePost = ({
index++
}
}
if (thread.posts.length > 1) {
logEvent('thread:create', {
postCount: thread.posts.length,
isReply: !!replyTo,
})
}
}
if (postUri && !replyTo) {
emitPostCreated()