docs: GA4와 Clarity 방문 데이터를 UTM별로 조회하는 스크립트와 안내 - #19
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.
무엇을
GA4와 Clarity 방문 데이터를 유입 경로(UTM)별로 조회하는 읽기 전용 스크립트와 그 안내를 추가합니다.
scripts/analytics-report.sh ga [일수] [캠페인]: GA4, 기본 최근 7일scripts/analytics-report.sh clarity [일수]: Clarity, 최근 1~3일AGENTS.md"검색엔진과 방문 분석" 아래 "방문 데이터 조회" 절: 인증 방식, 호출 한도, 반영 지연, 권한 회수 방법왜
검증
ga 7,ga 7 autorag-agent-intro(캠페인 필터), 없는 서비스 계정(오류 문구와 exit 1),clarity 1, 잘못된 인자(사용법을 stderr로 출력하고 exit 1)AGENTS.md와scripts/만 바꿨습니다.인증 구조
nomadamas-analytics의 서비스 계정ga-reader를 가장합니다. 이 서비스 계정은 GA4 속성의 뷰어이고, 토큰 발급 권한은 조직 공용 계정에만 있습니다. 스크립트는gcloud auth list에서 권한이 있는 계정을 찾아 씁니다.CLARITY_API_TOKEN환경변수를 쓰고, 없으면agents-env에서 꺼냅니다. 토큰은 출력하지 않습니다.리뷰 포인트