← Back to listings

GA4 Skill

Skill

Pull your Google Analytics 4 data from the command line or any AI agent. Top pages, traffic sources, conversions, bounce rate — without opening a dashboard.

★★★★★50 reviewsv1.000
Works with:Python 3.9+Google Analytics Data APIOAuth 2.0 / Service Account
$39
One-time purchase · Lifetime access
Lifetime Access: yours forever
Instant Delivery: download immediately
Commercial License: business use
Pay
stripe
Product Details:
TypeSkill
CategoryAnalytics
Version1.0
LicenseOne-time
Creatormasses.ai

About

Pull your Google Analytics 4 data from the command line or any AI agent. Top pages, traffic sources, conversions, bounce rate — without opening a dashboard.

All standard GA4 metrics: pageviews, sessions, users, bounce rate, conversions
All standard GA4 dimensions: page path, source/medium, country, device, date
Filter syntax: contains, regex, not-equal
Custom date ranges with YYYY-MM-DD format
Up to 25,000 rows per query
Table, JSON, and CSV output formats
OAuth and service account support
31-test suite with mocked API responses

Core Capabilities

Query Google Analytics 4 Data API directly
Metrics: pageviews, sessions, users, bounce rate, conversions, engagement rate, and more
Dimensions: page path, source/medium, landing page, country, device, browser, date
Filter by contains, regex, or not-equal syntax
Set custom date ranges with YYYY-MM-DD format
Return up to 25,000 rows per query
Output as human-readable table, JSON, or CSV
Load credentials from config.yaml or environment variables
Supports both OAuth and service account authentication
Works from CLI, cron jobs, AI agents, or any Python script

What's Included

ga4_auth.py
OAuth URL generator and token exchange. Supports service accounts too.
ga4_query.py
Full CLI with 10+ flags. Metrics, dimensions, filters, date ranges, output format.
config.yaml template
Property ID, credentials, and output defaults. No code edits needed.
install.sh
One-command setup with virtual environment creation.
31-test suite
Mocked API responses — runs fully without credentials or live API access.
Full docs
Setup guide, query pattern cookbook, error troubleshooting guide.

Requirements

Python 3.9+
Google account with access to a GA4 property
Google Cloud project with Google Analytics Data API enabled (free tier)
macOS or Linux (Windows via WSL)