google-analytics

google-analytics is a cursor rule for coding agents from thatrebeccarae/claude-marketing. It costs 44 tokens per session (3,162 once invoked), scanned A, original, MIT.

Guidance for examining Google Analytics, a service that records how people use a website. It covers traffic, user behavior, pages, traffic sources, conversion funnels, and performance comparisons.

In plain words
What is it for?
Use it to review traffic and behavior, compare pages or periods, examine conversion paths, and suggest improvements based on the data.
Why use it?
It helps turn website measurements into findings about what is working, what is underperforming, and where users drop off.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/thatrebeccarae/claude-marketing/google-analytics
Clone the repo
git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-analytics

README.md
[![agentmods](https://agentmods.dev/badge/rules/thatrebeccarae/claude-marketing/google-analytics.svg)](https://agentmods.dev/rules/thatrebeccarae/claude-marketing/google-analytics)
Your own site
<a href="https://agentmods.dev/rules/thatrebeccarae/claude-marketing/google-analytics"><img src="https://agentmods.dev/badge/rules/thatrebeccarae/claude-marketing/google-analytics.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,162 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.03162
Opus 5 $0.00022 $0.01581
Sonnet 5 $0.00009 $0.00632
Haiku 4.5 $0.00004 $0.00316

Measured 5d ago against content hash b30c4c6a5d5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

google-analytics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/cursor/google-analytics.mdc · 500 lines

How it starts

The opening of the file, as written. The whole thing — 500 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 500 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 500 lines · 44 tokens per session scan A b30c4c6a5d5a

Subscribe to this mod's changes

google-analytics is a cursor rule published in the GitHub repository thatrebeccarae/claude-marketing (130 stars, last pushed 3mo ago), licensed MIT. It adds 44 tokens to every session and 3,162 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.