Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Wable-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3475,7 +3475,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 8;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = HGVD26K7DP;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -3518,7 +3518,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 8;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = HGVD26K7DP;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
10 changes: 10 additions & 0 deletions Wable-iOS/Core/Amplitude/AmplitudeManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ extension AmplitudeManager {
// MARK: - EventTag

enum EventTag: CaseIterable {
case clickQuizBotnavi
case clickQuizSubmit
case clickGetXP
case clickCuration
case clickContentCuration
case clickCommunityBotnavi
case clickViewitBotnavi
case clickHomeBotnavi
Expand Down Expand Up @@ -78,6 +83,11 @@ extension AmplitudeManager {

var value: String {
switch self {
case .clickQuizBotnavi: return "click_quiz_botnavi"
case .clickQuizSubmit: return "click_quiz_submit"
case .clickGetXP: return "click_get_xp"
case .clickCuration: return "click_curation"
case .clickContentCuration: return "click_content_curation"
case .clickCommunityBotnavi: return "click_community_botnavi"
case .clickViewitBotnavi: return "click_viewit_botnavi"
case .clickHomeBotnavi: return "click_home_botnavi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ private extension CurationViewController {
title: item.title,
siteName: item.siteName
) { [weak self] in
AmplitudeManager.shared.trackEvent(tag: .clickContentCuration)
self?.onCellTap?(item.siteURL)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private extension OverviewPageViewModel {
case .teamRank:
AmplitudeManager.shared.trackEvent(tag: .clickRanking)
case .curation:
AmplitudeManager.shared.trackEvent(tag: .clickNews)
AmplitudeManager.shared.trackEvent(tag: .clickCuration)
case .notice:
AmplitudeManager.shared.trackEvent(tag: .clickAnnouncement)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ private extension QuizResultViewController {

private extension QuizResultViewController {
@objc func rewardButtonDidTap() {
AmplitudeManager.shared.trackEvent(tag: .clickGetXP)
let keyWindow = UIApplication.shared.connectedScenes
.compactMap { $0 as? UIWindowScene }
.flatMap { $0.windows }
Expand Down
3 changes: 3 additions & 0 deletions Wable-iOS/Presentation/Quiz/View/QuizViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ private extension QuizViewController {
input: .init(
submitButtonDidTap: submitButton
.publisher(for: .touchUpInside)
.handleEvents(receiveOutput: { _ in
AmplitudeManager.shared.trackEvent(tag: .clickQuizSubmit)
})
.compactMap { [weak self] in self?.correctButton.isSelected }
.eraseToAnyPublisher()
),
Expand Down
4 changes: 2 additions & 2 deletions Wable-iOS/Presentation/TabBar/TabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ extension TabBarController: UITabBarControllerDelegate {
let hasCompleted = checkTodayQuizCompletion()

if !hasCompleted {
AmplitudeManager.shared.trackEvent(tag: .clickQuizBotnavi)
if let viewController = selectedViewController as? UINavigationController {
let quizViewController = QuizViewController(
type: .page(type: .quiz, title: "퀴즈"),
Expand Down Expand Up @@ -203,8 +204,7 @@ extension TabBarController: UITabBarControllerDelegate {
case 1:
AmplitudeManager.shared.trackEvent(tag: .clickCommunityBotnavi)
case 2:
// AmplitudeManager.shared.trackEvent(tag: .clickQuizBotnavi)
break
AmplitudeManager.shared.trackEvent(tag: .clickQuizBotnavi)
case 3:
AmplitudeManager.shared.trackEvent(tag: .clickNewsBotnavi)
case 4:
Expand Down