ga4Query 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, ses...
Install via ClawdBot CLI:
clawdbot install jdrhyne/ga4Query 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)python3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --limit 30
python3 scripts/ga4_query.py --metrics screenPageViews,sessions,totalUsers --dimension pagePath --limit 20
python3 scripts/ga4_query.py --metric sessions --dimension sessionSource --limit 20
python3 scripts/ga4_query.py --metric sessions --dimension landingPage --limit 30
python3 scripts/ga4_query.py --metric sessions --dimension pagePath --start 2026-01-01 --end 2026-01-15
python3 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
Generated Mar 1, 2026
An online retailer monitors top-performing product pages and traffic sources to optimize marketing spend and inventory. They analyze screenPageViews, sessions, and conversions by pagePath and sessionSource to identify high-converting channels and pages.
A media company assesses blog post engagement and landing page effectiveness to guide content strategy. They use metrics like screenPageViews and bounceRate with dimensions such as pagePath and landingPage to measure reader interest and refine topics.
A software-as-a-service provider tracks new user sign-ups and session sources to evaluate campaign ROI and improve onboarding. They query totalUsers, newUsers, and sessions by sessionCampaignName and deviceCategory to allocate resources efficiently.
An event organizer analyzes traffic from marketing campaigns to gauge interest and adjust promotional efforts. They measure sessions and conversions with dimensions like sessionSource and country to target high-potential regions and channels.
A brick-and-mortar store with an online presence reviews website visits and user demographics to correlate digital engagement with in-store sales. They use totalUsers and activeUsers by city and deviceCategory to tailor local advertising.
Businesses like SaaS platforms or membership sites use GA4 data to monitor user retention and acquisition costs. They analyze metrics such as activeUsers and conversions to optimize pricing tiers and reduce churn through targeted campaigns.
Media companies and blogs rely on ad revenue, using GA4 to track pageviews and session sources to maximize ad impressions and click-through rates. They leverage dimensions like pageTitle and sessionMedium to refine content and boost traffic.
Online stores depend on sales conversions, utilizing GA4 to identify top-selling pages and traffic sources. They query screenPageViews and conversions by pagePath and sessionSource to enhance product listings and marketing strategies for higher revenue.
💬 Integration Tip
Ensure all required OAuth environment variables are set correctly before running queries, and use custom date ranges to analyze specific periods for accurate insights.
Quick system diagnostics: CPU, memory, disk, uptime
Google Analytics 4, Search Console, and Indexing API toolkit. Analyze website traffic, page performance, user demographics, real-time visitors, search queries, and SEO metrics. Use when the user asks to: check site traffic, analyze page views, see traffic sources, view user demographics, get real-time visitor data, check search console queries, analyze SEO performance, request URL re-indexing, inspect index status, compare date ranges, check bounce rates, view conversion data, or get e-commerce revenue. Requires a Google Cloud service account with GA4 and Search Console access.
Google Analytics API integration with managed OAuth. Manage accounts, properties, and data streams (Admin API). Run reports on sessions, users, page views, and conversions (Data API). Use this skill when users want to configure or query Google Analytics. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Deploy privacy-first analytics with correct API patterns, rate limits, and GDPR compliance.
Google Analytics 4, Search Console, and Indexing API toolkit. Analyze website traffic, page performance, user demographics, real-time visitors, search queries, and SEO metrics. Use when the user asks to: check site traffic, analyze page views, see traffic sources, view user demographics, get real-time visitor data, check search console queries, analyze SEO performance, request URL re-indexing, inspect index status, compare date ranges, check bounce rates, view conversion data, or get e-commerce revenue. Requires a Google Cloud service account with GA4 and Search Console access.
YouTube Data API v3 analytics toolkit. Analyze YouTube channels, videos, and search results. Use when the user asks to: check YouTube channel stats, analyze video performance, compare channels, search for videos, get subscriber counts, view engagement metrics, find trending videos, get channel uploads, or analyze YouTube competition. Requires a YouTube Data API v3 key from Google Cloud Console.