[D2C-44] 사용자 행동 이벤트 로그 발생 로직 구현#22
Merged
Merged
Conversation
- add frontend event log types and API client - record product list and product detail behavior events - record cart and checkout interaction events - record order history, coupon wallet, and review page events - keep event logging failures from blocking user flows
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.
개요
D2C-44에서는 D2C-43에서 구현한
POST /eventsAPI를 프론트엔드 주요 사용자 행동 지점에 연결했습니다.본 PR에서는 상품 목록, 상품 상세, 장바구니, 체크아웃, 주문 내역, 쿠폰함, 리뷰 작성 화면에서 발생하는 페이지 진입 및 주요 버튼 클릭 이벤트를
event_logs에 저장하도록 구현합니다. 이를 통해 이후 로그/검증 단계에서 사용자 행동 이벤트를 기반으로 운영계 데이터와 이벤트 로그 간 흐름을 점검할 수 있는 기반을 마련합니다.포함 범위
프론트엔드 이벤트 로그 공통 타입
user_id,session_id,entity_type,entity_idnullable 처리properties를 이벤트별 확장 필드로 구성프론트엔드 이벤트 로그 API 클라이언트
POST /events호출 함수 추가event_type = user_behavior설정source = frontend설정null반환상품 목록 사용자 행동 이벤트
product_list_viewed기록product_add_to_cart_clicked기록상품 상세 사용자 행동 이벤트
product_detail_viewed기록product_add_to_cart_clicked기록장바구니 사용자 행동 이벤트
cart_viewed기록cart_quantity_change_clicked기록cart_item_remove_clicked기록체크아웃 사용자 행동 이벤트
checkout_started기록coupon_apply_clicked기록order_create_clicked기록payment_success_clicked기록payment_fail_clicked기록주문 내역 사용자 행동 이벤트
order_history_viewed기록쿠폰함 사용자 행동 이벤트
coupon_wallet_viewed기록리뷰 작성 사용자 행동 이벤트
review_create_page_viewed기록review_submit_clicked기록검증 결과
프론트엔드 타입 체크를 실행하여 정상 통과를 확인했습니다.
프론트엔드 빌드를 실행하여 정상 통과를 확인했습니다.
백엔드 전체 테스트를 실행하여 정상 통과를 확인했습니다.
수동 확인 항목:
브랜치 통합 방식
이번 PR의 통합 흐름은 아래와 같습니다.
develop병합 후에는 프론트엔드 주요 사용자 행동 이벤트 로그 발생 로직이 로그/검증 스프린트에 반영됩니다.향후 브랜치 운영 원칙
로그/검증 단계에서는 아래 브랜치 운영 원칙을 유지합니다.
develop에서 분기develop으로 개별 PR 생성develop을main에 병합main은 배포 기준 브랜치로 유지체크리스트
develop기준으로 분기