Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Query Google Analytics 4 (GA4) data via the Analytics Data API. Use when you need to pull website analytics like top pages, traffic sources, user counts, sessions, conversions, or any GA4 metrics/dimensions. Supports custom date ranges and filtering.
.claude/skills/sundial-org-ga4/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -29% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -39% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -68% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -53% | 0% |
Query GA4 properties for analytics data: page views, sessions, users, traffic sources, conversions, and more.
GA4_PROPERTY_ID - Your GA4 property ID (numeric, e.g., "123456789")GOOGLE_CLIENT_ID - OAuth client IDGOOGLE_CLIENT_SECRET - OAuth client secretGOOGLE_REFRESH_TOKEN - OAuth refresh token (from initial auth flow)bashpython3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --limit 30
bashpython3 scripts/ga4_query.py --metrics screenPageViews,sessions,totalUsers --dimension pagePath --limit 20
bashpython3 scripts/ga4_query.py --metric sessions --dimension sessionSource --limit 20
bashpython3 scripts/ga4_query.py --metric sessions --dimension landingPage --limit 30
bashpython3 scripts/ga4_query.py --metric sessions --dimension pagePath --start 2026-01-01 --end 2026-01-15
bashpython3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --filter "pagePath=~/blog/"
Common metrics: screenPageViews, sessions, totalUsers, newUsers, activeUsers, bounceRate, averageSessionDuration, conversions, eventCount
Common dimensions: pagePath, pageTitle, landingPage, sessionSource, sessionMedium, sessionCampaignName, country, city, deviceCategory, browser, date
Default: Table format Add --json for JSON output Add --csv for CSV output
Other measured skills in the registry, with their headline benchmark lift.