[iOS] Fixed missing statistics

https://jira.mail.ru/browse/MAPSME-12546
This commit is contained in:
Alexander Boriskov 2019-11-29 14:05:28 +03:00 committed by Arsentiy Milchakov
parent cabeeba8c0
commit b17e4216f4
2 changed files with 8 additions and 2 deletions

View file

@ -45,15 +45,16 @@ extension FirstLaunchPresenter: IFirstLaunchPresenter {
case .nothing:
break
}
Statistics.logEvent(kStatOnboardingScreenShow, withParameters: [kStatType: config.statType])
}
func onNext() {
router.onNext()
Statistics.logEvent(kStatOnboardingScreenShow, withParameters: [kStatType: config.statType])
Statistics.logEvent(kStatOnboardingScreenAccept, withParameters: [kStatType: config.statType])
}
func onClose() {
router.onClose()
Statistics.logEvent(kStatOnboardingScreenAccept, withParameters: [kStatType: config.statType])
Statistics.logEvent(kStatOnboardingScreenDecline, withParameters: [kStatType: config.statType])
}
}

View file

@ -48,6 +48,11 @@ class TermsOfUseViewController: MWMViewController {
presenter?.configure()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
presenter?.onAppear()
}
@IBAction func onCheck(_ sender: Checkmark) {
if (privacyPolicyCheck.isChecked && termsOfUseCheck.isChecked){
presenter?.onNext()