Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. Walkthrough라우트 변경 시 Google Analytics 페이지뷰를 보내기 전에 경로 패턴에 기반해 document.title을 계산·설정하도록 제어 흐름을 추가했습니다. 일치하는 타이틀이 없으면 "THIP"으로 기본값을 사용합니다. 이후 location의 path+search+hash를 조합해 페이지뷰를 전송합니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as User
participant Router as Router
participant Layout as Layout (Layout.tsx)
participant Doc as document
participant GA as sendPageView
User->>Router: 경로 변경
Router->>Layout: location 업데이트
Note over Layout: 경로 패턴 매칭으로 타이틀 결정<br/>(없으면 "THIP")
Layout->>Doc: document.title = 결정된 타이틀
Layout->>GA: sendPageView(path + search + hash)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
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 |
#️⃣연관된 이슈
없음
📝작업 내용
라우트 변경 시 document.title을 경로별로 설정하고, 그 뒤에 sendPageView를 호출하게 수정함.
GA가 라우트마다 다른 제목을 받아서 구분함.
💬리뷰 요구사항
없음
Summary by CodeRabbit