Skip to content

Commit

Permalink
Merge: pull request (#181)
Browse files Browse the repository at this point in the history
Feat: 홈, 온보딩 Mixpanel 로깅
  • Loading branch information
hyesuuou committed Jun 5, 2023
2 parents 4e6f6a8 + 8d739be commit 186b839
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Projects/App/Sources/Screens/Home/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ final class HomeViewController: BaseViewController, View {

extension HomeViewController: MyWorkitHeaderViewDelegate {
func dateButtonDidTap() {
Mixpanel.mainInstance().track(event: "홈_기간설정_Clicked")
let bottomSheetViewController = CalendarBottomSheetViewController()
bottomSheetViewController.modalPresentationStyle = .overFullScreen
bottomSheetViewController.modalTransitionStyle = .crossDissolve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import DesignSystem
import UIKit

import Mixpanel
import ReactorKit

final class OnboardingReactor: Reactor {
Expand Down Expand Up @@ -95,6 +96,12 @@ final class OnboardingReactor: Reactor {
newState.buttonTitle = getButtonTitle(page: page)

case .setNextPage:
if newState.page == 0 {
Mixpanel.mainInstance().track(event: "온보딩_다음버튼(1)_Clicked")
} else if newState.page == 2 {
Mixpanel.mainInstance().track(event: "온보딩_다음버튼(3)_Clicked")
}

if newState.page >= Number.lastPage {
newState.startButtonTap = true
break
Expand Down

0 comments on commit 186b839

Please sign in to comment.