Conversation
🔧 Electron Build Results✅ macOS
✅ Windows
This is an automated comment. |
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.
GA4 이벤트/퍼널 로깅 추가
PMF/퍼널/리텐션 측정용으로 Electron renderer에 GA4(G-Measurement ID) 기반 이벤트 로깅을 추가했습니다.
주요 변경사항
src/renderer/src/shared/lib/analytics/ga4.ts: gtag.js 로드,page_view/custom event 전송,user_id세팅 지원src/renderer/src/shared/lib/analytics/events.ts:ga.md이벤트 스펙을 함수로 래핑해 이벤트명/파라미터 일관성 확보page_view전송src/renderer/src/app/providers/App.tsx:router.subscribe()기반으로 라우팅 변경마다page_view전송ga.md기준)sign_up_completesrc/renderer/src/entities/user/api/use-verify-email-mutation.ts/auth/verify-email응답timestamp를signupCompletedAt으로 저장(리텐션 앵커)localStorage.clear()이후에도signupCompletedAt및 GA 플래그 보존onboarding_entersrc/renderer/src/pages/onboarding-init-page/index.tsxmeasure_page_enter,bad_posture_enter,posture_recoveredsrc/renderer/src/pages/main-page/index.tsxmeasure_start,first_measure_start,meaningful_use(7일 이후 1회)src/renderer/src/entities/session/api/use-create-session-mutation.tsmeasure_endsrc/renderer/src/entities/session/api/use-stop-session-mutation.tswidget_toggle,widget_visibility_endsrc/renderer/src/widgets/widget/lib/useWidget.tsnotification_togglesrc/renderer/src/features/notification/ui/NotificationModal.tsxVITE_GA_ENABLE_IN_DEV=true일 때 dev에서도 GA 활성화 +debug_mode: truevite.config.mts:envDir설정으로 repo 루트/.env를 renderer에서도 인식gtagstub 형태로 변경해서google-analytics.com/g/collect실제 전송 및 DebugView 동작사용 방법
.envVITE_GA_MEASUREMENT_ID=G-XXXXXXXXXXVITE_GA_ENABLE_IN_DEV=true테스트
pnpm run typecheck:renderer통과pnpm run lint:check통과(기존 warning만 존재)참고
download_click은 “다운로드 랜딩 페이지” 트리거가 이 repo에 없어 코드 연결은 제외(이벤트 스펙은ga.md에 존재)