/google-analytics-mcp:channel-acquisitionfrom google-analytics-mcp
Analyzes GA4 traffic sources, Default Channel Groups, and UTM tagging. Helps audit channel performance and diagnose Unassigned/Direct traffic from broken campaign parameters.
Ships in google-analytics-mcp. 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.
None: SKILL.md is the whole skill.
Analyze traffic sources, campaign media, and Default Channel Groups in Google Analytics 4. Determine which channels drive the highest volume, produce the longest engagement times, and deliver conversions.
Always use verified GA4 Data API field names:
| Acquisition Dimension | GA4 API Name | Notes |
|---|---|---|
| Default Channel Group | sessionDefaultChannelGroup | Organic Search, Direct, Paid Search, Referral, etc. |
| Source | sessionSource | Specific entity (e.g., google, linkedin, newsletter) |
| Medium | sessionMedium | Mechanism (e.g., organic, cpc, referral, email) |
| Source / Medium Combined | sessionSourceMedium | Combined source and medium string |
| Campaign Name | sessionCampaignName | UTM campaign parameter value |
| Campaign ID | sessionCampaignId | Numeric ad campaign ID |
| Manual Ad Content | sessionManualAdContent | utm_content parameter value |
⚠️ Common Trap: Never use
sessionDefaultChannelGrouping(it does not exist). Always usesessionDefaultChannelGroup.
Rank acquisition channels by total sessions and visitor quality:
dimensions: ["sessionDefaultChannelGroup"]
metrics: ["sessions", "totalUsers", "newUsers", "userEngagementDuration",
"screenPageViewsPerSession", "bounceRate"]
date_range: last 30 days
order_by: sessions DESC
Look beneath broad channel buckets to examine individual referring platforms:
dimensions: ["sessionSource", "sessionMedium"]
metrics: ["sessions", "newUsers", "userEngagementDuration", "keyEvents"]
date_range: last 30 days
order_by: sessions DESC
limit: 25
Evaluate performance across paid advertising channels:
dimensions: ["sessionCampaignName", "sessionDefaultChannelGroup"]
metrics: ["sessions", "newUsers", "keyEvents", "userEngagementDuration"]
dimension_filter: {
"filter": {
"fieldName": "sessionMedium",
"stringFilter": {"matchType": "EXACT", "value": "cpc"}
}
}
date_range: last 30 days
order_by: sessions DESC
If traffic in the Unassigned channel group is growing, your UTM campaign tagging is malformed.
Query sessionSource and sessionMedium filtered specifically for sessionDefaultChannelGroup = 'Unassigned'. Common causes include:
utm_medium (e.g., utm_medium=Social with capital S, or utm_medium=cpc_ads).utm_medium while passing utm_source.Copy-paste these prompts into Claude Code, Cursor, or Gemini CLI:
1. "Break down our acquisition channels over the last 30 days. Report sessions, active users, engagement rate, and key events for each channel."
2. "List all sessions landing in the 'Unassigned' channel group over the past 60 days. Group by sessionSource and sessionMedium to identify malformed UTM tags."
3. "Compare the engagement duration and conversion rate of Paid Search versus Organic Search over the last 90 days."
Session default channel group table.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub surendranb/google-analytics-mcp --plugin google-analytics-mcp17 skills in this plugin
/ai-referral-analysisHow to track and measure traffic from ChatGPT, Claude, Perplexity, and Gemini in GA4. Exact dimension filters, regex patterns, and channel comparison rules./attribution-scopeWhy session, user, and event metrics never match in GA4. Rules for pairing dimensions and metrics across user-scoped, session-scoped, and event-scoped models./bot-traffic-detectionDetect and filter automated bot spikes in Google Analytics 4. Patterns for datacenter ASN spikes, zero-second sessions, and single-page screenPageViews./common-metric-namesExact API field names for GA4 Data API queries. Avoid 400 errors from Universal Analytics names like ga:sessions or pageviews by using valid GA4 schema./compatible-combinationsWhich dimensions and metrics can be queried together in GA4 without triggering incompatible scope errors. Matrix of user, session, and event-level pairings./content-performanceEvaluate landing pages and blog content in GA4: screenPageViews, average engagement time, bounce rates, and organic search conversions per URL.Other plugins' skills for the same job