Repository navigation
[GMSS-358]Mixpanel 동작과 결과 이벤트 추가 - #78
Merged
Merged
Conversation
화면 안에서의 이탈 원인 파악용
soyeonLee126
marked this pull request as ready for review
November 6, 2026 01:51
seunghee17
requested changes
Nov 10, 2026
seunghee17
left a comment
Collaborator
There was a problem hiding this comment.
base 브랜치 develop로 변경 부탁드립니다!
soyeonLee126
changed the base branch from
feature/archive-mixpanel
to
develop
November 11, 2026 09:44
seunghee17
requested changes
Nov 11, 2026
seunghee17
left a comment
Collaborator
There was a problem hiding this comment.
앞선 merge 때문에 충돌이 발생한것 같습니다 확인 부탁드립니다!
…ction-events # Conflicts: # feature/archive/src/test/java/com/gamss/android/feature/archive/ArchiveDetailViewModelTest.kt
seunghee17
approved these changes
Nov 12, 2026
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.
작업 개요
#77에서 추가한 화면 진입 이벤트(
screen_view)만으로는 사용자가 화면 안에서 왜 다음 단계로 넘어가지 않았는지 알 수 없습니다. 이 PR에서는 로그인부터 파쇄까지 주요 동작과 그 결과(성공, 실패, 차단, 취소)를 Mixpanel 이벤트로 기록합니다.#77 위에 올린 PR이라 base를
feature/archive-mixpanel로 두었습니다. #77이 머지되면 base를develop으로 바꾸겠습니다.작업 유형
변경 사항
domain/.../analytics/AnalyticsEvent.kt의 상수로 정의했습니다. iOS와 같은 이름을 써야 하므로 이 파일을 기준 목록으로 둡니다.AnalyticsTracker를 주입해 아래 이벤트를 기록합니다. 이벤트 속성에는 사용자가 작성한 정보(메시지, 검색어, 닉네임)와 대화 id, 카드 id를 포함하지 않습니다.login_click,login_success,login_fail,login_cancelonboarding_next,onboarding_skip(step),onboarding_completehome_submit,home_submit_blocked,home_submit_failchat_send,chat_send_blocked,chat_send_fail,chat_end_request,chat_end_cancel,chat_end_confirm,card_create_success,card_create_fail,card_fold_step(stage),card_set_aside,card_reopenchat_list_card_click,chat_search,chat_delete_confirmarchive_month_change(year_month),archive_card_open,archive_conversation_view,archive_share_click(target),archive_card_discard,archive_clear(모두emotion포함)card_shred_tap(tap_count),card_shred_success,card_shred_fail(모두emotion,scope포함)OnboardingViewModel을 추가했습니다.CardDetailDialog에서 처리하므로, 공유 클릭 콜백을ArchiveDetailScreen을 거쳐 ViewModel까지 연결했습니다.ChattingListViewModel.runSearch()가 실제로 조회했는지를Boolean으로 반환하도록 바꿨습니다. 삭제 뒤 목록을 맞추는 재검색은chat_search로 집계하지 않기 위해서입니다.ScreenView.kt의 속성 키를AnalyticsProperty상수로 바꿨습니다.기록 기준
reduce는 다시 실행될 수 있어서,reduce안에서는 상태 전이 여부만 지역 변수에 담고 이벤트는reduce밖에서 기록합니다.card_set_aside는 한 건입니다.home_submit,chat_send는 위험 표현 검사 전에 기록합니다. 막히면 그 뒤에*_blocked, 전송에 실패하면*_fail을 기록합니다.onboarding_complete는 시작하기 버튼이 아니라 알림 권한 창에서 허용이나 거절을 선택한 시점에 기록합니다. 권한 창을 닫고 시작하기를 다시 누르는 경우 중복 집계를 막기 위해서입니다.archive_conversation_view는 대화 기록을 불러와 화면에 표시한 경우에만 기록합니다.archive_share_click은 연속 탭 방지 판정을 통과한 뒤에 기록합니다.chat_end_request없이card_create_success또는card_create_fail만 기록합니다.관련 이슈
관련 작업 (Notion)
스크린샷 / 동작 화면
UI 변경은 없습니다.
체크리스트
develop으로 설정되어 있다 ([GMSS-358]Mixpanel 연동 및 화면 진입 이벤트 추가 #77 머지 후 변경 예정)feat:,fix:등)을 따른다검증
./gradlew detekt testDebugUnitTest :app:assembleDebug성공. 이벤트 테스트를 모듈마다 추가했습니다(chat 98개, home 37개, archive 24개, login 16개, carddelete 7개, onboarding 3개 통과).archive_month_change(emotion=anger,year_month=2026-10)와chat_search가 기록되는 것을 확인했습니다.chat_search속성에 검색어가 포함되지 않는 것도 확인했습니다.리뷰 요청 사항