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

google-analytics-api

rich-song 제작

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

요약

Google Analytics API integration with managed.

설명

이 스킬이 하는 일

Google Analytics API integration with managed OAuth via Maton. Covers both the Admin API for managing accounts, properties, and data streams, and the Data API for running reports on sessions, users, page views, and conversions.

Handles OAuth token management automatically, so you can query Google Analytics without implementing the full OAuth flow yourself.

사용 시점

  • Pull 30-day traffic report by country for a client site
  • Check which pages get the most views this week
  • Set up a new GA4 property and web data stream
  • Query real-time active users during a product launch
  • List all accessible GA4 properties across accounts

예시 워크플로

입력

User asks: Show me the top 10 pages by views for the last 30 days

에이전트
  1. 1

    Retrieve MATON_API_KEY from environment

  2. 2

    Call GET /google-analytics-admin/v1beta/accountSummaries to find the target property ID

  3. 3

    POST to /google-analytics-data/v1beta/properties/{propertyId}:runReport with pagePath dimension, screenPageViews metric, 30daysAgo date range, and limit 10

  4. 4

    Parse response rows and sort by screenPageViews descending

출력

Ranked list of the top 10 page paths with their view counts

요구 사항

  • MATON_API_KEY environment variable
  • Maton account at maton.ai
  • Google Analytics OAuth connection configured at ctrl.maton.ai

설치

clawhub install rich-song/google-analytics-api

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

링크