Google Analytics Intelligence
/install google-analytics-intelligence
\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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install google-analytics-intelligence - 安装完成后,直接呼叫该 Skill 的名称或使用
/google-analytics-intelligence触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 381 次。
如何安装 Google Analytics Intelligence?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-analytics-intelligence」即可一键安装,无需额外配置。
Google Analytics Intelligence 是免费的吗?
是的,Google Analytics Intelligence 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Google Analytics Intelligence 支持哪些平台?
Google Analytics Intelligence 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, win32)。
谁开发了 Google Analytics Intelligence?
由 ncreighton(@ncreighton)开发并维护,当前版本 v1.0.0。