gmp-bq-query
BigQuery: Run pre-built query templates against GMP export datasets.
Skill by lucianfialho
Chalk Labs
Need help deploying gmp-bq-query?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lucianfialho-gmp-bq-query
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/gmp-bq-query
What's inside
- Skill name
gmp-bq-query- Description
- BigQuery: Run pre-built query templates against GMP export datasets.
- License
- Apache-2.0
- Instructions
- 73 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# bq query
> **PREREQUISITE:** Read `../gmp-shared/SKILL.md` for auth and `../gmp-bq/SKILL.md` for BQ overview.
Run a pre-built query template against a BigQuery dataset containing GMP export data.
## Usage
```bash
gmp bq query -t <template-name> --project <gcp-project> --dataset <dataset> [flags]
```
## Flags
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `-t, --template <name>` | Yes | -- | Template name (use `gmp bq templates` to list) |
| `--project <id>` | Yes | -- | GCP project ID |
| `--dataset <name>` | Yes | -- | BigQuery dataset name |
| `-r, --date-range <range>` | No | `30d` | Date range: `30d`, `7d`, `2024-01-01..2024-03-31` |
| `--privacy-filter` | No | off | Mask known GA4 PII fields (redact, or pseudonymize if `GMP_PII_SALT` is set) |
| `-f, --format <fmt>` | No | `json` | Output format: json, table, csv |
## Template Parameters
All templates accept the same four parameters, populated automatically:
| Parameter | Source |
|-----------|--------|
| `{{project}}` | `--project` flag |
| `{{dataset}}` | `--dataset` flag |
| `{{start_date}}` | Computed from `--date-range` |
| `{{end_date}}` | Computed from `--date-range` |
## Examples
```bash
# GA4: Flatten events from last 30 days
gmp bq query -t ga4-events-flat --project my-gcp-project --dataset analytics_123456789
# GA4: Funnel analysis for last 90 days
gmp bq query -t ga4-funnel --project my-gcp-project --dataset analytics_123456789 -r 90d -f table
# GA4: Attribution report for Q1 2024
gmp bq query -t ga4-attribution --project my-gcp-project --dataset analytics_123456789 -r 2024-01-01..2024-03-31
# Ads: Find wasted spend in last 30 days
gmp bq query -t ads-wasted-spend --project my-gcp-project --dataset my_ads_data -r 30d -f table
# GSC: Top pages for last 90 days
gmp bq query -t gsc-top-pages --project my-gcp-project --dataset searchconsole -r 90d -f csv > pages.csv
# GSC: Detect keyword cannibalization
gmp bq query -t gsc-cannibalization --project my-gcp-project --dataset searchconsole -r 90d -f table
```
## Output
All templates return tabular data compatible with `formatOutput` (json, table, csv). Each template produces different columns — run with `-f json` to see the full field list.
## Tips
- Use `gmp bq templates --service ga4` to see only GA4 templates.
- Use `gmp bq explore --project X --dataset Y` to discover available tables before running queries.
- GA4 dataset names follow the pattern `analytics_<PROPERTY_ID>`.
- Pipe JSON output to `jq` for filtering: `gmp bq query ... | jq '[.[] | select(.clicks > 100)]'`
- Export to CSV for spreadsheet analysis: `gmp bq query ... -f csv > report.csv`
## See Also
- [gmp-bq](../gmp-bq/SKILL.md) -- All BQ commands
- [gmp-shared](../gmp-shared/SKILL.md) -- Global flags and authFrom lucianfialho/gmp-cli, Apache-2.0.
More from lucianfialho/gmp-cli
- 0.606score
gmp-shared
lucianfialho
gmp CLI: Shared patterns for authentication, global flags, and output formatting.
SkillBFreshness: B★ 33Claude Code +9 - 0.606score
gmp-yt
lucianfialho
YouTube Data API v3: channel stats, video performance, and public video search.
SkillBFreshness: B★ 33Claude Code +9 - 0.606score
gmp-yt-videos
lucianfialho
YouTube: list channel videos with views, likes, comments and duration.
SkillBFreshness: B★ 33Claude Code +9 - 0.491score
gmp-ga
lucianfialho
Google Analytics (GA4): Reports, realtime, metadata, accounts, and properties.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
persona-marketing-analyst
lucianfialho
Analyze digital marketing performance -- traffic, channels, and conversions.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
persona-seo-specialist
lucianfialho
Monitor organic search performance -- traffic, landing pages, and search trends.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
recipe-ads-spend-overview
lucianfialho
Recipe: Google Ads spend overview — campaigns, top keywords, search terms analysis.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
gmp-gtm
lucianfialho
Google Tag Manager: Accounts, containers, tags, triggers, variables, and versions.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
gmp-ads-campaigns
lucianfialho
Google Ads: Campaign performance reports with date ranges and status filters.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
gmp-bq
lucianfialho
BigQuery: Query GMP export data (GA4, Ads, GSC) with pre-built templates and custom SQL.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
recipe-url-indexation-check
lucianfialho
Recipe: Check URL indexation status and diagnose crawl issues via GSC.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
gmp-gsc
lucianfialho
Google Search Console: Search analytics, URL inspection, sitemaps, and site management.
SkillDFreshness: D★ 33Claude Code +9
Signals
- Stars
- 33
- Forks
- 3
- Open issues
- 5
- Last commit (this folder)
- Apr 13, 2026 (6 months ago)
- Last release
- Apr 27, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/lucianfialho/gmp-cli
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lucianfialho
- 0.606score
gmp-shared
lucianfialho
gmp CLI: Shared patterns for authentication, global flags, and output formatting.
SkillBFreshness: B★ 33Claude Code +9 - 0.606score
gmp-yt
lucianfialho
YouTube Data API v3: channel stats, video performance, and public video search.
SkillBFreshness: B★ 33Claude Code +9 - 0.606score
gmp-yt-videos
lucianfialho
YouTube: list channel videos with views, likes, comments and duration.
SkillBFreshness: B★ 33Claude Code +9 - 0.491score
gmp-ads-campaigns
lucianfialho
Google Ads: Campaign performance reports with date ranges and status filters.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
gmp-bq
lucianfialho
BigQuery: Query GMP export data (GA4, Ads, GSC) with pre-built templates and custom SQL.
SkillDFreshness: D★ 33Claude Code +9 - 0.491score
gmp-ga
lucianfialho
Google Analytics (GA4): Reports, realtime, metadata, accounts, and properties.
SkillDFreshness: D★ 33Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get gmp-bq-query running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
gmp-bq-query skill. Agent Mart. https://agentmart.dev/skills/lucianfialho-gmp-bq-query (last updated 2026-10-24)