New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Analyzes Google Analytics data to surface traffic patterns, weak pages, and prioritized, data-driven improvements.

skills.sh installs
1.2K
GitHub stars
34.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers traffic, engagement, acquisition, and conversion metrics, with a helper script for fetching and comparing periods
  • Includes ga_client.py for pulling metrics such as sessions, users, and bounce rate, and analyze.py for period-over-period reports
  • Enforces Viewer-only service account access and keeps credentials out of version control via environment variables or .env files
  • Designed for site owners who connect a GA4 property and want recommendations rated by priority and expected impact

Install

$ npx -y skills add davila7/claude-code-templates --skill google-analytics -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/davila7/claude-code-templates
Categories
Marketing, SEO & Ads, Data Science & Analytics
First seen
Apr 16, 2026

More from davila7/claude-code-templates

All 398

Similar to Google Analytics

More Marketing, SEO & Ads