← Back to Skills Marketplace
ncreighton

Google Analytics Intelligence

by ncreighton · GitHub ↗ · v1.0.0 · MIT-0
macoslinuxwin32 ✓ Security Clean
381
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install google-analytics-intelligence
Description
Analyze GA4 data, detect traffic anomalies, and generate actionable growth recommendations. Use when the user needs revenue tracking, anomaly detection, or t...
README (SKILL.md)

\r \r

Overview\r

\r Google Analytics Intelligence is a comprehensive revenue tracking and growth optimization skill that transforms raw GA4 data into actionable business intelligence. This skill automatically pulls real-time analytics from your Google Analytics 4 property, applies statistical anomaly detection to identify unusual traffic patterns, generates professional reports, and suggests data-driven growth actions.\r \r

Why This Matters\r

\r Modern businesses generate massive amounts of analytics data but lack the time to analyze it deeply. This skill bridges that gap by:\r \r

  • Automating data extraction from GA4 via the Google Analytics Data API\r
  • Detecting anomalies using statistical methods (standard deviation, trend analysis)\r
  • Generating professional reports with visualizations and insights\r
  • Suggesting growth actions based on traffic patterns and conversion data\r
  • Integrating with Slack for real-time alerts on significant changes\r
  • Supporting WordPress, Shopify, and custom web properties through GA4 universal tracking\r \r Perfect for marketing teams, SaaS founders, e-commerce managers, and growth analysts who need intelligence without manual dashboard analysis.\r \r ---\r \r

Quick Start\r

\r Try these prompts immediately to see the skill in action:\r \r

Example 1: Weekly Analytics Summary\r

