[feat] Posthog 이벤트 수정 및 신규 생성#527
Open
chlwhdtn03 wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request expands analytics tracking across the application, including login, map interactions, My Page navigation, and home screen widgets. It also updates review events to include restaurant metadata and adds locale information to app launch logs. Review feedback identifies a bug where college and department IDs were swapped in an analytics event, and suggests improvements for code deduplication and consistent validation of widget IDs.
Comment on lines
+73
to
+79
| val newDepartmentId = userCollegeDepartment.userDepartment.departmentId.toLong() | ||
| val newCollegeId = userCollegeDepartment.userCollege.collegeId.toLong() | ||
|
|
||
| analyticsTracker.track( | ||
| ClickPlzNotMeEvent( | ||
| college = newDepartmentId, | ||
| major = newCollegeId, |
Contributor
There was a problem hiding this comment.
The parameters for ClickPlzNotMeEvent appear to be swapped. newDepartmentId is being passed to college and newCollegeId to major, which contradicts their names and the pattern used in trackMyPageMenu.
Suggested change
| val newDepartmentId = userCollegeDepartment.userDepartment.departmentId.toLong() | |
| val newCollegeId = userCollegeDepartment.userCollege.collegeId.toLong() | |
| analyticsTracker.track( | |
| ClickPlzNotMeEvent( | |
| college = newDepartmentId, | |
| major = newCollegeId, | |
| val collegeId = userCollegeDepartment.userCollege.collegeId.toLong() | |
| val departmentId = userCollegeDepartment.userDepartment.departmentId.toLong() | |
| analyticsTracker.track( | |
| ClickPlzNotMeEvent( | |
| college = collegeId, | |
| major = departmentId, | |
| ), | |
| ) |
Comment on lines
+69
to
+71
| val fileKey = | ||
| appWidgetId?.takeIf { it != AppWidgetManager.INVALID_APPWIDGET_ID } | ||
| ?.let { "appWidget-$it" } |
Contributor
| } | ||
|
|
||
| lifecycleScope.launch { | ||
| val fileKey = "appWidget-$appWidgetId" |
Contributor
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Describe your changes
app_launch에서 현재 설정 언어의localeCode전송click_mypage_menu,popup_event신규 추가change_widgetpayload를restaurant_before,restaurant_after로 변경food_court,the_kitchen은 analytics restaurant payload에서 제외write_review_v2,complete_review_v2에 restaurant 값 전달Issue
To reviewers