-
Notifications
You must be signed in to change notification settings - Fork 1
[#419] PostHog/Firebase 이벤트 누락 보강 (snack_corner / review v2 / mypage / screen_view) #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Hrepay
wants to merge
6
commits into
develop
Choose a base branch
from
fix/419
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8f082da
[#419] 식당 매핑에 snack_corner 값 추가
Hrepay 0697bda
[#419] write/complete_review_v2 이벤트에 restaurants 파라미터 추가
Hrepay 92cdad5
[#419] click_mypage_menu 이벤트에 college/major 파라미터 + logout 값 추가
Hrepay ca4e944
[#419] PostHog screen_view 자동수집 비활성화로 중복 발사 제거
Hrepay 00e5b65
Merge remote-tracking branch 'origin/develop' into fix/419
Hrepay b84c198
[#419] userTapReviewButton 진입 경로에도 write_review_v2 발사 + restaurantNam…
Hrepay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
EATSSU/App/Sources/Data/Firebase/MyPageAnalyticsManager.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| // | ||
| // MyPageAnalyticsManager.swift | ||
| // EATSSU | ||
| // | ||
| // Created by 황상환 on 2026/05/23. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| /// 마이페이지에서 발생하는 주요 이벤트를 Firebase Analytics에 로깅하는 담당자 | ||
| final class MyPageAnalyticsManager { | ||
|
|
||
| // MARK: - Singleton | ||
|
|
||
| static let shared = MyPageAnalyticsManager() | ||
| private init() {} | ||
|
|
||
| // MARK: - Event & Parameter Keys | ||
|
|
||
| private enum Event { | ||
| static let clickMyPageMenu = "click_mypage_menu" | ||
| } | ||
|
|
||
| private enum Parameter { | ||
| static let menu = "menu" | ||
| static let college = "college" | ||
| static let major = "major" | ||
| } | ||
|
|
||
| /// click_mypage_menu 이벤트의 menu 파라미터 값 | ||
| enum Menu: String { | ||
| case notificationSetting = "notification_setting" | ||
| case myInfo = "my_info" | ||
| case myReview = "my_review" | ||
| case inquiry = "inquiry" | ||
| case termsOfUse = "terms_of_use" | ||
| case privacyPolicy = "privacy_policy" | ||
| case creator = "creator" | ||
| case logout = "logout" | ||
| case withdraw = "withdraw" | ||
| } | ||
|
|
||
| // MARK: - Logging Methods | ||
|
|
||
| /// 마이페이지의 메뉴 항목을 클릭했을 때 호출 | ||
| /// - Parameter menu: 클릭한 메뉴 종류 | ||
| func logClickMyPageMenu(menu: Menu) { | ||
| var parameters: [String: Any] = [Parameter.menu: menu.rawValue] | ||
|
|
||
| let userInfo = UserInfoManager.shared.getCurrentUserInfo() | ||
| if let collegeId = userInfo?.collegeId { | ||
| parameters[Parameter.college] = collegeId | ||
| } | ||
| if let departmentId = userInfo?.departmentId { | ||
| parameters[Parameter.major] = departmentId | ||
| } | ||
|
|
||
| AnalyticsService.logEvent(Event.clickMyPageMenu, parameters: parameters) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.