fix(analytics): add general activity metric to mixpanel

This commit is contained in:
Karol Sójko 2023-02-23 13:21:08 +01:00
parent 145b4401af
commit 9d872008a7
No known key found for this signature in database
GPG key ID: D966F68E8A92F649
2 changed files with 8 additions and 0 deletions

View file

@ -19,6 +19,10 @@ export class SessionCreatedEventHandler implements DomainEventHandlerInterface {
this.mixpanelClient.track(event.type, {
distinct_id: analyticsId.toString(),
})
this.mixpanelClient.track('GENERAL_ACTIVITY', {
distinct_id: analyticsId.toString(),
})
}
}
}

View file

@ -19,6 +19,10 @@ export class SessionRefreshedEventHandler implements DomainEventHandlerInterface
this.mixpanelClient.track(event.type, {
distinct_id: analyticsId.toString(),
})
this.mixpanelClient.track('GENERAL_ACTIVITY', {
distinct_id: analyticsId.toString(),
})
}
}
}