본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

native-google-analytics

codeninja23 제작

Web & Frontend Development
390clawskills.sh가 보고한 다운로드 수
18스타
1조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Query Google Analytics 4 (GA4) data directly via the Analytics Data API.

설명

이 스킬이 하는 일

Queries Google Analytics 4 data directly via the Analytics Data API. Supports metrics like pageviews, sessions, users, bounce rate, and conversions across custom date ranges, dimensions, and filters. Calls the API directly without a third-party proxy.

Queries GA4 directly via the official API without requiring the Analytics UI or a third-party data connector.

사용 시점

  • Check which blog posts got the most traffic last month
  • Compare sessions by traffic source after a campaign launch
  • Find landing pages with high bounce rates
  • Break down visitors by country or device type
  • Pull conversion data by campaign name for a report

예시 워크플로

입력

User asks: What were my top 10 pages by pageviews this January?

에이전트
  1. 1

    Reads GA4_PROPERTY_ID from environment

  2. 2

    Calls ga4_query.py with --metrics screenPageViews --dimension pagePath --start 2026-01-01 --end 2026-01-31 --limit 10

  3. 3

    Authenticates using GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and GOOGLE_REFRESH_TOKEN

  4. 4

    Sends request to analyticsdata.googleapis.com

  5. 5

    Returns formatted table of pages and their pageview counts

출력

A ranked table of page paths with pageview totals for January 2026

요구 사항

  • Google Cloud project with Analytics Data API enabled
  • OAuth 2.0 client credentials (Client ID and Client Secret) from Google Cloud Console
  • GA4 property ID from Google Analytics Admin settings
  • OAuth refresh token generated via local browser login flow
  • google-auth-oauthlib Python package installed

설치

clawhub install codeninja23/native-google-analytics

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크