Skip to content

Commit

Permalink
Add analytics tracking for some screens (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimau committed Jun 21, 2023
1 parent 3f028cb commit 9013127
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct InvitesScreen: View {
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
.navigationTitle(L10n.actionInvitesList)
.alert(item: $context.alertInfo)
.track(screen: .invites)
}

// MARK: - Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct RoomDetailsEditScreen: View {
.navigationTitle(L10n.screenRoomDetailsEditRoomTitle)
.navigationBarTitleDisplayMode(.inline)
.toolbar { toolbar }
.track(screen: .roomSettings)
}

// MARK: - Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ struct RoomDetailsScreen: View {
}
}
}
.track(screen: .roomDetails)
}

// MARK: - Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct RoomMemberDetailsScreen: View {
.elementFormStyle()
.alert(item: $context.ignoreUserAlert, actions: blockUserAlertActions, message: blockUserAlertMessage)
.alert(item: $context.alertInfo)
.track(screen: .user)
}

// MARK: - Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct RoomMembersListScreen: View {
inviteButton
}
}
.track(screen: .roomMembers)
}

// MARK: - Private
Expand Down

0 comments on commit 9013127

Please sign in to comment.