Analyze my GA4 data for the last 7 days and generate a comprehensive \r
report showing page views, users, bounce rate, and conversion metrics. \r
Include a comparison to the previous week and flag any significant changes.\r
```\r
\r
### Example 2: Anomaly Detection Alert\r
```\r
Check my GA4 traffic for the last 30 days and identify any unusual patterns \r
or spikes. Tell me which pages or traffic sources show anomalies, and suggest \r
what might have caused them.\r
```\r
\r
### Example 3: Growth Recommendations\r
```\r
Based on my GA4 data, what are my top 5 performing pages by engagement? \r
Generate 3 specific growth actions I could take to increase traffic to \r
underperforming pages.\r
```\r
\r
### Example 4: Revenue Tracking Deep Dive\r
```\r
Pull conversion and revenue data from GA4 for Q4 2024. Show me conversion \r
rates by traffic source, average order value by device type, and identify \r
which channels drive the most revenue per visitor.\r
```\r
\r
### Example 5: Real-Time Dashboard Export\r
```\r
Create a Slack-ready summary of today's GA4 performance metrics including \r
active users, top pages, bounce rate, and conversion funnel status. Alert \r
me if anything is outside normal ranges.\r
```\r
\r
---\r
\r
## Capabilities\r
\r
### 1. **Real-Time Data Extraction**\r
Connects directly to Google Analytics 4 via the official Google Analytics Data API (v1beta). Pulls:\r
- User metrics (active users, new users, returning users, user engagement)\r
- Page/screen metrics (page views, scroll depth, time on page)\r
- Traffic source data (organic, direct, referral, paid, social)\r
- Conversion metrics (transactions, revenue, goal completions)\r
- Device and demographic breakdowns\r
- Custom event tracking data\r
\r
**Usage Example:**\r
```\r
Pull all conversion events from my GA4 property for the last 30 days, \r
broken down by traffic source and device type. Include revenue data.\r
```\r
\r
### 2. **Statistical Anomaly Detection**\r
Applies multiple detection methods:\r
- **Z-score analysis** (identifies values >2 standard deviations from mean)\r
- **Trend detection** (compares week-over-week and month-over-month changes)\r
- **Seasonal adjustment** (accounts for day-of-week and seasonal patterns)\r
- **Threshold-based alerts** (custom rules for your business metrics)\r
\r
Flags anomalies with severity levels (minor, moderate, critical).\r
\r
**Usage Example:**\r
```\r
Run anomaly detection on my bounce rate for the last 90 days. \r
Show me which days had unusual patterns and what the normal range is.\r
```\r
\r
### 3. **Professional Report Generation**\r
Creates publication-ready reports including:\r
- Executive summary with key metrics and insights\r
- Trend visualizations (line charts, bar charts)\r
- Comparison tables (current vs. previous period)\r
- Anomaly highlights with context\r
- Conversion funnel analysis\r
- Traffic source attribution\r
- Device and user behavior breakdowns\r
- Export to PDF, HTML, or Markdown\r
\r
**Usage Example:**\r
```\r
Generate a professional monthly report for January 2025 showing all key \r
metrics, anomalies, and trends. Format it for sharing with stakeholders.\r
```\r
\r
### 4. **Growth Recommendations Engine**\r
AI-powered suggestions based on:\r
- Identifying high-engagement pages and replicating their characteristics\r
- Spotting underperforming content and optimization opportunities\r
- Analyzing traffic source efficiency and budget allocation\r
- Detecting conversion bottlenecks in user funnels\r
- Recommending content topics based on search traffic patterns\r
- Suggesting A/B test ideas based on performance gaps\r
\r
**Usage Example:**\r
```\r
Analyze my top 10 pages by engagement. What do they have in common? \r
Suggest 5 specific changes I could make to my lowest-performing pages \r
to increase engagement.\r
```\r
\r
### 5. **Slack Integration**\r
Sends automated alerts and summaries:\r
- Daily/weekly digest reports\r
- Real-time anomaly alerts (when significant changes occur)\r
- Conversion milestone notifications\r
- Traffic source performance summaries\r
- Custom metric monitoring\r
\r
**Usage Example:**\r
```\r
Set up a daily Slack alert that sends me a summary of yesterday's GA4 \r
metrics every morning at 8 AM, with alerts if bounce rate exceeds 60% \r
or conversions drop below 5.\r
```\r
\r
### 6. **Multi-Property Support**\r
Works with:\r
- Standard GA4 web properties\r
- WordPress sites with GA4 tracking\r
- Shopify stores with GA4 integration\r
- Mobile apps with GA4 Firebase integration\r
- Custom event implementations\r
\r
---\r
\r
## Configuration\r
\r
### Required Environment Variables\r
\r
Set these in your environment or `.env` file:\r
\r
```bash\r
# Google Analytics Configuration\r
GOOGLE_ANALYTICS_PROPERTY_ID=123456789          # Your GA4 Property ID (numeric)\r
GOOGLE_ANALYTICS_API_KEY=AIzaSy...              # Google Cloud API Key with GA4 access\r
GOOGLE_ANALYTICS_VIEW_ID=ga4:123456789          # GA4 view identifier\r
\r
# Optional: Service Account for advanced access\r
GOOGLE_SERVICE_ACCOUNT_JSON=/path/to/service-account.json\r
\r
# Slack Integration (optional)\r
SLACK_WEBHOOK_URL=https://hooks.slack.com/...   # For alert notifications\r
SLACK_CHANNEL=#analytics                        # Default channel\r
\r
# Configuration Options\r
ANOMALY_SENSITIVITY=2.0                         # Z-score threshold (1.5-3.0)\r
REPORT_TIMEZONE=America/New_York                # Your timezone\r
CURRENCY=USD                                    # For revenue metrics\r
```\r
\r
### Setup Instructions\r
\r
#### Step 1: Enable Google Analytics API\r
1. Go to [Google Cloud Console](https://console.cloud.google.com)\r
2. Create a new project or select existing\r
3. Enable "Google Analytics Data API" (v1beta)\r
4. Create an API key (Credentials → Create Credentials → API Key)\r
5. Copy the API key to `GOOGLE_ANALYTICS_API_KEY`\r
\r
#### Step 2: Get Your Property ID\r
1. Log into [Google Analytics 4](https://analytics.google.com)\r
2. Go to Admin → Property Settings\r
3. Copy your Property ID (numeric value)\r
4. Set `GOOGLE_ANALYTICS_PROPERTY_ID`\r
\r
#### Step 3: Optional - Slack Integration\r
1. Create a Slack App at [api.slack.com](https://api.slack.com)\r
2. Enable Incoming Webhooks\r
3. Create a webhook for your target channel\r
4. Copy webhook URL to `SLACK_WEBHOOK_URL`\r
\r
#### Step 4: Verify Connection\r
```\r
Test the GA4 connection by running a simple query to fetch \r
yesterday's page views. The skill will confirm API access is working.\r
```\r
\r
---\r
\r
## Example Outputs\r
\r
### Output 1: Weekly Analytics Report\r
\r
```\r
GOOGLE ANALYTICS WEEKLY REPORT\r
Week of Jan 20-26, 2025\r
================================\r
\r
KEY METRICS\r
-----------\r
Total Users:           12,847 (↑ 8.3% vs previous week)\r
New Users:             3,421 (↑ 12.1%)\r
Sessions:              18,934 (↑ 6.2%)\r
Pageviews:             67,234 (↑ 5.8%)\r
Avg Session Duration:  2m 34s (↓ 0.5%)\r
Bounce Rate:           42.3% (↑ 1.2%)\r
Conversion Rate:       3.2% (↑ 0.4%)\r
Total Revenue:         $18,450 (↑ 15.2%)\r
\r
TOP PAGES (by pageviews)\r
------------------------\r
1. /pricing                    8,234 views (12.2% of total)\r
2. /features                   7,856 views (11.7%)\r
3. /blog/seo-guide-2025        6,421 views (9.5%)\r
4. /                           5,987 views (8.9%)\r
5. /case-studies               4,234 views (6.3%)\r
\r
TRAFFIC SOURCES\r
---------------\r
Organic Search:   45.2% (7,234 users, $12,340 revenue)\r
Direct:          28.1% (4,567 users, $4,230 revenue)\r
Referral:        15.3% (2,345 users, $1,567 revenue)\r
Social:           8.2% (1,234 users, $456 revenue)\r
Paid Search:      3.2% (467 users, $-1,143 cost)\r
\r
ANOMALIES DETECTED\r
------------------\r
⚠️  MODERATE: Bounce rate on /blog increased to 68% (normal: 45%)\r
   Possible cause: Recent traffic spike from Reddit\r
   \r
