ga4-report-forensics
БесплатноЗапускает вложенные скриптыНе проверенInvestigate conflicting GA4 report numbers using request and response receipts. Compare windows, identities, filters and row coverage; distinguish sampling…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
GA4 Report Forensics
Overview
Explain what two GA4 report receipts establish, why they may differ and which next check would distinguish competing explanations. Produce a finding ledger and reproducible row-level comparison. A valid request or matching total alone does not prove correct collection.
This skill analyzes report evidence and can collect a bounded report using
existing approved access. It does not configure tracking, change a property or
create credentials. For a portfolio-wide
business narrative, use web-analytics; this workflow diagnoses the underlying
report evidence instead.
Prerequisites
Read access diagnostics when property access is uncertain, and report definitions when translating DAU/MAU, page, source, cohort or funnel questions into evidence.
- The exact question and two reports that are claimed to disagree, with the property, absolute date window, timezone, metric/dimension definitions and filters recorded for each.
- Complete Data API pages, or a documented normalization of a UI export into the receipt contract. Record the collection time and original source alongside the receipt. Never invent missing settings.
- Python 3.10+ with IANA timezone data. The analyzer uses only the standard library and makes no network requests.
- Permission to inspect the supplied analytics. Keep credentials, user IDs, sensitive URLs and raw event payloads out of the diagnostic report.
If a report is missing and collection is authorized, follow the bounded collection guide. Otherwise inspect the available evidence qualitatively and identify the missing receipt. Do not fabricate a comparison report to make the analyzer run.
Instructions
1. Establish the disputed claim
Write one precise question, such as: "Does the API's 30-day active-user count match the UI report for the same property and identity?" Identify which values are observations and which are expectations. Preserve the original artifacts; normalize copies only, with a short field-mapping receipt.
Resolve relative dates into absolute dates in the property's timezone. Check
inclusive endpoints: a window from 29daysAgo through yesterday contains 29
days, not 30. Do not sum daily active users to manufacture a monthly unique count.
2. Check comparability before arithmetic
Read the receipt contract and map both reports.
Keep filters as structured objects; {} means explicitly unfiltered, not unknown.
Use null for an unknown reporting identity or currency. If filter state is
unknown, stop normalization and obtain it rather than substituting {}.
Compare property, dates, timezone, filters, reporting identity, currency, ordered dimensions, ordered metrics and metric types. Different scopes or attribution settings can invalidate a comparison even when the metric labels look similar. Record those settings separately; the analyzer does not discover them for you.
UI/BigQuery/Data API results can use different identities, modeling and metric definitions. Do not treat their disagreement as proof that any backend is wrong. Consult the investigation guide when the comparison crosses those boundaries.
3. Run the deterministic comparison
python3 "${CLAUDE_SKILL_DIR}/scripts/analyze.py" receipt-pair.json > ga4-report-forensics.json
The input is bounded to 2 MiB. Analyze larger exports in an approved local data workflow; do not truncate them and call the shortened result complete. The helper requires explicit offsets and row counts, detects pagination gaps, changing headers/counts and repeated dimension keys, and refuses invalid numeric values.
Dimension values are hashed in the emitted comparison rather than printed. Metric names and numeric values remain present, so the output still needs the same handling as the underlying business analytics. File redirection writes the named output; select a new or approved destination to avoid overwriting a report.
4. Interpret the quality evidence
Keep these signals separate:
samplingMetadatas: compare sampled events with the sampling space. Sampling metadata with equal counts does not indicate a sampled subset.dataLossFromOtherRow: high-cardinality aggregation into(other). This is not the sampling flag and can apply even when filters hide the other row.subjectToThresholding: threshold-sensitive reporting applies; it does not alone establish that this particular result lost rows.- Missing pages or metadata: incomplete evidence. Empty rows do not establish zero traffic, and a row limit is not proof of complete coverage.
The analyzer's comparable state means the supplied context and row coverage
permit arithmetic. It does not certify freshness, source authenticity, collection
coverage, consent settings or causa
Установить ga4-report-forensics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBash(python3:*)Вложенные файлы
FAQ
Что делает скилл ga4-report-forensics?
Investigate conflicting GA4 report numbers using request and response receipts. Compare windows, identities, filters and row coverage; distinguish sampling, thresholding and high-cardinality loss. Use when GA4 API and UI reports disagree or exported rows are missing. Trigger with "GA4 user counts differ", "missing GA4 rows" or "is this report sampled?".
Как установить скилл ga4-report-forensics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ga4-report-forensics запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic