Add analytics tracking for room creation (#1100)

This commit is contained in:
Johannes Marbach
2023-06-19 14:35:58 +02:00
committed by GitHub
parent 1f65b7b9f9
commit ee643f7a69
6 changed files with 11 additions and 0 deletions
@@ -125,4 +125,10 @@ extension Analytics {
let event = AnalyticsEvent.MobileScreen(durationMs: milliseconds, screenName: screen.screenName)
client.screen(event)
}
/// Track the creation of a room
/// - Parameter isDM: true if the created room is a direct message, false otherwise
func trackCreatedRoom(isDM: Bool) {
capture(event: AnalyticsEvent.CreatedRoom(isDM: isDM))
}
}