Merge pull request #3463 from AlphaWallet/log-analytics-when-edit-custom-chain

Log analytics: when user edits and save custom chains
pull/3461/head
Hwee-Boon Yar 3 years ago committed by GitHub
commit 21afa04902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      AlphaWallet/Analytics/Models/AnalyticsTypes.swift
  2. 1
      AlphaWallet/Settings/Coordinators/EditCustomRPCCoordinator.swift

@ -62,6 +62,7 @@ enum Analytics {
case nameWallet = "Name Wallet"
case firstWalletAction = "First Wallet Action"
case addCustomChain = "Add Custom Chain"
case editCustomChain = "Edit Custom Chain"
case subscribeToEmailNewsletter = "Subscribe Email Newsletter"
case tapSafariExtensionRewrittenUrl = "Tap Safari Extension Rewritten URL"
}

@ -64,6 +64,7 @@ extension EditCustomRpcCoordinator: AddCustomChainDelegate {
}
func notifyAddCustomChainQueuedSuccessfully(in addCustomChain: AddCustomChain) {
analyticsCoordinator.log(action: Analytics.Action.editCustomChain, properties: [Analytics.Properties.addCustomChainType.rawValue: "user"])
delegate?.restartToEdit(in: self)
}

Loading…
Cancel
Save