Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/ga4-export-guardian

@0d57af8
Run it yourself

Investigate 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".

  • 7 files
  • 40.6 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/ga4-export-guardian

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdiagnosis-guide.md

≈975 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Export and scan-risk investigation

Evidence Discriminating next check Do not infer
Table absent from an incomplete listing Verify listing scope, access and pagination The export failed.
Table absent beyond the operator's bound Inspect export link, frequency, limits, processing and source collection evidence Events are permanently lost.
Intraday exists without daily Check configured export mode, date and current export status Intraday is a finalized replacement with identical completeness.
Both sources exist Select an explicit daily/intraday policy and inspect their actual coverage Their row counts can be added.
Table predates declared export start Check copied/backfilled data, source lineage and configuration history The supplied start date or table is automatically authoritative.
Old daily data changes Inspect late arrivals or reprocessing evidence Historical daily tables become universally immutable after 72 hours.
Dry-run estimate is large Check date/table selection, columns, joins and scan plan; retain a byte cap A row LIMIT makes the scan cheap.
Processed estimate is below the cap Check billable-byte rules and the actual billing model The query is approved or will cost that exact number of bytes.

Query and identity limits

GA4 event exports contain event rows. A user_pseudo_id is not an authenticated person or a universal cross-device identity. A first-observed date in a bounded query is not automatically the user's lifetime acquisition date. Missing IDs and consent-dependent collection can change session and cohort populations.

For custom cohort SQL, record the acquisition lookback, observation horizon, property timezone, identity, eligible population and right-censoring policy. Session keys must include the relevant user identity with ga_session_id; the session number alone is not globally unique. Keep such analysis separate from this metadata ledger rather than claiming the ledger validates arbitrary SQL.

Wildcard suffix ranges that include only eight-digit dates do not automatically include intraday_YYYYMMDD suffixes. Design daily/intraday selection explicitly. Do not blindly UNION both and assume the provider deduplicates the result.

Billing boundary

On-demand query charges include per-table/per-query minimums and rounding. A dry run's totalBytesProcessed therefore cannot be treated as an exact future bill. Capacity pricing, storage, streaming, external services, regional pricing and allowances introduce other boundaries. This helper intentionally does not quote a dollar rate or produce an execution approval.

For a suspected expensive query, retain the intended SQL hash, actual dry-run configuration, estimate accuracy and the proposed maximumBytesBilled. Diagnose the scan, then obtain any missing execution scope before running a real query.

Primary references

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
What it can do
Reads files Runs commands
version
2.0.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "ga4",
  "bigquery",
  "export",
  "data-quality",
  "cost"
]
All 2 allowed tools
ReadBash(python3:*)
Other metadata
compatibility
Python 3.10+ and IANA timezone data; optional collection requires google-cloud-bigquery and existing approved ADC.
argument-hint
[export-receipt.json]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/ga4-export-guardian