/marketing-performance:google-analytics-analystfrom marketing-performance
Query and analyze Google Analytics 4 (GA4) and Firebase Analytics campaign performance, traffic acquisition, user engagement, and post-click product and conversion funnels using the GA4 Data API. Configure project connection and service-account access, reconcile UTM-tagged sessions against ad-platform clicks (such as Meta Ads via adsctl) and backend conversion tables, diagnose funnel drop-offs, and produce actionable recommendations. Use when evaluating campaign performance in Google Analytics or Firebase Analytics, auditing post-click funnels, or setting up GA4 service-account reporting.
Ships in marketing-performance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Evaluate post-click campaign performance, channel acquisition, user engagement, and product-to-purchase funnels in Google Analytics 4 (GA4) and Firebase Analytics using read-only GA4 Data API (v1beta) queries. Treat GA4 as the bridge between top-of-funnel ad-platform delivery (such as $adsctl-meta-analyst) and bottom-of-funnel first-party backend records.
Read setup-and-auth.md before configuring credentials or troubleshooting authentication errors.
properties/<PROPERTY_ID>).my-app-production), resolve the numeric GA4 Property ID, account ID, and web/iOS/Android measurement streams via the Firebase Management API (GET https://firebase.googleapis.com/v1beta1/projects/<PROJECT_ID>/analyticsDetails) or using the bundled helper:python3 <skill-dir>/scripts/ga4_report.py discover --project "$GCP_PROJECT_ID"
gcloud interactive OAuth fails):
gcloud auth login and gcloud auth application-default login use Google's shared public SDK OAuth client (764086051850-...). When you request the sensitive https://www.googleapis.com/auth/analytics.readonly scope in a browser with that client, Google blocks the consent screen with This app is blocked.grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer with scope=https://www.googleapis.com/auth/analytics.readonly), which exchanges a locally signed RS256 JWT directly at https://oauth2.googleapis.com/token with zero browser prompts.gcloud services enable analyticsdata.googleapis.com --project="$GCP_PROJECT_ID"
roles/viewer or roles/firebase.analyticsViewer) does not automatically grant GA4 Data API read access when the GA4 account is managed under Google Analytics. Add the service account email (<name>@<project-id>.iam.gserviceaccount.com) as Viewer in Google Analytics → Admin → Property → Property access management (https://analytics.google.com/analytics/web/#/a<ACCOUNT_ID>p<PROPERTY_ID>/admin/property/users).~/.config/marketing-creative/ga4-analyzer.json by default. Before any live query, check it:
python3 <skill-dir>/scripts/ga4_report.py credentials
If it reports "installed": false (or "valid": false), stop and ask the user to create a read-only service account JSON key (see setup-and-auth.md Steps 1–3) and share the local path to the downloaded file. Then validate and copy it into place (0600, directory 0700) without reading or printing its contents:
python3 <skill-dir>/scripts/ga4_report.py credentials --install /path/to/downloaded-key.json
Replace an existing key only when the user asks (--force). Pass --service-account <path> only to override the default, for example when running over SSH on a trusted host that holds the key. Never print, log, or commit private keys or tokens.Use ga4_report.py (Python 3.10+, standard library + openssl) to inspect metadata and run structured GA4 Data API reports. Preview requests with --dry-run when validating query structure without network calls.
python3 <skill-dir>/scripts/ga4_report.py metadata \
--property "$GA4_PROPERTY_ID"
# 1. Channel & UTM Campaign Acquisition (sessions, engagedSessions, engagementRate, avgDuration, users, newUsers)
python3 <skill-dir>/scripts/ga4_report.py preset \
--property "$GA4_PROPERTY_ID" \
--preset campaigns \
--start-date 2026-10-16 --end-date today
# 2. Creative / Ad Content & Landing Variant Breakdown (utm_campaign x utm_content / sessionManualAdContent)
python3 <skill-dir>/scripts/ga4_report.py preset \
--property "$GA4_PROPERTY_ID" \
--preset ad-content \
--campaign "$UTM_CAMPAIGN" \
--start-date 2026-10-16 --end-date today
# 3. Post-Click Event Funnel by Ad Content (page_view -> activation -> access_gate -> login -> checkout -> purchase)
python3 <skill-dir>/scripts/ga4_report.py preset \
--property "$GA4_PROPERTY_ID" \
--preset funnel \
--campaign "$UTM_CAMPAIGN" \
--start-date 2026-10-16 --end-date today
# 4. Screen / Page Path Engagement Breakdown (unifiedScreenName & pagePath)
python3 <skill-dir>/scripts/ga4_report.py preset \
--property "$GA4_PROPERTY_ID" \
--preset screens \
--campaign "$UTM_CAMPAIGN" \
--start-date 2026-10-16 --end-date today
# 5. Daily Trajectory (date x sessionCampaignName x sessionManualAdContent)
python3 <skill-dir>/scripts/ga4_report.py preset \
--property "$GA4_PROPERTY_ID" \
--preset daily \
--campaign "$UTM_CAMPAIGN" \
--start-date 2026-10-16 --end-date today
For custom dimension/metric combinations or filters, use query:
python3 <skill-dir>/scripts/ga4_report.py query \
--property "$GA4_PROPERTY_ID" \
--dimensions sessionSourceMedium,sessionCampaignName,sessionManualAdContent,eventName \
--metrics eventCount,totalUsers,sessions \
--start-date 2026-10-16 --end-date today
Read metrics-and-dimensions.md for exact GA4 dimension/metric definitions, formulas, and Web vs. iOS instrumentation differences. Evaluate every campaign through five sequential stages:
$adsctl-meta-analyst) against GA4 sessions and newUsers for the matching sessionCampaignName (utm_campaign) and sessionManualAdContent (utm_content).GA4 Sessions / Outbound Clicks) and New-User Connect Rate (GA4 New Users / Unique Outbound Clicks).70% for redirect stripping, slow TLS/bundle load, broken url_tags, or consent-mode blocking before GA4 initializes.engagedSessions, Engagement Rate (engagedSessions / sessions — sessions lasting >= 10s, having >= 2 screen/page views, or triggering a key event), and averageSessionDuration (userEngagementDuration / sessions) by landing destination (pagePath, unifiedScreenName) and ad variant (sessionManualAdContent).page_view / initial screen_view) to meaningful first-use activation (content_load_result, learning_session_started, answer_revealed, audio_playback_result, or product-equivalent core actions)./app vs. cold pricing /app/packages or static / homepages).access_gate_viewed, access_gate_action), attempt authentication (login_attempt), and complete registration/sign-in (login, sign_up).access_gate_viewed / login_attempt but fail to complete login).website_packages_viewed, credit_catalog_viewed, screen_view on Packages), package selection (website_package_selected), checkout view/start (website_checkout_viewed, website_checkout_started, begin_checkout), payment handoff (website_payment_opened), and completed purchase (purchase, website_checkout_result).users, paid_access_grants, ai_credit_purchases, meta_measurement_consents) and ad-platform conversion reporting (landing_page_view, initiate_checkout, purchase).Read diagnostic-playbook.md to map multi-source funnel symptoms to root causes and prioritized fixes:
landing_page_view: 1 on 98 outbound clicks while GA4 records 111 sessions and 98 new users on that exact utm_campaign, the traffic arrived cleanly (100% connect rate) and the gap is pixel/consent gating—not a broken landing page.utm_content (sessionManualAdContent): Isolate creative hooks and landing-page experiments at the sessionManualAdContent level. When one landing path drives 3x–6x higher session duration and activation at identical CPC, recommend consolidating spend into the winning path and pausing the high-bounce variant.gtag.js), GA4 only populates unifiedScreenName when screen_view includes firebase_screen (whereas iOS/Android Firebase SDKs map screen_name automatically). Flag (not set) screen names and missing checkout events as P0/P1 instrumentation fixes.<campaign-dir>/reports/<datetime>.md using campaign-manager's reporting structure.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub imrenagicom/marketing-creative --plugin marketing-performance4 skills in this plugin
/campaign-managerDefine campaign workspace structure, paid ad hierarchies (meta-ads campaign, ad set, and ad folders), social media campaign trees (instagram, linkedin, twitter), campaign documents and plans (docs/), timestamped campaign performance reports (reports/), UTM conventions, and tagged product campaign links; organize storyboard and media development, versioned approved assets and copy/caption revisions, tracking records, and cross-channel performance reviews in YYYY-MM-DD-campaign-name directories. Use for new campaign setup, Meta Ads and social media campaign planning, creative/copy revision tracking, UTM revisions, or generating campaign performance reports using adsctl and google-analytics-analyst./marketing-briefCreate or revise a marketing brief from product facts, audience research, goals, offers, and channel requirements. Use before creative ideation or when campaign strategy changes./marketing-copywriterWrite or revise marketing copy for ads, landing pages, email, and social posts in distinct tones and styles, from personal experience sharing to direct selling. Use for exact wording, multiple versions, and localization; full video scripting and shot direction belong to ad-video-director.