ga4
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.
Why use this skill?
Query your website traffic, user sessions, and conversion data in OpenClaw with the GA4 skill. Perfect for automated analytics reports.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bobdevibecoder/bobagent-ga4What This Skill Does
The GA4 skill is a powerful integration for OpenClaw that allows users to programmatically interact with their Google Analytics 4 properties. By leveraging the official Google Analytics Data API, this skill acts as a bridge between your agent and your live web traffic statistics. It enables users to fetch granular data such as pageviews, user sessions, acquisition sources, and conversion events without ever leaving the OpenClaw interface. It supports complex queries involving multi-metric selection, dimension breakdowns, custom date ranges, and regex-based filtering, making it an essential tool for performance marketing, SEO audits, and product growth analysis.
Installation
To integrate this skill, follow these steps:
- Execute the installation command:
clawhub install openclaw/skills/skills/bobdevibecoder/bobagent-ga4. - Ensure your Google Cloud Project has the Analytics Data API enabled.
- Configure your environment variables in your OpenClaw setup:
GA4_PROPERTY_ID: The unique identifier for your GA4 property.GOOGLE_CLIENT_ID&GOOGLE_CLIENT_SECRET: Your OAuth credentials.GOOGLE_REFRESH_TOKEN: An authorized refresh token to maintain persistent access.
Use Cases
This skill is ideal for teams needing automated reporting or deep-dive analysis. Typical use cases include:
- Automated Weekly Reports: Automatically generating summaries of top-performing blog posts or landing pages.
- Traffic Source Audits: Identifying which channels (Social, Organic, Referral) are driving the highest session counts.
- Technical SEO Monitoring: Filtering by specific URL patterns to monitor page performance for sub-directories.
- Conversion Tracking: Monitoring goal completions against active user counts to determine funnel health.
Example Prompts
- "Check the performance of my top 10 landing pages from the last 30 days and list their total session counts."
- "What are the primary traffic sources for the /blog/ directory? Please output the results in JSON format."
- "Show me the bounce rate and total active users broken down by city for the month of January 2026."
Tips & Limitations
- Rate Limits: Be mindful of Google's quota limits for the Data API; excessively frequent requests may result in temporary blocks.
- Authentication: Keep your refresh token secure; do not commit it to public version control repositories.
- Filtering: Use the
--filterflag with caution; ensure your regex syntax aligns with the dimensions provided by the Google Analytics Data API schema. - Data Latency: Remember that GA4 data often has a 24-48 hour processing delay; real-time performance is not supported.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bobdevibecoder-bobagent-ga4": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
affiliate-master
Full-stack affiliate marketing automation for OpenClaw agents. Generate, track, and optimize affiliate links with FTC-compliant disclosures and multi-network support.
tweet-ideas-generator
Generates 60 high-impact tweet ideas from reference content across 5 categories. Use when someone wants to extract engaging short-form statements from content for Twitter/X, organized by harsh advice, quotes, pain points, counterintuitive truths, and key insights.
ai-discoverability-audit
Audit how a brand appears in AI-powered search (ChatGPT, Perplexity, Claude, Gemini). Use when user mentions "AI search," "how do I show up in ChatGPT," "AI discoverability," "AEO," "LLM visibility," or wants to understand their brand's AI presence.
positioning-basics
Help founders and marketers nail their positioning. Use when someone mentions "positioning," "value proposition," "who is this for," "how do I describe my product," "messaging," "ICP," "ideal customer," or is struggling to articulate what makes their product different.
polymarket-correlation
Detect mispriced correlations between Polymarket prediction markets. Cross-market arbitrage finder for AI agents.