Repository navigation
feat: prepare and validate GA4 article analytics - #34
Draft
whateveriiwant wants to merge 4 commits into
Draft
whateveriiwant wants to merge 4 commits into
whateveriiwant wants to merge 4 commits into
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.
D1 공개 글에서도 동의한 방문자의 글별 조회, 본문 25/50/75/90% 도달, 이전·다음 이동을 측정하도록 준비합니다. Worker가 승인된 분석 설정과 본문·이동 표식을 합성하고, config 기본 page_view를 문서당 한 번 사용합니다. 기본/PR 빌드는 무수집이며 운영 수집은 명시적 활성화·운영 ID/origin·indexable 조건이 모두 맞아야 시작합니다.
basic 동의 패널과 개인정보 안내 초안을 추가했습니다. 허용 전/거부/저장 실패에는 Google 태그를 로드하지 않고, 철회 시 현재 호스트의 host-only/Domain GA 쿠키를 만료시킵니다. 실제 검증에서 발견한 native 이동 이벤트 누락은 탭당 임시 이동 정보 한 건을 다음 동의한 대상 문서에서 읽어 출발 글의 클릭으로 전송하도록 수정했습니다. 10초 이내만 사용하며 읽을 때 삭제합니다. 저장 실패·차단·목적지 조건 미충족 시 누락 가능성을 안내하고 링크 이동을 지연하지 않습니다.
전용 HTTPS Basic 인증 validation Worker는 테스트 GA와 합성 글·SVG·최소 자산만 사용합니다. 정확한 origin/target/ID/서버 인증/합성 경로 조건에서만 noindex 수집 예외를 허용하고, 일반 stage/production의 noindex 차단은 유지합니다. 운영 D1/R2/CMS/실제 콘텐츠 바인딩은 없습니다. 운영·테스트 관리 화면에서 페이지 로드 조회만 유지하고 다른 자동 측정/history를 OFF로 저장했으며 Event 맞춤 정의 3개를 등록했습니다. 공유·약관·보관·필터는 변경하지 않았습니다.
검증: Astro 0 errors/0 warnings(기존 hints 6), disabled 327페이지/활성 0 및 로컬 production 327페이지/활성 공개 글 125, 클라이언트 모의와 실제 Workers HTMLRewriter 검사 통과. 별도 Playwright 프로필에서 동의/제외/민감 query·hash/철회/다른 탭/저장 실패/태그 차단/긴·짧은·이미지/키보드·새 탭·가운데 클릭을 검사했습니다. 조회·도달·양방향 이동 HTTP 204와 테스트 DebugView의 실제 이벤트·매개변수 수신을 각각 확인했습니다. 실제 BFCache 복원은 관찰하지 못했고 지연 보고서는 대기입니다. raw HAR, 쿠키 값/client ID, 개인 IP, 인증 값은 Git에 포함하지 않습니다.
출시 준비용 draft를 유지합니다. 계정별 계약·국외 처리, 세션/백업 최종 삭제 기준, 안전한 권리 행사 실행 등 기존 출시 조건과 일부 검증이 남아 있습니다. 개인정보 안내는 시행일 미기입 초안입니다. GA4_PRODUCTION_ENABLED/ALLOW_INDEXING 변경, merge, stage/production 배포는 하지 않았으며 운영 지표 목표는 아직 완료가 아닙니다. 전용 validation Worker만 배포했습니다. 상세 증거·공식 근거·남은 조건은 docs/analytics-implementation-plan.md 13절 마지막 기록과 개인정보 운영 문서/인계에 있습니다.
최종 문서 포함 head
4a87e30defc3b0e423c80d1761f00d1124fcd100의 CI 37304849460가 SUCCESS입니다. 구현 커밋be1b2b7의 CI도 별도로 통과했습니다. CI의 CMS/site 배포 단계는 실행하지 않았습니다.