Agent skill

Google Analytics

by thatrebeccarae in thatrebeccarae/claude-marketing

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements.

MITAuto-check: notesMarketing & SEO

Install Google Analytics

skills CLI
$ npx skills add thatrebeccarae/claude-marketing --skill google-analytics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install thatrebeccarae/claude-marketing google-analytics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/google-analytics .claude/skills/google-analytics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
google-analytics
GitHub stars
162
Used in
4 other repos
Token cost
~1.3k tokens
SKILL.md length
463 words
Files
8 (incl. scripts)
Skills in repo
55
Repo updated
First seen
Licence
MIT

At a glance

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements.

  • Works in 3 steps: Setup Authentication → Install Required Packages → Analyze Your Project
  • The user asks about analytics
  • SKILL.md covers Install, Quick Start, How to Use and Analysis Workflow, plus 6 more sections
  • Runs Python scripts from its folder; calls pip, python and git; needs GOOGLE_APPLICATION_CREDENTIALS

What it does

Google Analytics is an agent skill from thatrebeccarae/claude-marketing. 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.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts (for example `EXAMPLES.md`, `REFERENCE.md` and `scripts/analyze.py`).

It sits in Marketing & SEO, covering Conversion rate optimization, OKRs and executive reporting and Performance optimization. It works with Google Analytics. The repository describes itself as: A full marketing department for Claude Code. Skill packs for Klaviyo, Shopify, GA4, Looker Studio, paid media, and more. Audit, optimize, and report using natural language. The licence is MIT.

When your agent uses it

  • The user asks about analytics
  • Website metrics
  • Traffic analysis
  • Conversion rates

Example prompts

  • “/google-analytics”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Setup Authentication
  2. Install Required Packages
  3. Analyze Your Project

What it can do on your machine

Read from SKILL.md and the folder at commit a8a63ec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip
    • python
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GOOGLE_APPLICATION_CREDENTIALS

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Google Analytics loads about 1.3k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 463 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:38
    Or create a `.env` file in your project root:
  • NoteMentions a .env fileSKILL.md:157
    - Use environment variables or `.env` files for configuration
  • NoteMentions a .env fileSKILL.md:158
    - Add `.env` and credential files to `.gitignore`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from thatrebeccarae/claude-marketing at commit a8a63ec, republished under its MIT licence (© thatrebeccarae). 463 words, ~1,290 tokens.

Download SKILL.mdSave it as .claude/skills/google-analytics/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
google-analytics
description
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.
license
MIT
origin
custom
author
Rebecca Rae Barton
author_url
https://github.com/thatrebeccarae
metadata.version
1.0.0
metadata.category
analytics
metadata.domain
google-analytics
metadata.updated
2026-02-23
metadata.tested
2026-03-17
metadata.tested_with
Claude Code v2.1

Google Analytics Analysis

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

Install

bash
git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/google-analytics ~/.claude/skills/

Quick Start

1. Setup Authentication

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

bash
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:

env
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
bash
# 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:

Show full SKILL.md (185 more words)Show less
Fetch Current Performance
bash
python scripts/ga_client.py --days 30 --metrics sessions,users,bounceRate
Analyze and Generate Report
bash
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:

bash
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.

© thatrebeccarae, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts) in skills/google-analytics of thatrebeccarae/claude-marketing.

  • SKILL.md
  • .env.example
  • EXAMPLES.md
  • LICENSE
  • REFERENCE.md
  • requirements.txt
  • scripts/analyze.py
  • scripts/ga_client.py

Open the folder on GitHubat commit a8a63ec

Used in 4 other repositories

We found 7 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in thatrebeccarae/claude-marketing, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Google Analytics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Google Analytics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Google Analytics this skillthatrebeccarae/claude-marketing1624 repos~1.3kAutomated safety check: NotesMIT
Google Analytics 4 Setupooiyeefei/ccc494—~2.2kAutomated safety check: PassMIT
Analyticsericrisco/rsc-harness156—~2.8kAutomated safety check: PassMIT
Analytics And Reportingsocial-media-skills/skills116—~1.4kAutomated safety check: PassMIT
Revenue Centric Designfabricioctelles/skills105—~2.8kAutomated safety check: PassCustom licence
Analytics Insightsindranilbanerjee/digital-marketing-pro8541 repos~6.7kAutomated safety check: PassMIT

