Log analytics: user's Dynamic Type setting

pull/2927/head
Hwee-Boon Yar 3 years ago
parent d149f54f3b
commit 78d6807ea3
  1. 1
      AlphaWallet/Analytics/Models/AnalyticsTypes.swift
  2. 6
      AlphaWallet/InCoordinator.swift

@ -83,6 +83,7 @@ enum Analytics {
case hdWalletsCount case hdWalletsCount
case keystoreWalletsCount case keystoreWalletsCount
case watchedWalletsCount case watchedWalletsCount
case dynamicTypeSetting
} }
enum ScanQRCodeSource: String { enum ScanQRCodeSource: String {

@ -437,6 +437,7 @@ class InCoordinator: NSObject, Coordinator {
logEnabledChains() logEnabledChains()
logWallets() logWallets()
logDynamicTypeSetting()
} }
private func createTokensCoordinator(promptBackupCoordinator: PromptBackupCoordinator) -> TokensCoordinator { private func createTokensCoordinator(promptBackupCoordinator: PromptBackupCoordinator) -> TokensCoordinator {
@ -1151,6 +1152,11 @@ extension InCoordinator {
analyticsCoordinator.setUser(property: Analytics.UserProperties.watchedWalletsCount, value: watchedWalletsCount) analyticsCoordinator.setUser(property: Analytics.UserProperties.watchedWalletsCount, value: watchedWalletsCount)
} }
private func logDynamicTypeSetting() {
let setting = UIApplication.shared.preferredContentSizeCategory.rawValue
analyticsCoordinator.setUser(property: Analytics.UserProperties.dynamicTypeSetting, value: setting)
}
private func logTappedSwap(service: SwapTokenURLProviderType) { private func logTappedSwap(service: SwapTokenURLProviderType) {
analyticsCoordinator.log(navigation: Analytics.Navigation.tokenSwap, properties: [Analytics.Properties.name.rawValue: service.analyticsName]) analyticsCoordinator.log(navigation: Analytics.Navigation.tokenSwap, properties: [Analytics.Properties.name.rawValue: service.analyticsName])
} }

Loading…
Cancel
Save