/ga4-pack:ga4-report-forensics [receipt-pair.json]from ga4-pack
Investigates conflicting GA4 report numbers using request/response receipts. Compares windows, identities, filters, and row coverage; detects sampling, thresholding, and high-cardinality loss. For API vs UI mismatches or missing rows.
Ships in ga4-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
Read access diagnostics when property access is uncertain, and report definitions when translating DAU/MAU, page, source, cohort or funnel questions into evidence.
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.
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.
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.
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.
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.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 causal attribution. Check collection timestamps and
Google's current reporting expectations before deciding that data has settled.
For each material finding include its JSON evidence pointer, observed value or hashed row key, impact, confidence and next discriminating check. Keep:
Do not add row-level unique-user values or ratios into a grand total. Percentage change from a zero baseline is undefined; report absolute movement instead. Rows present on only one side are a coverage discrepancy, not automatically zero on the other side. Prefer the smallest additional query or setting check that can resolve uncertainty. Additional collection must stay within the already-authorized property, window and read scope; ask when that scope is missing or unclear.
Return ga4-report-forensics.json and a short explanation containing the disputed
claim, evidence sources and collection times, comparability verdict, ranked
findings, unknowns and next checks. Name supplied-data mode explicitly. A result
such as "timezone mismatch confirmed; corrected-window comparison still needed"
is useful without inventing a root cause.
The helper exits 2 with a content-free held code for malformed input. Correct
the receipt or collect the missing evidence; do not edit observed values until
the code passes. A successful helper exit can still contain inconclusive or
context-mismatch; preserve that result in the report. It is not permission to
publish a clean bill of health.
Use current primary guidance for unsupported fields, changing metric definitions and report freshness. No universal 48-hour settlement guarantee or quota-increase promise is part of this workflow.
eval-spec.yaml (opens in a new tab)references/access-diagnostics.md (opens in a new tab)references/collection-guide.md (opens in a new tab)references/investigation-guide.md (opens in a new tab)references/receipt-contract.md (opens in a new tab)references/report-definitions.md (opens in a new tab)scripts/analyze.py (opens in a new tab)scripts/collect.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/ga4-export-guardianInvestigate GA4 BigQuery export gaps, daily/intraday overlap and query scan risk
from table-inventory and dry-run receipts. Use when exported days appear missing
or a GA4 query may scan too much. Trigger with "missing GA4 BigQuery tables",
"GA4 export delayed" or "check this GA4 query's scan budget".
/ga4-measurement-verifierCheck expected GA4 event names and counts against a realtime report receipt,
preserving row coverage, minute-window and deployment-timing limits. Use when
verifying tracking after a deployment or investigating missing events.
Trigger with "did GA4 receive sign_up?", "check GA4 tracking after deploy" or "missing GA4 events".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin ga4-packOther plugins' skills for the same job