Skip to content

Commit

Permalink
Merge pull request #101 from matrix-org/dbkr/activity_toggles_analytics
Browse files Browse the repository at this point in the history
Add interaction events for the activity toggles
  • Loading branch information
dbkr authored Apr 22, 2024
2 parents 22c602c + b12a4e3 commit 5bf24eb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,17 @@ data class Interaction(
*/
WebSettingsAppearanceTabThemeSelector,

/**
* User toggled the 'Notifications.showbold' in Element Web/Desktop.
*/
WebSettingsNotificationsShowBoldToggle,

/**
* User toggled the 'Notifications.tac_only_notifications' in Element
* Web/Desktop.
*/
WebSettingsNotificationsTACOnlyNotificationsToggle,

/**
* User interacted with the pre-built space checkboxes in the Sidebar
* tab of Settings in Element Web/Desktop.
Expand Down
2 changes: 2 additions & 0 deletions schemas/Interaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"oneOf": [
{"const": "WebRoomListRoomTileContextMenuFavouriteToggle", "description": "User adjusted their favourites using the context menu on a room tile in the room list in Element Web/Desktop." },
{"const": "WebRoomHeaderContextMenuFavouriteToggle", "description": "User adjusted their favourites using the context menu on the header of a room in Element Web/Desktop." },
{"const": "WebSettingsNotificationsShowBoldToggle", "description": "User toggled the 'Notifications.showbold' in Element Web/Desktop." },
{"const": "WebSettingsNotificationsTACOnlyNotificationsToggle", "description": "User toggled the 'Notifications.tac_only_notifications' in Element Web/Desktop." },
{"const": "WebRoomListRoomTileNotificationsMenu", "description": "User accessed their room notification settings via the context menu on a room tile in the room list in Element Web/Desktop." },
{"const": "WebRoomHeaderContextMenuNotificationsItem", "description": "User accessed their room notification settings via the context menu on the header of a room in Element Web/Desktop." },
{"const": "WebRoomHeaderContextMenuPeopleItem", "description": "User accessed room member list using the context menu on the header of a room in Element Web/Desktop." },
Expand Down
4 changes: 4 additions & 0 deletions types/swift/Interaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ extension AnalyticsEvent {
case WebRoomTimelineThreadSummaryButton
/// User interacted with the theme radio selector in the Appearance tab of Settings in Element Web/Desktop.
case WebSettingsAppearanceTabThemeSelector
/// User toggled the 'Notifications.showbold' in Element Web/Desktop.
case WebSettingsNotificationsShowBoldToggle
/// User toggled the 'Notifications.tac_only_notifications' in Element Web/Desktop.
case WebSettingsNotificationsTACOnlyNotificationsToggle
/// User interacted with the pre-built space checkboxes in the Sidebar tab of Settings in Element Web/Desktop.
case WebSettingsSidebarTabSpacesCheckbox
/// User clicked the explore rooms button in the context menu of a space in Element Web/Desktop.
Expand Down

0 comments on commit 5bf24eb

Please sign in to comment.