🔴 CRITICAL: Conversion rate dropped 22% on /checkout on Jan 24\r
   Possible cause: Payment gateway timeout issues\r
   Action: Check payment provider logs immediately\r
\r
GROWTH RECOMMENDATIONS\r
----------------------\r
1. Replicate /pricing page design on /features (12% higher engagement)\r
2. Create 3 more blog posts in "SEO" category (top performer)\r
3. Increase organic traffic investment (highest ROI at $1.70 per user)\r
4. A/B test CTA button color on /pricing (current: 2.8% conversion)\r
5. Reduce paid search spend (negative ROI, $2.45 cost per conversion)\r
```\r
\r
### Output 2: Anomaly Detection Alert\r
\r
```\r
🚨 ANOMALY DETECTION ALERT\r
Time: Jan 27, 2025 - 2:34 PM\r
================================\r
\r
CRITICAL ANOMALIES\r
-------------------\r
1. Traffic Spike on /product-launch page\r
   Current: 4,234 pageviews (vs. avg 234)\r
   Severity: CRITICAL (Z-score: 18.2)\r
   Likely Cause: Product hunt launch or press coverage\r
   Recommendation: Monitor conversion rate, ensure server capacity\r
\r
2. Bounce Rate Increase (Overall)\r
   Current: 48.2% (vs. avg 42.1%)\r
   Severity: MODERATE (Z-score: 2.3)\r
   Affected Pages: /blog (68%), /resources (55%)\r
   Recommendation: Check page load times, review recent content changes\r
\r
POSITIVE ANOMALIES\r
-------------------\r
✅ Conversion Rate Spike\r
   Current: 4.1% (vs. avg 3.2%)\r
   Severity: POSITIVE\r
   Likely Cause: New landing page variant performing well\r
   Recommendation: Continue monitoring, consider rolling out to all traffic\r
