Merge pull request #6957 from vector-im/sync-analytics-plan
Sync analytics plan
This commit is contained in:
commit
22f8ace4c4
@ -40,6 +40,46 @@ data class Interaction(
|
|||||||
) : VectorAnalyticsEvent {
|
) : VectorAnalyticsEvent {
|
||||||
|
|
||||||
enum class Name {
|
enum class Name {
|
||||||
|
/**
|
||||||
|
* User tapped the All filter in the All Chats filter tab.
|
||||||
|
*/
|
||||||
|
MobileAllChatsFilterAll,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User tapped the Favourites filter in the All Chats filter tab.
|
||||||
|
*/
|
||||||
|
MobileAllChatsFilterFavourites,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User tapped the People filter in the All Chats filter tab.
|
||||||
|
*/
|
||||||
|
MobileAllChatsFilterPeople,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User tapped the Unreads filter in the All Chats filter tab.
|
||||||
|
*/
|
||||||
|
MobileAllChatsFilterUnreads,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User disabled filters from the all chats layout settings.
|
||||||
|
*/
|
||||||
|
MobileAllChatsFiltersDisabled,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User enabled filters from the all chats layout settings.
|
||||||
|
*/
|
||||||
|
MobileAllChatsFiltersEnabled,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User disabled recents from the all chats layout settings.
|
||||||
|
*/
|
||||||
|
MobileAllChatsRecentsDisabled,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User enabled recents from the all chats layout settings.
|
||||||
|
*/
|
||||||
|
MobileAllChatsRecentsEnabled,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User tapped on Add to Home button on Room Details screen.
|
* User tapped on Add to Home button on Room Details screen.
|
||||||
*/
|
*/
|
||||||
@ -60,6 +100,11 @@ data class Interaction(
|
|||||||
*/
|
*/
|
||||||
MobileRoomThreadSummaryItem,
|
MobileRoomThreadSummaryItem,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User validated the creation of a new space.
|
||||||
|
*/
|
||||||
|
MobileSpaceCreationValidated,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User tapped on the filter button on ThreadList screen.
|
* User tapped on the filter button on ThreadList screen.
|
||||||
*/
|
*/
|
||||||
@ -81,6 +126,12 @@ data class Interaction(
|
|||||||
*/
|
*/
|
||||||
SpacePanelSwitchSpace,
|
SpacePanelSwitchSpace,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User tapped an unselected sub space from the space list -> space
|
||||||
|
* switching should occur.
|
||||||
|
*/
|
||||||
|
SpacePanelSwitchSubSpace,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User clicked the create room button in the add existing room to space
|
* User clicked the create room button in the add existing room to space
|
||||||
* dialog in Element Web/Desktop.
|
* dialog in Element Web/Desktop.
|
||||||
|
@ -43,6 +43,11 @@ data class MobileScreen(
|
|||||||
*/
|
*/
|
||||||
CreateRoom,
|
CreateRoom,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The screen shown to create a new space.
|
||||||
|
*/
|
||||||
|
CreateSpace,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The confirmation screen shown before deactivating an account.
|
* The confirmation screen shown before deactivating an account.
|
||||||
*/
|
*/
|
||||||
@ -78,6 +83,11 @@ data class MobileScreen(
|
|||||||
*/
|
*/
|
||||||
InviteFriends,
|
InviteFriends,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Room accessed via space bottom sheet list.
|
||||||
|
*/
|
||||||
|
Invites,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The screen that displays the login flow (when the user already has an
|
* The screen that displays the login flow (when the user already has an
|
||||||
* account).
|
* account).
|
||||||
@ -261,6 +271,11 @@ data class MobileScreen(
|
|||||||
*/
|
*/
|
||||||
Sidebar,
|
Sidebar,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Room accessed via space bottom sheet list.
|
||||||
|
*/
|
||||||
|
SpaceBottomSheet,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Screen that displays the list of rooms and spaces of a space.
|
* Screen that displays the list of rooms and spaces of a space.
|
||||||
*/
|
*/
|
||||||
|
@ -44,6 +44,10 @@ data class UserProperties(
|
|||||||
* Whether the user has the people space enabled.
|
* Whether the user has the people space enabled.
|
||||||
*/
|
*/
|
||||||
val webMetaSpacePeopleEnabled: Boolean? = null,
|
val webMetaSpacePeopleEnabled: Boolean? = null,
|
||||||
|
/**
|
||||||
|
* The active filter in the All Chats screen
|
||||||
|
*/
|
||||||
|
val allChatsActiveFilter: AllChatsActiveFilter? = null,
|
||||||
/**
|
/**
|
||||||
* The selected messaging use case during the onboarding flow.
|
* The selected messaging use case during the onboarding flow.
|
||||||
*/
|
*/
|
||||||
@ -80,6 +84,29 @@ data class UserProperties(
|
|||||||
WorkMessaging,
|
WorkMessaging,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum class AllChatsActiveFilter {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filters are activated and All is selected
|
||||||
|
*/
|
||||||
|
All,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filters are activated and Favourites is selected
|
||||||
|
*/
|
||||||
|
Favourites,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filters are activated and People is selected
|
||||||
|
*/
|
||||||
|
People,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filters are activated and Unreads is selected
|
||||||
|
*/
|
||||||
|
Unreads,
|
||||||
|
}
|
||||||
|
|
||||||
fun getProperties(): Map<String, Any>? {
|
fun getProperties(): Map<String, Any>? {
|
||||||
return mutableMapOf<String, Any>().apply {
|
return mutableMapOf<String, Any>().apply {
|
||||||
webMetaSpaceFavouritesEnabled?.let { put("WebMetaSpaceFavouritesEnabled", it) }
|
webMetaSpaceFavouritesEnabled?.let { put("WebMetaSpaceFavouritesEnabled", it) }
|
||||||
@ -87,6 +114,7 @@ data class UserProperties(
|
|||||||
webMetaSpaceHomeEnabled?.let { put("WebMetaSpaceHomeEnabled", it) }
|
webMetaSpaceHomeEnabled?.let { put("WebMetaSpaceHomeEnabled", it) }
|
||||||
webMetaSpaceOrphansEnabled?.let { put("WebMetaSpaceOrphansEnabled", it) }
|
webMetaSpaceOrphansEnabled?.let { put("WebMetaSpaceOrphansEnabled", it) }
|
||||||
webMetaSpacePeopleEnabled?.let { put("WebMetaSpacePeopleEnabled", it) }
|
webMetaSpacePeopleEnabled?.let { put("WebMetaSpacePeopleEnabled", it) }
|
||||||
|
allChatsActiveFilter?.let { put("allChatsActiveFilter", it.name) }
|
||||||
ftueUseCaseSelection?.let { put("ftueUseCaseSelection", it.name) }
|
ftueUseCaseSelection?.let { put("ftueUseCaseSelection", it.name) }
|
||||||
numFavouriteRooms?.let { put("numFavouriteRooms", it) }
|
numFavouriteRooms?.let { put("numFavouriteRooms", it) }
|
||||||
numSpaces?.let { put("numSpaces", it) }
|
numSpaces?.let { put("numSpaces", it) }
|
||||||
|
@ -110,6 +110,11 @@ data class ViewRoom(
|
|||||||
*/
|
*/
|
||||||
MobileSearchContactDetail,
|
MobileSearchContactDetail,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Room accessed via space bottom sheet list.
|
||||||
|
*/
|
||||||
|
MobileSpaceBottomSheet,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Room accessed via interacting with direct chat item in the space
|
* Room accessed via interacting with direct chat item in the space
|
||||||
* contact detail screen.
|
* contact detail screen.
|
||||||
|
Loading…
Reference in New Issue
Block a user