content-performance

content-performance is a skill for Claude Code, Codex from surendranb/google-analytics-mcp. It costs 22 tokens per session (614 once invoked), scanned A, original, MIT.

A guide to analysing which pages on a website attract visitors, keep them engaged, or lead to key events. It uses Google Analytics 4 (GA4), Google's website and app measurement service, and gives the field names needed for those reports.

In plain words
What is it for?
Use it to rank pages by views, users, time spent, engagement rate, bounce rate, or key events, and to find pages with many visits but weak engagement.
Why use it?
It helps avoid using outdated or incorrect GA4 field names, which can make a query fail or produce the wrong analysis. It also separates high-traffic pages from pages that actually engage visitors or drive results.

Skill for Claude CodeCodex

Part of the google-analytics-mcp plugin — 16 skills, 1 MCP server shipped together

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 skills/surendranb/google-analytics-mcp/content-performance
Any agent
npx skills add surendranb/google-analytics-mcp --skill content-performance
Clone the repo
git clone --depth 1 https://github.com/surendranb/google-analytics-mcp

Made for: Claude Code, Codex.

Or install google-analytics-mcp, the plugin that ships this one along with the rest of its 16 skills, 1 MCP server.

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 content-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/content-performance.svg)](https://agentmods.dev/skills/surendranb/google-analytics-mcp/content-performance)
Your own site
<a href="https://agentmods.dev/skills/surendranb/google-analytics-mcp/content-performance"><img src="https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/content-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 614 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.00022 $0.00614
Opus 5 $0.00011 $0.00307
Sonnet 5 $0.00004 $0.00123
Haiku 4.5 $0.00002 $0.00061

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

Security

Grade A, and why

content-performance 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.

skills/content-performance/SKILL.md · 74 lines

How it starts

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

Content Performance Analysis

Identify top-performing pages, find underperforming content, and understand engagement patterns across your site.

When to use

  • You want to know which pages drive the most traffic and engagement
  • You want to find pages with high views but low engagement (poor content fit)
  • You want to identify content that drives conversions or return visits

Correct dimension and metric names

Concept GA4 API name
Page path pagePath
Page title pageTitle
Landing page landingPage
Page views screenPageViews
Unique page views (users) totalUsers
Engagement rate engagementRate
Avg engagement time userEngagementDuration
Scroll depth scrolledUsers (if scroll event is tracked)
Entries (landing views) sessions with landingPage dimension

Do not use pageviews — the correct metric is screenPageViews.

Step 1 — Top pages by traffic

dimensions: ["pagePath", "pageTitle"]
metrics: ["screenPageViews", "totalUsers", "userEngagementDuration",
          "engagementRate", "bounceRate"]
date_range: last 30 days
order_by: screenPageViews DESC
limit: 25

Step 2 — Landing page performance

Which pages do users enter your site through, and how well do they engage:

dimensions: ["landingPage"]
metrics: ["sessions", "newUsers", "userEngagementDuration",
          "engagementRate", "keyEvents"]
date_range: last 30 days
order_by: sessions DESC
limit: 25

Step 3 — Underperforming content (high views, low engagement)

Run Step 1, then flag pages where:

  • screenPageViews is in the top 50% AND
  • engagementRate is below 0.3 (30%) OR userEngagementDuration < 30 seconds

These pages attract traffic but fail to hold attention — candidates for content improvement or better internal linking.

Step 4 — Content trend over time

dimensions: ["date", "pagePath"]
metrics: ["screenPageViews", "totalUsers"]
dimension_filter: pagePath contains "/blog" (or your content path)
date_range: last 90 days
order_by: date ASC

Read the full file on GitHub · 74 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 · 74 lines · 22 tokens per session scan A dad8173f5b74

Subscribe to this mod's changes

content-performance is a skill published in the GitHub repository surendranb/google-analytics-mcp (240 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 614 once invoked, about $0.0001 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.