← ClaudeAtlas

ga4-custom-dimensionslisted

Register the 12 standard custom dimensions in Google Analytics 4 via the Admin API. Idempotent, dry-run by default, YAML-driven catalog covering event-scoped, user-scoped, and item-scoped dimensions. Battle-tested on miyakodeit.com (GA4 property 531238165) and netsujo.jp (property 382871067). Use when user says "GA4 custom dimensions", "register dimensions", "customDimensions API", "event-scoped dimension", or "GA4 Admin API".
suirindo/netsujo-aio-seo · ★ 0 · Data & Documents · score 70
Install: claude install-skill suirindo/netsujo-aio-seo
# GA4 Custom Dimensions Registrar Production-ready GA4 Admin API client that registers the 12 standard custom dimensions used across Netsujo properties in a single idempotent run. ## What it does 1. **Registers 12 standard custom dimensions** via `analyticsadmin.googleapis.com/v1beta/properties/{PROPERTY_ID}/customDimensions` 2. **Detects existing dimensions** by `parameterName` and skips them (idempotent) 3. **Supports three scopes**: event-scoped, user-scoped, item-scoped 4. **Dry-run by default** — prints the diff, applies only with `--apply` 5. **YAML-driven catalog** so the same skill can register custom dimensions beyond the standard 12 ## When to use - Spinning up a new GA4 property for a Netsujo client site - Migrating tracking from Universal Analytics where custom dimensions were missing - After running `ga4-tracking-wiring` (next skill in the chain) discovered dimensions are not yet registered - User says "GA4 custom dimensions", "register dimensions", "Admin API" ## The 12 standard dimensions | # | parameterName | scope | purpose | |---|---|---|---| | 1 | `cta_label` | event | CTAボタンのラベル | | 2 | `cta_position` | event | CTAの位置(hero/footer/sidebar) | | 3 | `article_category` | event | ブログ記事カテゴリ | | 4 | `article_author` | event | 記事著者 | | 5 | `event_attendance_mode` | event | Online/Offline/Mixed | | 6 | `outbound_domain` | event | 外部リンク先ドメイン | | 7 | `search_query` | event | サイト内検索クエリ | | 8 | `user_tier` | user | ユーザー階層(無料/有料/法人) | | 9 | `signup_source` | user