Analytics : add analytics on read status and favorite toggles

This commit is contained in:
ganfra
2024-02-19 17:36:23 +01:00
parent a52d441278
commit 4052abf15c
8 changed files with 91 additions and 30 deletions

View File

@@ -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))
}