mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Add support for UserProperties to analytics and capture FTUE use case selection.
Additionally update taps to interactions following updates in the analytics event repo.
This commit is contained in:
@@ -16,17 +16,17 @@
|
||||
|
||||
import AnalyticsEvents
|
||||
|
||||
/// A tappable UI element that can be track in Analytics.
|
||||
/// A tappable UI element that can be tracked in Analytics.
|
||||
@objc enum AnalyticsUIElement: Int {
|
||||
case sendMessageButton
|
||||
case removeMe
|
||||
|
||||
/// The element name reported to the AnalyticsEvent.
|
||||
var elementName: AnalyticsEvent.Click.Name {
|
||||
var name: AnalyticsEvent.Interaction.Name {
|
||||
switch self {
|
||||
// Note: This is a test element that doesn't need to be captured.
|
||||
// It will likely be removed when the AnalyticsEvent.Click is updated.
|
||||
case .sendMessageButton:
|
||||
return .SendMessageButton
|
||||
// It can be removed when some elements are added that relate to mobile.
|
||||
case .removeMe:
|
||||
return .WebRoomSettingsLeaveButton
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user