common-metric-names

common-metric-names is a skill for Claude Code from surendranb/google-analytics-mcp. It costs 39 tokens per session (1,155 once invoked), scanned A, original, MIT.

A reference for the exact metric and dimension names used by the Google Analytics 4 Data API. It translates everyday terms such as users, page views, and conversions into the names the API accepts.

In plain words
What is it for?
Use it before writing GA4 queries for users, active users, page views, engagement, traffic sources, or key events.
Why use it?
It prevents requests from failing because they use old Universal Analytics names or informal labels. It also notes that GA4 now calls conversions key events.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it before writing GA4 queries for users, active users, page views, engagement, traffic sources, or key events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/surendranb/google-analytics-mcp/common-metric-names
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.

Any agent
npx skills add surendranb/google-analytics-mcp --skill common-metric-names
Clone the repo
git clone --depth 1 https://github.com/surendranb/google-analytics-mcp

Made for: Claude Code.

Or install google-analytics-mcp, the plugin that ships this one along with the rest of its 18 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 common-metric-names

README.md
[![agentmods](https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/common-metric-names/github.svg)](https://agentmods.dev/skills/surendranb/google-analytics-mcp/common-metric-names)
Your own site
<a href="https://agentmods.dev/skills/surendranb/google-analytics-mcp/common-metric-names"><img src="https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/common-metric-names/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for common-metric-names

Your own site · 80×15
<a href="https://agentmods.dev/skills/surendranb/google-analytics-mcp/common-metric-names"><img src="https://agentmods.dev/badge/skills/surendranb/google-analytics-mcp/common-metric-names.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00039 $0.01155
Opus 5.5 $0.00016 $0.00462
Sonnet 5.5 $0.00008 $0.00231
Haiku 4.5 $0.00004 $0.00115

Measured 23d ago against content hash e5b7c81de10b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

common-metric-names 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 23d 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/common-metric-names/SKILL.md · 79 lines

How it starts

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

GA4 Dimensions and Metrics Reference: API Field Names

The Google Analytics 4 (GA4) Data API enforces strict field naming conventions. Universal Analytics was sunset on July 1, 2023, and on May 6, 2024, Google renamed all conversion metrics to key events (conversions → keyEvents).

Querying invalid field names causes a hard 400 error. Use this reference table before constructing queries or prompts.

Metrics Reference Table

Metric Intent Legacy / Invalid Names (Fails) Valid GA4 Data API Name
Conversions / Goal Completions conversions, goals, conversion keyEvents
Session Conversion Rate conversionRate, sessionConversionRate sessionKeyEventRate
User Conversion Rate userConversionRate userKeyEventRate
Total Users users, totalVisitors totalUsers
Active Users uniqueUsers, activeVisitors activeUsers
Daily Active Users (DAU) DAU, dailyActiveUsers active1DayUsers
Weekly Active Users (WAU) WAU, weeklyActiveUsers active7DayUsers
Monthly Active Users (MAU) MAU, monthlyActiveUsers active28DayUsers
Pageviews pageviews, pageViews, page_views screenPageViews
Pages per Session pagesPerSession, pageDepth screenPageViewsPerSession
E-commerce Purchases purchases, transactions ecommercePurchases
Product Views itemViews, productViews itemsViewed
Items Added to Cart addToCarts, cartAdds itemsAddedToCart
Purchase Revenue revenue, ecommerceRevenue purchaseRevenue
Average Order Value (AOV) revenuePerTransaction averagePurchaseRevenue
Average Session Duration avgSessionDuration, avgTimeOnSite averageSessionDuration
Total Engagement Time engagementDuration, timeOnSite userEngagementDuration
Engaged Sessions qualifiedSessions, validSessions engagedSessions
Bounce Rate bounce_rate bounceRate

Read the full file on GitHub · 79 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. 23d ago Changed · +4 lines e5b7c81de10b
  2. 3mo ago First seen · 75 lines · 39 tokens per session scan A 924e0a34a4f5

Subscribe to this mod's changes

common-metric-names is a skill published in the GitHub repository surendranb/google-analytics-mcp (242 stars, last pushed 4d ago), licensed MIT. It adds 39 tokens to every session and 1,155 once invoked, about $0.0002 per session on Opus 5.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.

Related

common-metric-names compared with skills from other repositories

common-metric-names next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
common-metric-namessurendranb/google-analytics-mcpSkill2424d agoMITA39Claude Code
salesforce-cligeorgekhananaev/claude-skills-vaultSkill329d agoMITA86Claude Code
fastapi-senior-devgeorgekhananaev/claude-skills-vaultSkill329d agoMITA39Claude Code
firebase-cligeorgekhananaev/claude-skills-vaultSkill329d agoMITA172Claude Code
pydantic-modelgeorgekhananaev/claude-skills-vaultSkill329d agoMITA28Claude Code
nextjs-senior-devgeorgekhananaev/claude-skills-vaultSkill329d agoMITA40Claude Code
supabase-cligeorgekhananaev/claude-skills-vaultSkill329d agoMITA33Claude Code