google-analytics
Installation
SKILL.md
Google Analytics
Architecture
ga4 is a standalone Python CLI that wraps three GA4 APIs:
- Data API (v1beta + v1alpha) —
ga4 data …— reporting, realtime, metadata, funnels, audience exports - Admin API (v1beta + v1alpha) —
ga4 admin …— accounts, properties, streams, key events, custom dims/metrics, measurement secrets, links, audiences, access bindings, annotations - Measurement Protocol —
ga4 mp …— event ingestion (send + validate against debug endpoint)
All commands emit JSON to stdout with indent=2. Errors go to stderr as plain text with exit 1. Destructive operations require --yes/-y on the CLI; the skill adds an additional user-confirmation layer (see Destructive operations below).
Auth is OAuth-user-only via ga4 auth login --client-secret <Desktop-OAuth-client.json>. The CLI owns its own state at ~/.config/skills/ga4/ (not under the skill's path — ga4 is usable outside this skill).