Repository navigation
fix: connect GA4 events and prevent duplicate pageviews - #252
Merged
Merged
Conversation
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.
기존 GTM 컨테이너가 현재 계정에 없어 관리 가능한
GTM-T7H7JNZ5로 교체합니다. 기존 GA4 측정 IDG-SW73FSL7LQ는 유지하고, 게시한 GTM 버전 2에서view_post와search를 정확히 일치하는 맞춤 이벤트로 전송합니다.SPA 이동의 수동
page_view발행을 제거해 초기 로드·History 변화의 GA4 자동 측정만 사용합니다. 맞춤 이벤트에 현재 주소와 제목을 함께 전달하고, 운영 규칙을 문서화했습니다.search는 기존 동작대로 검색 결과를 선택할 때 발생합니다.검증: lint·type-check·프로덕션 빌드, 단위/SEO 검사 57개, 브라우저 검사 87개 통과. GTM 공개 버전의 목적지·매개변수·실행 조건, 사용자 제공 데이터 비활성화를 확인했습니다. GitHub Pages 배포 후 첫 접속·글 이동·검색 결과 이동·뒤로 가기에서 화면당
page_view1건(총 4건),view_post3건,search1건을 확인했습니다. 모든 수집 요청이 기존 GA4로 HTTP 204 응답했으며 검색어 JWT·결과 수 7·현재 페이지 주소와 제목도 일치했습니다. GA4 보고서 UI 반영과 수집 전송 검증은 별개입니다.