Analytics : add analytics on read status and favorite toggles
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user