Merge pull request #5433 from vector-im/sync-analytics-plan

Sync analytics plan
This commit is contained in:
Adam Brown 2022-03-16 12:04:59 +00:00 committed by GitHub
commit 99b43fd771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 1 deletions

View File

@ -39,6 +39,10 @@ data class Composer(
* sent event. * sent event.
*/ */
val isReply: Boolean, val isReply: Boolean,
/**
* Whether this message begins a new thread or not.
*/
val startsThread: Boolean? = null,
) : VectorAnalyticsEvent { ) : VectorAnalyticsEvent {
override fun getName() = "Composer" override fun getName() = "Composer"
@ -48,6 +52,7 @@ data class Composer(
put("inThread", inThread) put("inThread", inThread)
put("isEditing", isEditing) put("isEditing", isEditing)
put("isReply", isReply) put("isReply", isReply)
startsThread?.let { put("startsThread", it) }
}.takeIf { it.isNotEmpty() } }.takeIf { it.isNotEmpty() }
} }
} }

View File

@ -50,6 +50,26 @@ data class Interaction(
*/ */
MobileRoomLeave, MobileRoomLeave,
/**
* User tapped on Threads button on Room screen.
*/
MobileRoomThreadListButton,
/**
* User tapped on a thread summary item on Room screen.
*/
MobileRoomThreadSummaryItem,
/**
* User tapped on the filter button on ThreadList screen.
*/
MobileThreadListFilterItem,
/**
* User selected a thread on ThreadList screen.
*/
MobileThreadListThreadItem,
/** /**
* User tapped the already selected space from the space list. * User tapped the already selected space from the space list.
*/ */
@ -115,12 +135,24 @@ data class Interaction(
*/ */
WebRightPanelRoomUserInfoInviteButton, WebRightPanelRoomUserInfoInviteButton,
/**
* User clicked the threads 'show' filter dropdown in the threads panel
* in Element Web/Desktop.
*/
WebRightPanelThreadPanelFilterDropdown,
/** /**
* User clicked the create room button in the room directory of Element * User clicked the create room button in the room directory of Element
* Web/Desktop. * Web/Desktop.
*/ */
WebRoomDirectoryCreateRoomButton, WebRoomDirectoryCreateRoomButton,
/**
* User clicked the Threads button in the top right of a room in Element
* Web/Desktop.
*/
WebRoomHeaderButtonsThreadsButton,
/** /**
* User adjusted their favourites using the context menu on the header * User adjusted their favourites using the context menu on the header
* of a room in Element Web/Desktop. * of a room in Element Web/Desktop.
@ -207,7 +239,7 @@ data class Interaction(
/** /**
* User clicked the explore rooms button in the + context menu of the * User clicked the explore rooms button in the + context menu of the
* rooms sublist in Element Web/Desktop. * rooms sublist in Element Web/Desktop.
*/ */
WebRoomListRoomsSublistPlusMenuExploreRoomsItem, WebRoomListRoomsSublistPlusMenuExploreRoomsItem,
@ -223,6 +255,12 @@ data class Interaction(
*/ */
WebRoomSettingsSecurityTabCreateNewRoomButton, WebRoomSettingsSecurityTabCreateNewRoomButton,
/**
* User clicked a thread summary in the timeline of a room in Element
* Web/Desktop.
*/
WebRoomTimelineThreadSummaryButton,
/** /**
* User interacted with the theme radio selector in the Appearance tab * User interacted with the theme radio selector in the Appearance tab
* of Settings in Element Web/Desktop. * of Settings in Element Web/Desktop.
@ -259,6 +297,17 @@ data class Interaction(
*/ */
WebSpaceHomeCreateRoomButton, WebSpaceHomeCreateRoomButton,
/**
* User clicked the back button on a Thread view going back to the
* Threads Panel of Element Web/Desktop.
*/
WebThreadViewBackButton,
/**
* User selected a thread in the Threads panel in Element Web/Desktop.
*/
WebThreadsPanelThreadItem,
/** /**
* User clicked the theme toggle button in the user menu of Element * User clicked the theme toggle button in the user menu of Element
* Web/Desktop. * Web/Desktop.

View File

@ -286,6 +286,11 @@ data class MobileScreen(
*/ */
SwitchDirectory, SwitchDirectory,
/**
* Screen that displays list of threads for a room
*/
ThreadList,
/** /**
* A screen that shows information about a room member. * A screen that shows information about a room member.
*/ */