Feature/analytics event logging#233
Conversation
로깅 인프라 추가
|
Warning Review limit reached
More reviews will be available in 41 minutes and 19 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughPR은 사용자 행동 추적을 위한 완전한 분석 이벤트 시스템을 구축합니다. 핵심 Analytics 인프라를 추가하고, UTM 퍼스트-터치 속성을 캡처하며, 채팅·투표·알림 컨트롤러 전반에 로깅을 통합합니다. 데이터 모델은 메시지 첫 번째 플래그, 알림 결과, 투표 취소 옵션, 이모지 동작 추적으로 확장됩니다. ChangesAnalytics Infrastructure and Event Tracking System
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
빌드 성공 |
📌 관련 이슈
🔍 작업 내용
사용자 행동 데이터를 수집하기 위한 두 가지 인프라를 추가했습니다.
JSON 로그로 적재하는 공통 인프라
users테이블에 first-touch로 기록📝 변경 사항
1. 행동 로그 인프라 (
com.ject.vs.analytics)AnalyticsEvent(순수 값 객체) +AnalyticsEventLogger(유일 진입점) 추가user_id,anonymous_id,is_member,platform,occurred_at) 자동주입
action(created/changed/canceled), 채팅unread_total_count합산,
is_first_message판정2. UTM 가입 출처 추적
V14__add_user_signup_source.sql(users에signup_source/medium/campaign/content컬럼),UtmAttribution값 객체,User.assignSignupSource()GET /api/track/visit엔드포인트(TrackingController) +utm_attribution쿠키(first-touch, 30일, httpOnly,UtmCookie)OAuth2LoginSuccessHandler에서 쿠키 읽어 가입에 전달 → 신규 row 생성시에만 출처 기록 →
signup_completed로그에utm_*포함 → 쿠키 만료findOrCreate/socialLogin을 오버로드로 추가해 기존 호출/테스트 호환 유지/api/track/**공개 엔드포인트 등록(SecurityPaths)💬 리뷰어에게
랜딩 시
/api/track/visit를credentials:'include'로 1회 호출해야 컬럼이 채워집니다.미호출 시 가입은 정상이고
signup_*만 null로 남습니다.없음.
Summary by CodeRabbit
릴리스 노트
New Features
Bug Fixes