G

google-analytics

Verified

by davila7 · Updated Apr 16, 2026

opus
8in7.4Kout
$0.403m 5s

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

google-analyticsanalyticsga4website-performancetraffic-analysisreporting

See It In Action

1 turns·claude
The project codebase is in your current working directory. Explore the files to understand the code before making changes. homepage launch was yesterday and leadership needs it today — can you check GA4 for last 7 days vs previous 7 and tell me what changed with traffic, landing pages, sources, engagement, and signups

Let me explore what's available in the skill and project to get this set up.

There's cached GA4 data covering the exact 14-day window we need. Let me install deps and run the analysis.

Got all 14 days of data. Here's the full analysis:


GA4 Report: Apr 5-11 vs Mar 29-Apr 4 (Acme SaaS)

1. Traffic Overview

MetricPrevious 7dCurrent 7dChange
Sessions18,92621,497+13.6%
Users14,12316,557+17.2%
New Users4,8136,384+32.6%
Pageviews54,10061,341+13.4%

Traffic is up across the board. The new-user spike (+32.6%) is almost entirely driven by launch day (Apr 11): 4,231 sessions that day alone, more than double the daily average of ~2,800.


2. Landing Pages

PagePrev SessionsCurr SessionsChangeCurr BouncePrev Bounce
/ (homepage)5,2348,742+67.0%51.2%42.1%
/pricing2,4562,345-4.5%31.2%30.5%
/features1,9231,876-2.4%37.8%36.9%
/blog/scaling-teams8761,234+40.9%48.7%47.8%
/product/integrations1,012987-2.5%40.1%39.5%
/case-studies/enterprise687654-4.8%35.6%34.8%
/signup543567+4.4%23.4%22.8%

Homepage is the story. Sessions up 67%, but:

  • Bounce rate jumped from 42.1% to 51.2% (+9.1 ppts)
  • Avg time on page dropped from 145s to 98s (-32%)
  • Homepage conversions fell from 142 to 87 (-38.7%)
  • Homepage conversion rate dropped from 2.7% to 1.0%

The new homepage is attracting vastly more visits but losing them faster and converting far fewer.


3. Traffic Sources

Source / MediumPrev SessionsCurr SessionsChange
google / organic7,4567,234-3.0%
google / cpc2,3453,456+47.4%
(direct) / (none)3,4563,212-7.1%
twitter / social8762,876+228%
linkedin / social1,2341,543+25.0%
newsletter / email1,023987-3.5%
producthunt / referral1231,876+1,425%
bing / organic478456-4.6%

The traffic surge is almost entirely launch buzz:

  • ProductHunt: +1,425% (123 to 1,876) -- clearly a PH launch
  • Twitter/social: +228% (876 to 2,876) -- launch amplification
  • Google/CPC: +47% -- looks like paid spend was increased for launch

Organic, direct, email, and Bing are all flat or slightly down -- baseline traffic didn't change.

Quality concern: ProductHunt traffic has a 61.2% bounce rate and only 1.2% conversion rate (vs 2.9% for organic). Twitter is similar: 56.7% bounce, 1.2% conversion. These are low-intent eyeballs.


4. Engagement

MetricPrevious 7dCurrent 7dChange
Bounce Rate (weighted)42.7%44.5%+1.8 ppts
Avg Session Duration184.8s176.9s-4.3%
Engagement Rate57.3%55.5%-1.8 ppts
Pages / Session2.832.88+1.7%

Engagement is down slightly across the board. The pages/session uptick (+1.7%) suggests visitors who do engage are browsing more (likely exploring the new homepage layout), but the higher bounce and shorter sessions are dragging overall quality down.

Launch day (Apr 11) was the worst engagement day: bounce 53.8%, session duration 142s, engagement rate 46.2%.


5. Signups & Conversions

EventPrevious 7dCurrent 7dChange
sign_up437389-11.0%
trial_start356312-12.4%
demo_request9287-5.4%
pricing_click1,1561,234+6.7%
feature_comparison_view498567+13.9%

Signups are DOWN 11% despite 13.6% more sessions. Signup conversion rate dropped from 2.8% to 2.4%.

Daily signup breakdown tells the story:

DateSignupsSessionsSignup Rate
Apr 5723,1872.26%
Apr 6482,5341.89%
Apr 7612,8762.12%
Apr 8642,9452.17%
Apr 9582,8232.05%
Apr 10622,9012.14%
Apr 11 (launch)244,2310.57%

Launch day had the highest traffic ever but the lowest signup rate (0.57% vs ~2.1% average). Only 24 signups from 4,231 sessions.

Positive signal: pricing_click (+6.7%) and feature_comparison_view (+13.9%) are up, meaning more visitors are considering the product -- they're just not converting yet.


What Leadership Needs to Know

The homepage launch was a traffic success but a conversion problem.

  1. Traffic goal: met. +13.6% sessions, +32.6% new users, massive social/PH buzz.

  2. Conversion goal: missed. Signups dropped 11% in absolute terms. The new homepage converts at 1.0% vs the old one at 2.7%. Launch day itself was 0.57% signup rate -- the worst day in the 14-day window.

  3. Root cause is likely twofold:

    • The launch traffic (PH, Twitter) is inherently low-intent -- tourists, not buyers. This is normal and will normalize in 3-5 days.
    • The new homepage itself may have a CTA/conversion issue: bounce rate jumped 9 ppts and time-on-page dropped 32%. This needs investigation independent of the traffic mix.

