ai-referral-analysis
Measure traffic arriving from AI tools — ChatGPT, Claude, Perplexity, Gemini, Copilot, and others — and understand how it behaves…
Revenue, conversion rate, AOV, and funnel drop-off using GA4 ecommerce events.
$ npx -y skills add surendranb/google-analytics-mcp --skill ecommerce-analysis --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ecommerce-analysisContext preview
The summary Claude sees to decide when to auto-load this skill.
Revenue, conversion rate, AOV, and funnel drop-off using GA4 ecommerce events.
name: ecommerce-analysis description: "Revenue, conversion rate, AOV, and funnel drop-off using GA4 ecommerce events."
Revenue, conversion rate, AOV, and funnel drop-off using GA4 ecommerce events.
GA4 ecommerce uses specific API names — do not guess:
| Concept | GA4 API name | |---|---| | Revenue | `purchaseRevenue` | | Transactions | `ecommercePurchases` | | AOV | `averagePurchaseRevenue` | | Add to cart | `addToCarts` | | Checkout started | `checkouts` | | Cart-to-view rate | `cartToViewRate` | | Purchase-to-view rate | `purchaseToViewRate` | | Item views | `itemsViewed` | | Item revenue | `itemRevenue` | | Items purchased | `itemsPurchased` | | Product name | `itemName` | | Product category | `itemCategory` | | Transaction ID | `transactionId` |
dimensions: ["date"] metrics: ["ecommercePurchases", "purchaseRevenue", "averagePurchaseRevenue"] date_range: last 30 days order_by: date ASC
dimensions: ["sessionDefaultChannelGroup"]
metrics: ["itemsViewed", "addToCarts", "checkouts", "ecommercePurchases",
"cartToViewRate", "purchaseToViewRate"]
date_range: last 30 days
order_by: ecommercePurchases DESCDrop-off between stages = `1 - (next_stage / current_stage)`. The biggest drop-off is the highest-leverage fix.
dimensions: ["itemName", "itemCategory"] metrics: ["itemsViewed", "addToCarts", "itemsPurchased", "itemRevenue"] date_range: last 30 days order_by: itemRevenue DESC
dimensions: ["sessionDefaultChannelGroup"] metrics: ["ecommercePurchases", "purchaseRevenue", "averagePurchaseRevenue"] date_range: last 30 days order_by: purchaseRevenue DESC
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…