Skip to content

Commit d3d3637

Browse files
committed
feat: Add switchUserBottomSheet Matomo
1 parent 292a2eb commit d3d3637

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

SwissTransferFeatures/AccountView/AccountCellView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ struct AccountCellView: View {
6464
Button {
6565
guard !isSelected else { return }
6666

67+
@InjectService var matomo: MatomoUtils
68+
matomo.track(eventWithCategory: .switchUserBottomSheet, name: .switch)
69+
6770
Task { @MainActor in
6871
@InjectService var accountManager: AccountManager
6972
await accountManager.switchUser(newCurrentUserId: user.id)

SwissTransferFeatures/AccountView/AccountListView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ struct AccountListView: View {
5858
.padding(.vertical, value: .mini)
5959

6060
Button {
61+
@InjectService var matomo: MatomoUtils
62+
matomo.track(eventWithCategory: .switchUserBottomSheet, name: .addAccount)
63+
6164
mainViewState.isShowingLoginView = true
6265
} label: {
6366
SingleLabelSettingsCell(

0 commit comments

Comments
 (0)