ai-referral-analysis
Measure traffic arriving from AI tools — ChatGPT, Claude, Perplexity, Gemini, Copilot, and others — and understand how it behaves…
Break down sessions and users by traffic source, medium, and channel group to understand where your audience comes from and which channels perform best.
$ npx -y skills add surendranb/google-analytics-mcp --skill channel-acquisition --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/channel-acquisitionContext preview
The summary Claude sees to decide when to auto-load this skill.
Break down sessions and users by traffic source, medium, and channel group to understand where your audience comes from and which channels perform best.
name: channel-acquisition description: "Break down sessions and users by traffic source, medium, and channel group to understand where your audience comes from and which channels perform best."
Break down sessions and users by traffic source, medium, and channel group to understand where your audience comes from and which channels perform best.
| Concept | GA4 API name | |---|---| | Channel group | `sessionDefaultChannelGroup` | | Source | `sessionSource` | | Medium | `sessionMedium` | | Source / Medium | `sessionSourceMedium` | | Campaign name | `sessionCampaignName` | | Campaign ID | `sessionCampaignId` | | Ad content | `sessionManualAdContent` |
Do not use `sessionDefaultChannelGrouping` — it does not exist. Do not combine `sessionCampaignName` with user-scoped metrics like `totalUsers`.
dimensions: ["sessionDefaultChannelGroup"]
metrics: ["sessions", "totalUsers", "newUsers", "userEngagementDuration",
"screenPageViewsPerSession", "bounceRate"]
date_range: last 30 days
order_by: sessions DESCdimensions: ["sessionSource", "sessionMedium"] metrics: ["sessions", "newUsers", "userEngagementDuration", "keyEvents"] date_range: last 30 days order_by: sessions DESC limit: 25
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 DESCdimensions: ["date", "sessionDefaultChannelGroup"] metrics: ["sessions", "newUsers"] date_range: last 90 days order_by: date ASC
Model Context Protocol (MCP) server for Google Analytics 4: real-time query exploration, schema discovery, metric aggregation, and audience insights for AI agents. 🌐 Live Documentation & Web Portal:
Measure traffic arriving from AI tools — ChatGPT, Claude, Perplexity, Gemini, Copilot, and others — and understand how it behaves…
GA4 has three distinct attribution scopes. Using the wrong scope gives misleading results. Choose based on the question you are…
Identify and exclude bot, scraper, and spam sessions from GA4 data.
The correct GA4 Data API names for fields models most often get wrong. Use these before calling `get_ga4_data` — wrong names…
GA4 enforces strict rules about which dimensions and metrics can appear in the same request. Incompatible combinations return a…
Identify top-performing pages, find underperforming content, and understand engagement patterns across your site.