\r
NORMAL RANGES (Last 30 Days)\r
----------------------------\r
Metric                  Min    Avg    Max    Current  Status\r
Users/Day              234    567    892    612      ✅ Normal\r
Sessions/Day           345    834   1,234   876      ✅ Normal\r
Bounce Rate            38%    42%    48%    48.2%    ⚠️  High\r
Conversion Rate       2.1%   3.2%   4.5%    4.1%    ✅ Good\r
Avg Session Duration  1m45s  2m34s  3m12s  2m41s    ✅ Normal\r
```\r
\r
### Output 3: Growth Recommendations\r
\r
```\r
📈 GROWTH RECOMMENDATIONS\r
Based on GA4 Analysis (Last 90 Days)\r
================================\r
\r
QUICK WINS (Implement This Week)\r
---------------------------------\r
1. Replicate /pricing page design on /features\r
   Impact: +12% engagement, +0.8% conversion\r
   Effort: Medium (2-3 days)\r
   Estimated Revenue Lift: +$2,400/month\r
\r
2. Expand "SEO Guides" blog category\r
   Current: 3 posts generating 18K pageviews\r
   Recommendation: Create 5 more posts in this series\r
   Estimated Impact: +45K pageviews/month, +$3,200 revenue\r
\r
3. Optimize /checkout funnel\r
   Current: 22% drop-off at payment step\r
   Recommendation: A/B test guest checkout, reduce form fields\r
   Estimated Impact: +1.4% conversion rate = +$4,100/month\r
\r
MEDIUM-TERM INITIATIVES (30-90 Days)\r
-------------------------------------\r
4. Paid Search Optimization\r
   Current ROI: -$0.45 per user\r
   Recommendation: Pause underperforming campaigns, reallocate budget\r
   Potential Savings: +$2,100/month\r
\r
5. Content Repurposing Strategy\r
   Top Pages: /pricing (8.2K views), /features (7.9K views)\r
   Recommendation: Create video, infographic, and email versions\r
   Estimated Impact: +25% engagement, reach new audiences\r
\r
STRATEGIC OPPORTUNITIES (90+ Days)\r
-----------------------------------\r
6. Organic Search Dominance\r
   Current: 45.2% of traffic, highest ROI ($1.70/user)\r
   Recommendation: Implement comprehensive SEO strategy\r
   Target: Increase organic to 60% of traffic\r
   Projected Revenue: +$8,400/month\r
\r
7. Email Nurture Sequence\r
   Opportunity: 28.1% direct traffic suggests repeat visitors\r
   Recommendation: Build email list, create nurture sequence\r
   Projected Conversion Lift: +0.6% = +$2,800/month\r
