/ga4-pack:ga4-export-guardian [export-receipt.json]from ga4-pack
Investigates GA4 BigQuery export gaps, daily/intraday overlap, and query scan risk using table inventories and dry-run receipts.
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.
Build a date-by-date ledger of observed GA4 export tables and inspect a query-bound BigQuery dry-run estimate. Separate missing evidence, provisional intraday data and operator assumptions from confirmed observations.
This is an investigation workflow, not an export installer or an autonomous query runner. It does not create links, grant IAM, modify tables or execute paid queries.
maximumBytesBilled.Use existing authorized metadata access when available. Dataset-level access may be sufficient; do not grant project-wide roles or generate keys to make an inspection succeed. If evidence is supplied, label supplied-data mode rather than pretending to have inspected a cloud project.
Record the target property/dataset, requested dates and collection time. Resolve the snapshot's current date in the property's timezone, not the analyst's laptop timezone. A date before the declared export start or after the snapshot cannot be treated as an ordinary missing historical export.
An operator may supply a daily settlement bound in days. It is a local
investigation assumption, not a Google SLA. Use null when no bound has been
established. Presence of an old daily table still does not prove it is complete
or immutable: late arrivals and reprocessing can change historical data.
Use Read to inspect the original table-list/dry-run artifacts and their collection receipt before normalizing them. A supplied completeness flag is not independent evidence that the underlying listing covered the requested dataset and dates.
Map existing metadata into the receipt contract.
The standard export dataset is analytics_<property_id>. If the data was copied
or transformed elsewhere, document that lineage and investigate the copy through
its own contract rather than relabeling it as the native export.
Keep snapshot_complete false when permissions, listing filters or pagination
leave coverage uncertain. Optional row counts and modification times are metadata
observations; they do not prove event delivery. Never query all event rows merely
to construct an inventory when existing metadata can answer the question.
python3 "${CLAUDE_SKILL_DIR}/scripts/inspect-export.py" export-receipt.json > ga4-export-investigation.json
The helper accepts up to 2 MiB and a requested window of at most 366 days. It checks dataset/property binding, dates, duplicate table IDs and optional dry-run structure. It emits a timeline, explicit unknowns and query-estimate findings; it performs no provider operation. Select a new or approved local output path.
events_YYYYMMDD and events_intraday_YYYYMMDD can coexist. The ledger selects one
source per day, preferring daily when present, and never adds their row counts.
That policy avoids an obvious overlap; it is not a deduplication or completeness
certificate. Review the export diagnosis guide
before designing a query that combines daily and intraday data.
Missing days beyond an operator bound deserve investigation, not an invented data-loss verdict. Check export-link/configuration evidence, listing scope, permissions, applicable limits and provider processing status. A visible table before the declared start or in the future is a context inconsistency to resolve.
For query assessment, retain the raw Job resource and hash the exact intended
SQL. The helper requires matching SQL, dryRun: true, Standard SQL, a SELECT
statement and successful available job status. It refuses a persistent destination
table or a mutating statement. It does not parse SQL with a regex and claim to
have proved a bounded scan.
totalBytesProcessed is an estimate. A missing cap or weak estimate bound remains
inconclusive. An estimate above the configured byte cap is an explicit risk.
Even a smaller estimate does not certify billable bytes: on-demand minimums and
rounding can matter, while capacity pricing and other charges follow different
rules. The helper therefore returns billing-verification-required, never an
automatic permission to execute.
Keep an approved maximumBytesBilled in any separately authorized execution.
Do not replace it with a SQL row LIMIT; limiting output rows does not generally
bound scanned bytes. Do not quote a universal per-TB price or assume the free
allowance is available. Use current pricing and the project's actual billing
model when monetary analysis is explicitly requested.
Return ga4-export-investigation.json and a short diagnosis containing:
Treat the artifacts as business analytics. The helper emits metadata and counts, not event payloads or SQL text, but the result can still be sensitive.
Malformed receipts, contradictory dataset identity, failed/incomplete dry runs,
SQL fingerprint mismatches and unsupported mutation plans exit 2 with a
content-free held code. Preserve the original evidence. Correct the receipt
mapping or recollect an authorized snapshot instead of editing observations.
If optional query evidence is invalid, an explicitly inventory-only rerun may
still be useful; retain and disclose the unresolved query failure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/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".
/ga4-report-forensicsInvestigate 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?".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin ga4-packOther plugins' skills for the same job