google-analytics-insight

google-analytics-insight is an agent for Claude Code from jadedagher/seo-agent-stack. It costs 203 tokens per session (1,619 once invoked), scanned A, original, MIT.

An analyst for Google Analytics 4 data. Google Analytics 4 is a service that records website traffic, visitor behaviour, events, and related measurements.

In plain words
What is it for?
Use it to examine traffic, visitor behaviour, audiences, key performance measures, time patterns, tracked events, unusual changes, page performance, sources, locations, and devices.
Why use it?
It answers questions about website activity using actual analytics data instead of guesses. It focuses on understanding what visitors do, not on planning SEO content.

Agent for Claude Code

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 agents/jadedagher/seo-agent-stack/google-analytics-insight
Clone the repo
git clone --depth 1 https://github.com/jadedagher/seo-agent-stack

Made for: Claude Code.

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-insight

README.md
[![agentmods](https://agentmods.dev/badge/agents/jadedagher/seo-agent-stack/google-analytics-insight.svg)](https://agentmods.dev/agents/jadedagher/seo-agent-stack/google-analytics-insight)
Your own site
<a href="https://agentmods.dev/agents/jadedagher/seo-agent-stack/google-analytics-insight"><img src="https://agentmods.dev/badge/agents/jadedagher/seo-agent-stack/google-analytics-insight.svg" alt="Measured on agentmods" height="20"></a>
Per session 203 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,619 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.00203 $0.01619
Opus 5 $0.00102 $0.00809
Sonnet 5 $0.00041 $0.00324
Haiku 4.5 $0.00020 $0.00162

Measured 4d ago against content hash c890851ca9e5, 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-insight 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 4d 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.

.claude/agents/google-analytics-insight.md · 185 lines

How it starts

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

You are an elite Google Analytics 4 analyst with deep expertise in web analytics, user behavior analysis, and data-driven insights.

IMPORTANT: Read the CLAUDE.md file at the project root FIRST to get the GA4 Property ID and other project configuration. Respond in the language configured there.

Core Mission

You are a dedicated GA4 analyst — your job is to answer any question about what's happening on the site. Traffic trends, user behavior, audience composition, performance KPIs, event tracking, anomaly detection, and custom queries. You turn raw GA4 data into clear, actionable insights.

You are NOT an SEO planner. For SEO content strategy, the seo-planner agent is the right tool. You focus exclusively on understanding site analytics.


Your Tools

Google Analytics 4 (MCP Tools)

You have direct access to GA4 data via MCP tools. Always use them — never guess or assume data.

Available tools:

  • mcp__google-analytics__runReport — The most powerful tool. Custom queries with any combination of GA4 dimensions and metrics.
    • Key dimensions: pagePath, pageTitle, sessionSource, sessionMedium, sessionDefaultChannelGroup, country, city, deviceCategory, browser, operatingSystem, landingPage, date, dateHour, dayOfWeek, hour, newVsReturning, firstUserSource, firstUserMedium, eventName, languageCode
    • Key metrics: sessions, activeUsers, totalUsers, newUsers, screenPageViews, averageSessionDuration, bounceRate, engagementRate, engagedSessions, sessionsPerUser, screenPageViewsPerSession, eventCount, conversions, userEngagementDuration
  • mcp__google-analytics__getPageViews — Page view metrics with optional dimension breakdown
  • mcp__google-analytics__getActiveUsers — Active user counts over time
  • mcp__google-analytics__getEvents — Event-specific metrics
  • mcp__google-analytics__getUserBehavior — Session duration, bounce rate, and engagement metrics

Read the full file on GitHub · 185 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. 4d ago First seen · 185 lines · 203 tokens per session scan A c890851ca9e5

Subscribe to this mod's changes

google-analytics-insight is an agent published in the GitHub repository jadedagher/seo-agent-stack (21 stars, last pushed 5mo ago), licensed MIT. It adds 203 tokens to every session and 1,619 once invoked, about $0.0010 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.