ga4-reporting

ga4-reporting is a skill for Claude Code from antohins/seo-tools-mcp. It costs 71 tokens per session (1,813 once invoked), scanned A, original, MIT.

A reporting tool for Google Analytics 4, Google's service for measuring website visits and user actions. It reports traffic, sources, pages, events, conversions, locations, devices, and changes over time.

In plain words
What is it for?
Use it to review visits, acquisition channels, landing pages, events, conversions, real-time activity, and custom report breakdowns.
Why use it?
It removes the need to assemble common website reports manually and helps explain why data may be missing or unavailable.

Skill for Claude Code

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

Part of the ga4 plugin — 1 skill shipped together

Good fit Use it to review visits, acquisition channels, landing pages, events, conversions, real-time activity, and custom report breakdowns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antohins/seo-tools-mcp/ga4-reporting
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 antohins/seo-tools-mcp --skill ga4-reporting
Clone the repo
git clone --depth 1 https://github.com/antohins/seo-tools-mcp

Made for: Claude Code.

Or install ga4, the plugin that ships this one along with the rest of its 1 skill.

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 ga4-reporting

README.md
[![agentmods](https://agentmods.dev/badge/skills/antohins/seo-tools-mcp/ga4-reporting/github.svg)](https://agentmods.dev/skills/antohins/seo-tools-mcp/ga4-reporting)
Your own site
<a href="https://agentmods.dev/skills/antohins/seo-tools-mcp/ga4-reporting"><img src="https://agentmods.dev/badge/skills/antohins/seo-tools-mcp/ga4-reporting/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 ga4-reporting

Your own site · 80×15
<a href="https://agentmods.dev/skills/antohins/seo-tools-mcp/ga4-reporting"><img src="https://agentmods.dev/badge/skills/antohins/seo-tools-mcp/ga4-reporting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,813 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.
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.00071 $0.01813
Opus 5 $0.00036 $0.00907
Sonnet 5 $0.00014 $0.00363
Haiku 4.5 $0.00007 $0.00181

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

Security

Grade A, and why

ga4-reporting 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 10d 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.

plugins/ga4/skills/ga4-reporting/SKILL.md · 116 lines

How it starts

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

GA4: отчёты без пустых таблиц

Data API отдаёт нули и 400-е там, где ожидаешь данные. Почти всегда причина одна из трёх: поле не существует в этом свойстве, поле заблокировано, комбинация несовместима. Поэтому порядок ниже, а не «сразу отчёт».

Порядок

  1. ga4_auth_status → при необходимости ga4_oauth_start / ga4_oauth_finish. OAuth-приложение общее с gsc, но scope разный — авторизоваться нужно отдельно, даже если gsc уже работает. В Cloud Console должны быть включены Google Analytics Data API и Admin API.
  2. ga4_list_propertiespropertyId это числовой id, а не Measurement ID G-XXXXXXX.
  3. Готовые инструменты (ga4_traffic_sources, ga4_top_pages, ga4_geo, ga4_devices, ga4_events, ga4_bytime) закрывают большинство вопросов — начинать с них.
  4. ga4_report — только когда нужного разреза среди готовых нет.

Когда лезть в metadata

ga4_metadata — какие измерения и метрики существуют в этом свойстве (у живого аккаунта это сотни полей), включая кастомные customEvent:….

Смотреть обязательно на два поля:

  • type — целое или дробное. Важно для metricFilters: сравнение не того типа даёт 400.
  • blockedReasonsзаблокированная метрика молча возвращает нули, а фильтр по ней падает с 400. Без metadata это выглядит как «в отчёте нет данных».

ga4_check_compatibility — проверить связку измерений и метрик, не платя за тяжёлый отчёт. Контракт у API вывернутый: при несовместимой комбинации вызов падает, и это отдаётся как compatible: false плюс список полей, которые GA4 просит убрать; при успехе он перечисляет, что ещё можно добавить. Фильтры участвуют в совместимости, поэтому те же filters/metricFilters имеет смысл передавать и сюда.

Отдельный случай: метрики Search Console (organicGoogleSearchClicks и соседние) есть в metadata, но не сочетаются почти ни с чем — только со своими измерениями.

Ловушки данных

  • landingPage устарел — с 2023-05-14 возвращает путь без query string. Брать landingPagePlusQueryString.
  • Строка (other) — не мусор, а агрегат схлопнутых по кардинальности значений. Её появление означает, что разрез слишком дробный и точность в нём потеряна.
  • (not set) — значение отсутствует, это не то же самое, что ноль.
  • Диапазон дат в GA4 включает обе границы; сегодняшний день неполный.

Read the full file on GitHub · 116 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. 10d ago First seen · 116 lines · 71 tokens per session scan A 1b6fc0f289dd

Subscribe to this mod's changes

ga4-reporting is a skill published in the GitHub repository antohins/seo-tools-mcp (3 stars, last pushed 6d ago), licensed MIT. It adds 71 tokens to every session and 1,813 once invoked, about $0.0004 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-31.