Conversation
[FIX] GA 라우트 경로별 title 추가
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. Walkthrough라우트 변경 시 현재 경로를 기반으로 문서 제목을 규칙 매칭으로 결정하고 기본값(“THIP”)을 적용한 뒤, 검색·해시를 포함한 전체 경로로 sendPageView를 호출하도록 Layout의 페이지 뷰 처리 로직을 갱신했습니다. 다국어 라우트별 제목 규칙이 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Router as Router
participant Layout as Layout (useEffect)
participant TitleRules as Title Rules
participant Document as document.title
participant Analytics as sendPageView
Router->>Layout: Route change (pathname, search, hash)
Layout->>TitleRules: Match pathname against regex rules
TitleRules-->>Layout: Matched title or null
Layout->>Document: Set title (matched or "THIP")
Layout->>Analytics: sendPageView(pathname + search + hash)
Note over Layout,Analytics: Executes on each route change
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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 |
이하동일
Summary by CodeRabbit