From 564196513ba3db8b0d321b1d0c93a41e7b0b9592 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 31 Oct 2024 11:54:47 +0000 Subject: [PATCH 1/3] Add interaction tracking around Element Web VoIP --- schemas/Interaction.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schemas/Interaction.json b/schemas/Interaction.json index c504c73..f6582b7 100644 --- a/schemas/Interaction.json +++ b/schemas/Interaction.json @@ -69,6 +69,11 @@ {"const": "WebUserOnboardingTaskEnableNotifications", "description": "User clicked on the action of the enable notifications task on the new user onboarding page in Element Web/Desktop." }, {"const": "WebRoomListUserOnboardingButton", "description": "User clicked on the button to return to the user onboarding list in the room list in Element Web/Desktop." }, {"const": "WebRoomListUserOnboardingIgnoreButton", "description": "User clicked on the button to close the user onboarding button in the room list in Element Web/Desktop." }, + {"const": "WebRoomHeaderVideoCallButton", "description": "The user tapped the room header video call button."}, + {"const": "WebRoomHeaderVoiceCallButton", "description": "The user tapped the room header voice call button."}, + {"const": "WebVoipOptionLegacy", "description": "The user chose the legacy call option."}, + {"const": "WebVoipOptionJitsi", "description": "The user chose the Jitsi call option."}, + {"const": "WebVoipOptionElementCall", "description": "The user chose the Element Call option."}, {"const": "PinnedMessageBannerClick", "description": "User clicked on the pinned message banner on Mobile and Element Web/Desktop." }, {"const": "PinnedMessageBannerViewAllButton", "description": "User clicked on the View all button in the pinned message banner on Mobile and Element Web/Desktop." }, From ada70552bf723dc5f086f21ec068c91e9549e8c7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 31 Oct 2024 12:00:47 +0000 Subject: [PATCH 2/3] Remove some interactions --- schemas/Interaction.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/schemas/Interaction.json b/schemas/Interaction.json index f6582b7..4bf0192 100644 --- a/schemas/Interaction.json +++ b/schemas/Interaction.json @@ -69,8 +69,6 @@ {"const": "WebUserOnboardingTaskEnableNotifications", "description": "User clicked on the action of the enable notifications task on the new user onboarding page in Element Web/Desktop." }, {"const": "WebRoomListUserOnboardingButton", "description": "User clicked on the button to return to the user onboarding list in the room list in Element Web/Desktop." }, {"const": "WebRoomListUserOnboardingIgnoreButton", "description": "User clicked on the button to close the user onboarding button in the room list in Element Web/Desktop." }, - {"const": "WebRoomHeaderVideoCallButton", "description": "The user tapped the room header video call button."}, - {"const": "WebRoomHeaderVoiceCallButton", "description": "The user tapped the room header voice call button."}, {"const": "WebVoipOptionLegacy", "description": "The user chose the legacy call option."}, {"const": "WebVoipOptionJitsi", "description": "The user chose the Jitsi call option."}, {"const": "WebVoipOptionElementCall", "description": "The user chose the Element Call option."}, From 5128a6ee5094262b081e4e0a5a511767d6d5459d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 31 Oct 2024 13:43:36 +0000 Subject: [PATCH 3/3] Generate kt & swift --- .../app/features/analytics/plan/Interaction.kt | 15 +++++++++++++++ types/swift/Interaction.swift | 6 ++++++ 2 files changed, 21 insertions(+) diff --git a/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt b/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt index c372e1c..8afb022 100644 --- a/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt +++ b/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt @@ -562,6 +562,21 @@ data class Interaction( * onboarding page in Element Web/Desktop. */ WebUserOnboardingTaskSetupProfile("WebUserOnboardingTaskSetupProfile"), + + /** + * The user chose the Element Call option. + */ + WebVoipOptionElementCall("WebVoipOptionElementCall"), + + /** + * The user chose the Jitsi call option. + */ + WebVoipOptionJitsi("WebVoipOptionJitsi"), + + /** + * The user chose the legacy call option. + */ + WebVoipOptionLegacy("WebVoipOptionLegacy"), } enum class InteractionType(val rawValue: String) { diff --git a/types/swift/Interaction.swift b/types/swift/Interaction.swift index a34d320..a025112 100644 --- a/types/swift/Interaction.swift +++ b/types/swift/Interaction.swift @@ -220,6 +220,12 @@ extension AnalyticsEvent { case WebUserOnboardingTaskSendDm = "WebUserOnboardingTaskSendDm" /// User clicked on the action of the your profile task on the new user onboarding page in Element Web/Desktop. case WebUserOnboardingTaskSetupProfile = "WebUserOnboardingTaskSetupProfile" + /// The user chose the Element Call option. + case WebVoipOptionElementCall = "WebVoipOptionElementCall" + /// The user chose the Jitsi call option. + case WebVoipOptionJitsi = "WebVoipOptionJitsi" + /// The user chose the legacy call option. + case WebVoipOptionLegacy = "WebVoipOptionLegacy" } public enum InteractionType: String {