mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix: only send content_fetch_failure event to analytics
This commit is contained in:
parent
a802bab1c3
commit
f2ff4b7b0a
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class PostHogClient implements AnalyticClient {
|
|||
}
|
||||
|
||||
capture(userIds: string[], { properties, result }: AnalyticEvent) {
|
||||
if (process.env.SEND_ANALYTICS) {
|
||||
if (process.env.SEND_ANALYTICS && result === 'failure') {
|
||||
userIds.forEach((userId) => {
|
||||
this.client.capture({
|
||||
distinctId: userId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue