@@ -48,6 +48,8 @@ public struct AccountView: View {
4848 if currentUser != nil {
4949 let userCount = tokenStore. getAllTokens ( ) . count
5050 Button {
51+ @InjectService var matomo : MatomoUtils
52+ matomo. track ( eventWithCategory: . myAccount, name: . switchUser)
5153 mainViewState. isShowingSwitchAccountListView = true
5254 } label: {
5355 SingleLabelSettingsCell (
@@ -62,6 +64,8 @@ public struct AccountView: View {
6264 }
6365 } else {
6466 Button {
67+ @InjectService var matomo : MatomoUtils
68+ matomo. track ( eventWithCategory: . myAccount, name: . login)
6569 mainViewState. isShowingLoginView = true
6670 } label: {
6771 SingleLabelSettingsCell (
@@ -84,6 +88,8 @@ public struct AccountView: View {
8488 . settingsCell ( )
8589
8690 Button {
91+ @InjectService var matomo : MatomoUtils
92+ matomo. track ( eventWithCategory: . myAccount, name: . helpAndSupport)
8793 openURL ( SettingLinks . helpAndSupportURL)
8894 } label: {
8995 SingleLabelSettingsCell (
@@ -96,14 +102,16 @@ public struct AccountView: View {
96102
97103 if let currentUser {
98104 Button {
105+ @InjectService var matomo : MatomoUtils
106+ matomo. track ( eventWithCategory: . myAccount, name: . logout)
99107 isShowingLogoutView = true
100108 } label: {
101109 SingleLabelSettingsCell (
102110 title: STResourcesStrings . Localizable. settingsLogOut,
103111 leadingIcon: STResourcesAsset . Images. logout
104112 )
105113 }
106- . buttonStyle ( PlainButtonStyle ( ) )
114+ . buttonStyle ( . plain )
107115 . stCustomAlert ( isPresented: $isShowingLogoutView) {
108116 LogoutConfirmationView ( user: currentUser)
109117 }
@@ -113,6 +121,8 @@ public struct AccountView: View {
113121
114122 Section ( header: Text ( STResourcesStrings . Localizable. settingsCategoryAbout) ) {
115123 Button {
124+ @InjectService var matomo : MatomoUtils
125+ matomo. track ( eventWithCategory: . myAccount, name: . termsAndConditions)
116126 openURL ( SettingLinks . termsAndConditions)
117127 } label: {
118128 SingleLabelSettingsCell ( title: STResourcesStrings . Localizable. settingsOptionTermsAndConditions,
@@ -122,6 +132,8 @@ public struct AccountView: View {
122132 . settingsCell ( )
123133
124134 Button {
135+ @InjectService var matomo : MatomoUtils
136+ matomo. track ( eventWithCategory: . myAccount, name: . discoverInfomaniak)
125137 openURL ( SettingLinks . discoverInfomaniak)
126138 } label: {
127139 SingleLabelSettingsCell ( title: STResourcesStrings . Localizable. settingsOptionDiscoverInfomaniak,
@@ -131,6 +143,8 @@ public struct AccountView: View {
131143 . settingsCell ( )
132144
133145 Button {
146+ @InjectService var matomo : MatomoUtils
147+ matomo. track ( eventWithCategory: . myAccount, name: . shareYourIdeas)
134148 openURL ( SettingLinks . shareYourIdeas)
135149 } label: {
136150 SingleLabelSettingsCell ( title: STResourcesStrings . Localizable. settingsOptionShareIdeas,
@@ -141,6 +155,8 @@ public struct AccountView: View {
141155
142156 if !Bundle. main. isRunningInTestFlight {
143157 Button {
158+ @InjectService var matomo : MatomoUtils
159+ matomo. track ( eventWithCategory: . myAccount, name: . giveYourOpinion)
144160 openURL ( SettingLinks . appStoreReviewURL)
145161 } label: {
146162 SingleLabelSettingsCell ( title: STResourcesStrings . Localizable. settingsOptionGiveFeedback,
0 commit comments