Similar skills

  • Sets up GA4 on a website and wires one real conversion event end to end, verified in DebugView before any money goes into ads.

    494 GitHub stars~2.2k tokensUpdated 2 mo ago
    Marketing & SEOAuto-check passed
  • Analytics

    ericrisco/rsc-harness

    A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.

    156 GitHub stars~2.8k tokensUpdated today
    Marketing & SEOAuto-check passed
  • Analytics And Reporting

    social-media-skills/skills

    Social media analytics and reporting — read native platform data honestly and turn it into next actions.

    116 GitHub stars~1.4k tokensUpdated 6 days ago
    Marketing & SEOAuto-check passed
  • Revenue Centric Design

    fabricioctelles/skills

    Revenue-Centric Design (RCD) — evidence-backed principles for making a SaaS or startup product convert, retain, and monetize.

    105 GitHub stars~2.8k tokensUpdated 3 days ago
    Marketing & SEOAuto-check passed
  • Analytics Insights

    indranilbanerjee/digital-marketing-pro

    Marketing measurement module — builds KPI trees per business model, reporting templates (weekly, monthly, QBR, campaign), anomaly root-cause diagnosis, MMM and incrementality guidance, dark-social…

    854 GitHub starsUsed in 1 repo~6.7k tokens
    Marketing & SEOAuto-check passed
  • Lead Magnets And Funnels

    social-media-skills/skills

    Lead magnets and funnels — design offers that turn social traffic into subscribers, leads, and customers.

    116 GitHub stars~1.5k tokensUpdated 6 days ago
    Marketing & SEOAuto-check passed

More from thatrebeccarae/claude-marketing

All 55 skills in this repo
  • Content Creator

    thatrebeccarae/claude-marketing

    Comprehensive content marketing toolkit with brand voice analysis, SEO optimization scripts, content frameworks, social media strategy, and content calendar planning.

    162 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Klaviyo Analyst

    thatrebeccarae/claude-marketing

    Klaviyo marketing operations and analyst expertise. An agent skill from thatrebeccarae/claude-marketing.

    162 GitHub stars~5k tokensUpdated 4 mo ago
    Auto-check: notes
  • Klaviyo Developer

    thatrebeccarae/claude-marketing

    Klaviyo API and developer integration expertise. An agent skill from thatrebeccarae/claude-marketing.

    162 GitHub stars~4.9k tokensUpdated 4 mo ago
    Auto-check: notes
  • Looker Studio

    thatrebeccarae/claude-marketing

    Looker Studio (formerly Google Data Studio) expertise. An agent skill from thatrebeccarae/claude-marketing.

    162 GitHub stars~3.6k tokensUpdated 4 mo ago
    Auto-check: notes
  • Shopify

    thatrebeccarae/claude-marketing

    Shopify e-commerce platform marketing expertise. An agent skill from thatrebeccarae/claude-marketing.

    162 GitHub stars~2.4k tokensUpdated 4 mo ago
    Auto-check: notes
  • Ab Testing Framework

    thatrebeccarae/claude-marketing

    A/B and multivariate testing methodology. An agent skill from thatrebeccarae/claude-marketing.

    162 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Google Analytics

What does Google Analytics do?

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Google Analytics is an agent skill from thatrebeccarae/claude-marketing. Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements.

When should I use Google Analytics?

Google Analytics fits situations like: the user asks about analytics; website metrics; traffic analysis; conversion rates.

How do I install Google Analytics in Claude Code?

Run `npx skills add thatrebeccarae/claude-marketing --skill google-analytics -a claude-code`. Or copy the skill folder (skills/google-analytics in thatrebeccarae/claude-marketing) into .claude/skills/google-analytics in your project. Claude Code loads it when a task matches its description.

How do I install Google Analytics in Codex?

Run `npx skills add thatrebeccarae/claude-marketing --skill google-analytics -a codex`. Or copy the skill folder (skills/google-analytics in thatrebeccarae/claude-marketing) into .agents/skills/google-analytics in your project. Codex loads it when a task matches its description.

Can I use Google Analytics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add thatrebeccarae/claude-marketing --skill google-analytics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/google-analytics, .gemini/skills/google-analytics, .github/skills/google-analytics and .opencode/skills/google-analytics in your project.

What does Google Analytics need to run?

Going by SKILL.md and its folder, Google Analytics needs Python for the scripts in its folder, the command-line tools its instructions call (pip, python and git) and credentials named GOOGLE_APPLICATION_CREDENTIALS. Our summary lists: Python 3.

Does Google Analytics access the network?

SKILL.md contains no URLs. Its commands use pip and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Google Analytics safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Google Analytics use?

Google Analytics is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Google Analytics use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Google Analytics?

Skills that share tags, products or a category with Google Analytics: Google Analytics 4 Setup (ooiyeefei/ccc, 494 stars), Analytics (ericrisco/rsc-harness, 156 stars), Analytics And Reporting (social-media-skills/skills, 116 stars) and Revenue Centric Design (fabricioctelles/skills, 105 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Google Analytics?

thatrebeccarae (a GitHub user) maintains it in thatrebeccarae/claude-marketing, which has 162 GitHub stars. The repository holds 55 skills in this directory. The repository was last updated on May 14, 2026.

Source: thatrebeccarae/claude-marketing on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.