Recommended next steps:

  • Segment launch-day conversions by source to isolate whether the new homepage also underperforms with organic/direct traffic (the quality baseline).
  • Check the homepage CTA -- the 98s avg duration and 51% bounce suggest visitors aren't finding or engaging with the signup path.
  • Wait 3-5 days for the PH/Twitter spike to wash out, then re-evaluate homepage conversion rate with steady-state traffic.
  • Don't panic on the signup drop yet -- the denominator changed dramatically. The real test is next week's organic conversion rate.
Claude Sonnet 4.6

External Tools

ToolType
python3binary
pipbinary

Permissions

ScopeDescription
filesystem:read
network:outbound
process:spawn
env:read

SKILL.md

Google Analytics Analysis

Analyze website performance using Google Analytics data to provide actionable insights and improvement recommendations.

Quick Start

1. Setup Authentication

This Skill requires Google Analytics API credentials. Set up environment variables:

export GOOGLE_ANALYTICS_PROPERTY_ID="your-property-id"
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"

Or create a .env file in your project root:

GOOGLE_ANALYTICS_PROPERTY_ID=123456789
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json

Never commit credentials to version control. The service account JSON file should be stored securely outside your repository.

2. Install Required Packages

# Option 1: Install from requirements file (recommended)
pip install -r cli-tool/components/skills/analytics/google-analytics/requirements.txt

# Option 2: Install individually
pip install google-analytics-data python-dotenv pandas

3. Analyze Your Project

Once configured, I can:

  • Review current traffic and user behavior metrics
  • Identify top-performing and underperforming pages
  • Analyze traffic sources and conversion funnels
  • Compare performance across time periods
  • Suggest data-driven improvements

How to Use

Ask me questions like:

  • "Review our Google Analytics performance for the last 30 days"
  • "What are our top traffic sources?"
  • "Which pages have the highest bounce rates?"
  • "Analyze user engagement and suggest improvements"
  • "Compare this month's performance to last month"

Analysis Workflow

When you ask me to analyze Google Analytics data, I will:

  1. Connect to the API using the helper script
  2. Fetch relevant metrics based on your question
  3. Analyze the data looking for:
    • Traffic trends and patterns
    • User behavior insights
    • Performance bottlenecks
    • Conversion opportunities
  4. Provide recommendations with:
    • Specific improvement suggestions
    • Priority level (high/medium/low)
    • Expected impact
    • Implementation guidance

Common Metrics

For detailed metric definitions and dimensions, see REFERENCE.md.

Traffic Metrics

  • Sessions, Users, New Users
  • Page views, Screens per Session
  • Average Session Duration

Engagement Metrics

  • Bounce Rate, Engagement Rate
  • Event Count, Conversions
  • Scroll Depth, Click-through Rate

Acquisition Metrics

  • Traffic Source/Medium
  • Campaign Performance
  • Channel Grouping

Conversion Metrics

  • Goal Completions
  • E-commerce Transactions
  • Conversion Rate by Source

Analysis Examples

For complete analysis patterns and use cases, see EXAMPLES.md.

Scripts

The Skill includes utility scripts for API interaction:

Fetch Current Performance

python scripts/ga_client.py --days 30 --metrics sessions,users,bounceRate

Analyze and Generate Report

python scripts/analyze.py --period last-30-days --compare previous-period

The scripts handle API authentication, data fetching, and basic analysis. I'll interpret the results and provide actionable recommendations.

Troubleshooting

Authentication Error: Verify that:

  • GOOGLE_APPLICATION_CREDENTIALS points to a valid service account JSON file
  • The service account has "Viewer" access to your GA4 property
  • GOOGLE_ANALYTICS_PROPERTY_ID matches your GA4 property ID (not the measurement ID)

No Data Returned: Check that:

  • The property ID is correct (find it in GA4 Admin > Property Settings)
  • The date range contains data
  • The service account has been granted access in GA4

Import Errors: Install required packages:

pip install google-analytics-data python-dotenv pandas

Security Notes

  • Never hardcode API credentials or property IDs in code
  • Store service account JSON files outside version control
  • Use environment variables or .env files for configuration
  • Add .env and credential files to .gitignore
  • Rotate service account keys periodically
  • Use least-privilege access (Viewer role only)

Data Privacy

This Skill accesses aggregated analytics data only. It does not:

  • Access personally identifiable information (PII)
  • Store analytics data persistently
  • Share data with external services
  • Modify your Google Analytics configuration

All data is processed locally and used only to generate recommendations during the conversation.

FAQ

What does google-analytics do?

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

When should I use google-analytics?

Use it when you need a repeatable workflow that produces text response.

What does google-analytics output?

In the evaluated run it produced text response.

How do I install or invoke google-analytics?

npx skills add https://github.com/davila7/claude-code-templates --skill google-analytics

Which agents does google-analytics support?

Claude Code

What tools, channels, or permissions does google-analytics need?

It uses python3, pip; channels commonly include text; permissions include filesystem:read, network:outbound, process:spawn, env:read.

Is google-analytics safe to install?

Static analysis marked this skill as low risk; review side effects and permissions before enabling it.

How is google-analytics different from an MCP or plugin?

A skill packages instructions and workflow conventions; tools, MCP servers, and plugins are dependencies the skill may call during execution.

Does google-analytics outperform not using a skill?

About google-analytics

When to use google-analytics

When you need to review GA4 traffic, engagement, or conversion metrics for a recent time period. When you want to compare website performance across periods and identify top or underperforming pages and channels. When you need data-driven recommendations based on Google Analytics data.

When google-analytics is not the right choice

When analytics data comes from a source other than Google Analytics/GA4. When you need to change Google Analytics configuration or administer the property instead of analyzing its data.

What it produces

Produces text response.

Install

npx skills add https://github.com/davila7/claude-code-templates --skill google-analytics

Invoke: Ask Claude Code to use google-analytics for the task.