← ClaudeAtlas

ga4-audienceslisted

Manage GA4 Audiences via the Admin API. Create, list, archive, rename. Audiences are stored cohorts based on event/dimension filters, usable in reports and Google Ads. Triggers: 'create audience', 'audience definition', 'cohort builder', 'high-intent users'.
arcbaslow/google-analytics-agent · ★ 0 · AI & Automation · score 76
Install: claude install-skill arcbaslow/google-analytics-agent
# GA4: Audiences Audiences are **immutable post-create** for their filter clauses — only `display_name` and `description` can be changed afterward. To alter the filter, archive the existing audience and create a new one. Scope required: `analytics.edit`. ## Process 1. Verify auth. 2. For proposals based on observed funnel drop-off, spawn the `ga4-audience-builder` agent. 3. Print the JSON definition and ask `y/n` before creating. 4. Run the script. ## Direct commands | Intent | Command | |--------|---------| | List audiences | `python scripts/ga4_admin.py --property X --list-audiences --json` | | Create audience | `python scripts/ga4_admin.py --property X --create-audience audience.json --json` | | Archive audience | `python scripts/ga4_admin.py --audience-name <full> --archive-audience --json` | ## Definition shape ```json { "display_name": "Cart abandoners (7d)", "description": "Users who added to cart but did not purchase", "membership_duration_days": 7, "filter_clauses": [ { "clause_type": "INCLUDE", "simple_filter": { "scope": "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS", "filter_expression": { "event_filter": {"event_name": "add_to_cart"} } } }, { "clause_type": "EXCLUDE", "simple_filter": { "scope": "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS", "filter_expression": { "event_filter": {"event_name": "purchase"} } } } ] } ``` ## Limits