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 keystoreWalletsCount
case watchedWalletsCount
case dynamicTypeSetting
}
enum ScanQRCodeSource: String {

@ -437,6 +437,7 @@ class InCoordinator: NSObject, Coordinator {
logEnabledChains()
logWallets()
logDynamicTypeSetting()
}
private func createTokensCoordinator(promptBackupCoordinator: PromptBackupCoordinator) -> TokensCoordinator {
@ -1151,6 +1152,11 @@ extension InCoordinator {
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) {
analyticsCoordinator.log(navigation: Analytics.Navigation.tokenSwap, properties: [Analytics.Properties.name.rawValue: service.analyticsName])
}

Loading…
Cancel
Save