Analytics : add analytics on read status and favorite toggles
This commit is contained in:
parent
a52d441278
commit
4052abf15c
8 changed files with 91 additions and 30 deletions
|
|
@ -18,6 +18,7 @@ package io.element.android.services.analyticsproviders.api.trackers
|
|||
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsEvent
|
||||
import im.vector.app.features.analytics.itf.VectorAnalyticsScreen
|
||||
import im.vector.app.features.analytics.plan.Interaction
|
||||
import im.vector.app.features.analytics.plan.UserProperties
|
||||
|
||||
interface AnalyticsTracker {
|
||||
|
|
@ -36,3 +37,7 @@ interface AnalyticsTracker {
|
|||
*/
|
||||
fun updateUserProperties(userProperties: UserProperties)
|
||||
}
|
||||
|
||||
fun AnalyticsTracker.captureInteraction(name: Interaction.Name, type: Interaction.InteractionType? = null) {
|
||||
capture(Interaction(interactionType = type, name = name))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue