ga4-api
Use when working with Google Analytics 4 API - GA4 reporting, analytics data queries, property management, Measurement Protocol, or event tracking. Also use when querying GA4 dimensions, metrics, or setting up server-side analytics.
| Model | Source |
|---|---|
| sonnet | pack: google-apis |
Full Reference
ββ π§ ga4-api ββββββββββββββββββββββββββββββββββββ β Use when working with Google Analytics 4 API -β¦ β ββββββββββββββββββββββββββββββββββββββββββββββββββ
GA4 API
Section titled βGA4 APIβGA4 exposes three APIs: Data API v1beta (reporting queries), Admin API v1beta (property and configuration management), and Measurement Protocol (server-side event ingestion). All three are covered in the reference docs below. Data API v1beta and Admin API v1beta are production-stable; v1alpha variants are preview-only and may have breaking changes.
Quick Reference
Section titled βQuick Referenceβ| API | Version | Base URL | Auth |
|---|---|---|---|
| Data API | v1beta (prod), v1alpha (preview) | https://analyticsdata.googleapis.com | Service account or OAuth 2.0 |
| Admin API | v1beta (prod), v1alpha (preview) | https://analyticsadmin.googleapis.com | Service account or OAuth 2.0 |
| Measurement Protocol | Stable | https://www.google-analytics.com/mp/collect | api_secret query param |
Official docs: https://developers.google.com/analytics/devguides/reporting/data/v1
Reference Index
Section titled βReference IndexβLoad only the reference docs relevant to the current task.
| I want to⦠| File |
|---|---|
| Setting up service account or OAuth authentication | reference/auth.md |
| Running reports, filtering, date ranges, batch queries | reference/reporting.md |
| Looking up dimension/metric API names | reference/dimensions-metrics.md |
| Managing properties, streams, key events, custom dims/metrics | reference/admin.md |
| BigQuery export setup and SQL query patterns | reference/admin.md |
| Sending server-side events, validation, consent mode | reference/measurement-protocol.md |
| Token quotas, rate limits, quota monitoring | reference/quotas.md |
| Recent API changes, migration from conversionEvents, stability | reference/changelog.md |
Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.