Repository navigation
fix: URL 로 들어온 자동 검색도 search 이벤트로 측정 - #87
Merged
Merged
Conversation
북마클릿·공유 링크로 들어오면 첫 검색이 자동으로 실행되지만 trackSearch 를 부르지 않아 GA search 수에서 빠졌고 entry_ref=bm 도 page_view 에만 남았다. - 자동 첫 검색에서도 검색 버튼과 같은 범위 규칙(single/all/group)으로 search 이벤트를 보낸다 - 범위 계산을 trackSearchScope 로 모아 검색 버튼과 함께 쓴다 - 첫 검색 판단은 도서관 목록이 준비됐을 때 한 번만 한다. 제목 없이 열린 뒤 뒤로 가기로 제목이 생겼을 때 의존값이 바뀌면 검색이 한 번 더 실행될 수 있었다 - 뒤로 가기 재검색은 측정하지 않는다
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.
요약
GA MCP 로 이번 주 북마클릿 검색 수를 조회하다 발견했습니다. 북마클릿·공유 링크로 들어오면 첫 검색이 자동으로 실행되지만
trackSearch를 부르지 않아 GAsearch수에서 빠졌고,entry_ref=bm도page_view에만 남았습니다.변경
useSearchManager: 자동 첫 검색에서도search이벤트를 보냅니다. 범위는 검색 버튼과 같은 규칙입니다 (도서관 지정single, 전체all, 내 도서관·필터group).trackSearchScope로 모아 검색 버튼과 함께 씁니다.Test Plan
npm run typecheck통과npx vitest run: 232개 통과 (새 테스트 4개: 북마클릿 group 1회, 내 도서관 없으면 미측정, 공유 링크 single, 뒤로 가기 미측정)search이벤트, 하루 뒤search × entry_ref에bm