Skip to content

Commit

Permalink
Merge pull request #687 from dlwns33/feature/#685
Browse files Browse the repository at this point in the history
feat: 홈 화면 GA (#685)
  • Loading branch information
dlwns33 authored Jan 2, 2024
2 parents e825d57 + bb8b6ea commit 680a6e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NADA-iOS-forRelease/Resouces/Tracking/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ extension Tracking {
static let touchGiveCard = "B1_메인탭_명함주기"
static let touchTakeCard = "B1_메인탭_명함받기"
static let touchAroundMe = "B1_메인탭_내근처의명함"
static let touchBanner = "B1_메인탭_상단배너_"
static let touchMakeCard = "B1_메인탭_명함만들기"
static let touchAd = "B1_메인탭_광고"

static let touchAddByID = "B2 명함받기모달_ID로받기"
static let touchAddByQR = "B2_명함받기모달_QR로받기"
Expand Down Expand Up @@ -114,6 +117,9 @@ extension Tracking {
static let touchCardDetailFanURL1 = "D3_명함상세_덕질_url1"
static let touchCardDetailFanURL2 = "D3_명함상세_덕질_url2"
static let touchCardDetailCompanyURL = "D3_명함상세_직장_url"
static let touchCardDetailTagHelp = "D3_명함상세_태그도움말"
static let touchCardDetailSendTag = "D3_명함상세_태그보내기"


static let touchTagThema = "D4_태그_테마_"
static let touchTagAdjective = "D4_태그_테마_형용사"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class CardDetailViewController: UIViewController {

@IBAction func touchHelpButton(_ sender: UIButton) {
helpDimmedView.isHidden.toggle()
Analytics.logEvent(Tracking.Event.touchCardDetailTagHelp, parameters: nil)
}

@IBAction func touchSendButton(_ sender: UIButton) {
Expand All @@ -65,6 +66,7 @@ class CardDetailViewController: UIViewController {
tagSheet.setEditingTag(adjectiveText: editingAdjectiveTagText, nounText: editingNounTagText, item: editingItem)
tagSheet.modalPresentationStyle = .pageSheet

Analytics.logEvent(Tracking.Event.touchCardDetailSendTag, parameters: nil)
present(tagSheet, animated: true)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,15 @@ extension HomeViewController {
owner.makeVibrate()
let cardcreationcategoryVC = self.moduleFactory.makeCardCreationCategoryVC()
owner.navigationController?.pushViewController(cardcreationcategoryVC, animated: true)
Analytics.logEvent(Tracking.Event.touchMakeCard, parameters: nil)
}.disposed(by: self.disposeBag)

googleAdView.rx.tapGesture()
.when(.recognized)
.withUnretained(self)
.bind { owner, _ in
owner.makeVibrate()
Analytics.logEvent(Tracking.Event.touchAd, parameters: nil)
}.disposed(by: self.disposeBag)
}

Expand Down Expand Up @@ -518,6 +527,7 @@ extension HomeViewController: UICollectionViewDataSource {
return UICollectionViewCell()
}
bannerCell.setData(banners[indexPath.row])
Analytics.logEvent(Tracking.Event.touchBanner + banners[indexPath.row].text.replacingOccurrences(of: " ", with: "_"), parameters: nil)
return bannerCell
}

Expand Down

0 comments on commit 680a6e4

Please sign in to comment.