Skip to content

Commit

Permalink
[Feat] #143 - 성취 관련 앰플리튜드 이벤트 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Jul 7, 2023
1 parent 9c424f6 commit dbe1b3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ final class AchievementViewController: UIViewController {

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Achieve.viewAccomplish)

if let today = monthCalendar.calendar.today {
monthCalendar.yearMonthLabel.text = Utils.dateFormatterString(format: I18N.yearMonthTitle, date: today)
monthCalendar.calendar.currentPage = today
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class DetailAchievementViewController: UIViewController {

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Achieve.appearDailyMissionModal(total: self.missionList.count))
if let selectedDate = selectedDate {
requestDetailAPI(date: Utils.dateFormatterString(format: "YYYY-MM-dd", date: selectedDate))
}
Expand All @@ -54,6 +55,7 @@ class DetailAchievementViewController: UIViewController {
let location = touch.location(in: self.view)

if !backGroundView.frame.contains(location) {
AmplitudeAnalyticsService.shared.send(event: AnalyticsEvent.Achieve.closeDailyMissionModal)
self.dismiss(animated: true)
}
}
Expand Down

0 comments on commit dbe1b3c

Please sign in to comment.