ai-referral-analysis
Measure traffic arriving from AI tools — ChatGPT, Claude, Perplexity, Gemini, Copilot, and others — and understand how it behaves…
Identify top-performing pages, find underperforming content, and understand engagement patterns across your site.
$ npx -y skills add surendranb/google-analytics-mcp --skill content-performance --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/content-performanceContext preview
The summary Claude sees to decide when to auto-load this skill.
Identify top-performing pages, find underperforming content, and understand engagement patterns across your site.
name: content-performance description: "Identify top-performing pages, find underperforming content, and understand engagement patterns across your site."
Identify top-performing pages, find underperforming content, and understand engagement patterns across your site.
| Concept | GA4 API name | |---|---| | Page path | `pagePath` | | Page title | `pageTitle` | | Landing page | `landingPage` | | Page views | `screenPageViews` | | Unique page views (users) | `totalUsers` | | Engagement rate | `engagementRate` | | Avg engagement time | `userEngagementDuration` | | Scroll depth | `scrolledUsers` (if scroll event is tracked) | | Entries (landing views) | `sessions` with `landingPage` dimension |
Do not use `pageviews` — the correct metric is `screenPageViews`.
dimensions: ["pagePath", "pageTitle"]
metrics: ["screenPageViews", "totalUsers", "userEngagementDuration",
"engagementRate", "bounceRate"]
date_range: last 30 days
order_by: screenPageViews DESC
limit: 25Which pages do users enter your site through, and how well do they engage:
dimensions: ["landingPage"]
metrics: ["sessions", "newUsers", "userEngagementDuration",
"engagementRate", "keyEvents"]
date_range: last 30 days
order_by: sessions DESC
limit: 25Run Step 1, then flag pages where:
These pages attract traffic but fail to hold attention — candidates for content improvement or better internal linking.
dimensions: ["date", "pagePath"] metrics: ["screenPageViews", "totalUsers"] dimension_filter: pagePath contains "/blog" (or your content path) 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.
Break down sessions and users by traffic source, medium, and channel group to understand where your audience comes from and which…
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…