diff --git a/Stepic/AppDelegate.swift b/Stepic/AppDelegate.swift index 7e1c403a54..9257a0dbbf 100644 --- a/Stepic/AppDelegate.swift +++ b/Stepic/AppDelegate.swift @@ -64,9 +64,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { if !DefaultsContainer.launch.didLaunch { AnalyticsReporter.reportEvent(AnalyticsEvents.App.firstLaunch, parameters: nil) AnalyticsReporter.reportAmplitudeEvent(AmplitudeAnalyticsEvents.Launch.firstTime) - } else { - AnalyticsReporter.reportAmplitudeEvent(AmplitudeAnalyticsEvents.Launch.sessionStart) } + AnalyticsReporter.reportAmplitudeEvent(AmplitudeAnalyticsEvents.Launch.sessionStart) if StepicApplicationsInfo.inAppUpdatesAvailable { checkForUpdates() diff --git a/Stepic/CardStepPresenter.swift b/Stepic/CardStepPresenter.swift index 92fc25c4af..03f24c84ce 100644 --- a/Stepic/CardStepPresenter.swift +++ b/Stepic/CardStepPresenter.swift @@ -77,6 +77,7 @@ class CardStepPresenter { view?.updateQuiz(with: quizViewController) quizViewController.isSubmitButtonHidden = true + AnalyticsReporter.reportAmplitudeEvent(AmplitudeAnalyticsEvents.Steps.stepOpened, parameters: ["step": step.id, "type": step.block.name]) } func problemDidLoad() {