\r
ESTIMATED COMBINED IMPACT\r
--------------------------\r
Quick Wins:         +$9,700/month\r
Medium-term:        +$2,100/month\r
Strategic:          +$11,200/month\r
Total Potential:    +$23,000/month revenue increase\r
```\r
\r
---\r
\r
## Tips & Best Practices\r
\r
### 1. **Set Up Baseline Metrics First**\r
Before relying on anomaly detection, run the skill for 30 days to establish normal ranges. This improves accuracy of anomaly flagging.\r
\r
```\r
Run a 30-day baseline analysis to understand my normal traffic patterns, \r
conversion rates, and seasonal variations before enabling alerts.\r
```\r
\r
### 2. **Use Segmentation for Deeper Insights**\r
Don't just look at overall metrics—segment by traffic source, device, or user type to find hidden patterns.\r
\r
```\r
Compare conversion rates across all traffic sources. Which source converts \r
best? Which needs optimization? Show me the funnel for each.\r
```\r
\r
### 3. **Combine with Other Data Sources**\r
Correlate GA4 data with your CRM, email platform, or ad spend data for complete picture.\r
\r
```\r
I'll provide my ad spend data from Facebook Ads Manager. Cross-reference \r
it with GA4 to calculate true ROI by campaign.\r
```\r
\r
### 4. **Create Custom Events for Your Business**\r
GA4's event tracking is powerful. Define custom events that matter to your business (sign-ups, demo requests, etc.).\r
\r
```\r
Set up custom events in GA4 for: free trial signups, demo requests, \r
and pricing page interactions. Then analyze their impact on revenue.\r
```\r
\r
### 5. **Schedule Regular Reports**\r
Set up weekly or monthly automated reports to Slack or email. This keeps stakeholders informed without manual work.\r
\r
```\r
Generate a weekly report every Monday at 9 AM and send it to my Slack \r
#analytics channel. Include last week's performance vs. previous week.\r
```\r
\r
### 6. **Monitor Seasonality**\r
Adjust your expectations based on seasons. E-commerce sites see spikes in Nov-Dec, SaaS sees slower summers.
Usage Guidance
This skill appears coherent for reading GA4 data and posting alerts to Slack. Before installing: (1) verify what the GOOGLE_ANALYTICS_API_KEY actually allows (prefer a service-account with read-only GA4 scopes and least privilege), (2) treat the SLACK_WEBHOOK_URL as sensitive—anyone with it can post to your channel, and (3) because the skill is instruction-only, review any runtime prompts it asks you to run locally (python3/curl commands) before executing. If you need stronger guarantees, run initial tests on a non-production GA property or a limited-permission service account.
Capability Analysis
Type: OpenClaw Skill Name: google-analytics-intelligence Version: 1.0.0 The skill bundle consists of metadata and a comprehensive instruction set (SKILL.md) for an AI agent to perform Google Analytics 4 (GA4) data analysis and Slack reporting. It requires standard environment variables for API access (GA4 and Slack) and lacks any executable code, obfuscated scripts, or malicious prompt injection patterns. The instructions are consistent with the stated purpose of business intelligence and anomaly detection.
Capability Assessment
Purpose & Capability
Name/description (GA4 analysis, anomaly detection, Slack alerts) match the declared requirements: a GA4 property ID and API key to read analytics and a Slack webhook for notifications; python3/curl are reasonable helper binaries for an instruction-only skill.
Instruction Scope
SKILL.md describes pulling data from the Google Analytics Data API, running anomaly detection, producing reports, and posting to Slack—these actions are consistent with the declared env vars and binaries. The skill is instruction-only with no embedded code files, so there is no hidden file/credential access in the package itself.
Install Mechanism
No install spec (instruction-only), which minimizes on-disk code execution risk. The skill does not download or install external artifacts.
Credentials
The three required env vars (GOOGLE_ANALYTICS_PROPERTY_ID, GOOGLE_ANALYTICS_API_KEY, SLACK_WEBHOOK_URL) are proportionate to the described functionality. Note: GA4 Data API access is often done via OAuth/service-account credentials rather than a single API key; you should confirm what scopes the provided API key grants and use least privilege.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request elevated or persistent platform privileges. Autonomous invocation is allowed by default but is not combined here with broad unrelated access.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install google-analytics-intelligence
  3. After installation, invoke the skill by name or use /google-analytics-intelligence
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of google-analytics-intelligence skill. - Analyze Google Analytics 4 (GA4) data for actionable insights and growth recommendations. - Automatically detect traffic anomalies using statistical analysis. - Generate professional reports with metrics, trends, and visualizations. - Suggest tailored growth actions based on conversion and engagement data. - Integrate with Slack for real-time alerts and daily/weekly summaries. - Supports revenue tracking and optimization for websites, e-commerce, and mobile apps.
Metadata
Slug google-analytics-intelligence
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Google Analytics Intelligence?

Analyze GA4 data, detect traffic anomalies, and generate actionable growth recommendations. Use when the user needs revenue tracking, anomaly detection, or t... It is an AI Agent Skill for Claude Code / OpenClaw, with 381 downloads so far.

How do I install Google Analytics Intelligence?

Run "/install google-analytics-intelligence" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Google Analytics Intelligence free?

Yes, Google Analytics Intelligence is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Google Analytics Intelligence support?

Google Analytics Intelligence is cross-platform and runs anywhere OpenClaw / Claude Code is available (macos, linux, win32).

Who created Google Analytics Intelligence?

It is built and maintained by ncreighton (@ncreighton); the current version is v1.0.0.

💬 Comments