GA 질의 이벤트 연결 키 충돌 및 비운영 계측 차단 - #595
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughGA4 측정 ID와 활성화 플래그를 환경 변수로 관리합니다. 명시적으로 활성화되고 측정 ID가 있을 때만 GA4를 렌더링하고 이벤트를 전송합니다. 검색 결과 클릭과 피드백 이벤트의 식별자 필드를 Priority: ➖ Normal — Impact reflects medium issue severity. Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to GA4 now sends events only when explicitly configured, and click and feedback events use the application query identifier for consistent attribution. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
✨ 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 |
관련 이슈
PR 설명
브라우저에서 UUID로 보낸
query_id가 GA4 처리 과정에서 Google 내부 식별자로 치환되어 서버 질의 이벤트와 연결되지 않던 문제를 해결합니다. 아울러 로컬과 Preview 환경의 이벤트가 운영 GA 속성에 유입되지 않도록 계측 활성 조건을 명시적으로 제한합니다.변경 사항
query_result_click,query_feedback의 연결 키를app_query_id로 변경했습니다.NEXT_PUBLIC_ANALYTICS_ENABLED=true이고 측정 ID가 설정된 경우에만 Google 태그와 이벤트 전송을 활성화합니다.리뷰 포인트
app_query_id로 연결됩니다.NEXT_PUBLIC_ANALYTICS_ENABLED=true와 운영NEXT_PUBLIC_GA_MEASUREMENT_ID를 설정해야 합니다.검증