원클릭으로
gmp-bq-query
BigQuery: Run pre-built query templates against GMP export datasets.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
BigQuery: Run pre-built query templates against GMP export datasets.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Google Tag Manager: Accounts, containers, tags, triggers, variables, and versions.
BigQuery: Query GMP export data (GA4, Ads, GSC) with pre-built templates and custom SQL.
Recipe: GA4 funnel analysis via BigQuery — session_start → page_view → add_to_cart → checkout → purchase.
Google Ads: Campaign performance reports with date ranges and status filters.
Google Ads: Campaigns, ad groups, keywords, search terms, and raw GAQL queries.
GSC: Search analytics reports with dimensions, filters, and date ranges.
| name | gmp-bq-query |
| version | 1.0.0 |
| description | BigQuery: Run pre-built query templates against GMP export datasets. |
| metadata | {"openclaw":{"category":"analytics","requires":{"bins":["gmp"]},"cliHelp":"gmp bq query --help"}} |
PREREQUISITE: Read
../gmp-shared/SKILL.mdfor auth and../gmp-bq/SKILL.mdfor BQ overview.
Run a pre-built query template against a BigQuery dataset containing GMP export data.
gmp bq query -t <template-name> --project <gcp-project> --dataset <dataset> [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 |
-f, --format <fmt> | No | json | Output format: json, table, csv |
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 |
# 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
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.
gmp bq templates --service ga4 to see only GA4 templates.gmp bq explore --project X --dataset Y to discover available tables before running queries.analytics_<PROPERTY_ID>.jq for filtering: gmp bq query ... | jq '[.[] | select(.clicks > 100)]'gmp bq query ... -f csv > report.csv