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:
Doug
2022-02-15 17:54:17 +00:00
parent cdfa801bc7
commit e5bbfa9a30
8 changed files with 111 additions and 22 deletions
@@ -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
}
}
}