Skip to content

Commit 65d5414

Browse files
committed
[Feat] #248 - 방문자 모드 GA 이벤트 추가
1 parent 73c6e38 commit 65d5414

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseDiscoveryVC.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ extension CourseDiscoveryVC {
162162
@objc private func pushToCourseSelectVC() {
163163
guard UserManager.shared.userType != .visitor else {
164164
self.showToastOnWindow(text: "러넥트에 가입하면 코스를 업로드할 수 있어요.")
165+
166+
analyze(buttonName: GAEvent.Button.clickJoinInCourseDiscovery)
165167
return
166168
}
167169

@@ -452,10 +454,10 @@ extension CourseDiscoveryVC: ScrapStateDelegate {
452454
}
453455

454456
func didRemoveCourse(publicCourseId: Int) {
455-
// if let index = courseList.firstIndex(where: { $0.id == publicCourseId }) {
456-
// courseList.remove(at: index)
457-
// self.mapCollectionView.reloadData()
458-
// }
457+
// if let index = courseList.firstIndex(where: { $0.id == publicCourseId }) {
458+
// courseList.remove(at: index)
459+
// self.mapCollectionView.reloadData()
460+
// }
459461
// ⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️
460462
// 원래 해당하는 데이터(index) 만 가지고, 그 데이터 삭제 후 courseList를 받아야하는데, 삭제가 이미되어버려서 if let index 부분이 안들어옴
461463
// 왜??? 이미 데이터는 삭제가 되어서 $0.id 랑 publicCourseId 가 같은게 매치가 될 수 없어!!!

Runnect-iOS/Runnect-iOS/Presentation/CourseStorage/VC/CourseStorageVC.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ extension CourseStorageVC {
216216

217217
guard UserManager.shared.userType != .visitor else {
218218
self.showSignInRequestEmptyView()
219+
analyze(buttonName: GAEvent.Button.clickJoinInStorage)
219220
return
220221
}
221222

Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/MyPageVC.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ extension MyPageVC {
293293
private func setLayout() {
294294
guard UserManager.shared.userType != .visitor else {
295295
self.showSignInRequestEmptyView()
296+
analyze(buttonName: GAEvent.Button.clickJoinInMyPage)
296297
return
297298
}
298299

0 commit comments

Comments
 (0)