Skip to content
Research
Skill

/ecommerce-analysis

Analyze GA4 ecommerce performance: purchase revenue, average order value, checkout funnel drop-off, and item revenue by acquisition channel.

From plugin
google-analytics-mcp
24417 skills

Claude Code

$ npx -y skills add surendranb/google-analytics-mcp --skill ecommerce-analysis --agent claude-code

SKILL.md

ecommerce-analysis.SKILL.md
name: ecommerce-analysis
titleTag: "GA4 Ecommerce Analysis: Revenue, AOV & Drop-Offs"
description: "Analyze GA4 ecommerce performance: purchase revenue, average order value, checkout funnel drop-off, and item revenue by acquisition channel."

GA4 Ecommerce Analysis: Revenue, AOV & Funnel Drop-off

Analyze e-commerce performance in Google Analytics 4: calculate revenue trends, average order value (AOV), item-level performance, and multi-step checkout funnel drop-offs.

When to use

  • You track standard GA4 e-commerce events (`view_item`, `add_to_cart`, `begin_checkout`, `purchase`)
  • You want to measure gross revenue, conversion rates, or average order value
  • You need to identify where prospective buyers abandon the checkout funnel
  • You want to evaluate acquisition channel profitability and return on ad spend (ROAS)

Correct E-Commerce API Names

GA4 e-commerce queries require exact API field names:

| Metric / Dimension | GA4 API Name | Type | Description | |---|---|---|---| | **Purchase Revenue** | `purchaseRevenue` | Metric | Gross transaction revenue | | **Transactions** | `ecommercePurchases` | Metric | Number of completed purchase events | | **Average Order Value** | `averagePurchaseRevenue` | Metric | Average revenue per transaction | | **Add to Cart** | `addToCarts` | Metric | Total add_to_cart events | | **Checkout Started** | `checkouts` | Metric | Total begin_checkout events | | **Cart-to-View Rate** | `cartToViewRate` | Metric | Percentage of item views added to cart | | **Purchase-to-View Rate** | `purchaseToViewRate` | Metric | Percentage of item views purchased | | **Item Views** | `itemsViewed` | Metric | Total times items were viewed | | **Item Revenue** | `itemRevenue` | Metric | Revenue generated by specific item | | **Items Purchased** | `itemsPurchased` | Metric | Number of units purchased | | **Item Name** | `itemName` | Dimension | Product title | | **Item Category** | `itemCategory` | Dimension | Product collection / category |

---

Step 1 — Revenue & AOV Overview

Track gross performance and transaction trends over time:

dimensions: ["date"]
metrics: ["ecommercePurchases", "purchaseRevenue", "averagePurchaseRevenue"]
date_range: last 30 days
order_by: date ASC

---

Step 2 — Funnel Drop-Off (View → Cart → Checkout → Purchase)

Analyze conversion velocity across the purchase funnel:

dimensions: ["sessionDefaultChannelGroup"]
metrics: ["itemsViewed", "addToCarts", "checkouts", "ecommercePurchases",
          "cartToViewRate", "purchaseToViewRate"]
date_range: last 30 days
order_by: ecommercePurchases DESC

**Drop-off calculation:** `1 - (next_stage_count / current_stage_count)`. Identify whether the largest bottleneck is cart abandonment (view → cart) or checkout friction (checkout → purchase).

---

Step 3 — Top Products by Revenue

Identify revenue drivers and product-level conversion rates:

dimensions: ["itemName", "itemCategory"]
metrics: ["itemsViewed", "addToCarts", "itemsPurchased", "itemRevenue"]
date_range: last 30 days
order_by: itemRevenue DESC
limit: 20

---

Step 4 — Revenue by Acquisition Channel

Determine which marketing channels deliver the highest paying customers:

dimensions: ["sessionDefaultChannelGroup"]
metrics: ["ecommercePurchases", "purchaseRevenue", "averagePurchaseRevenue"]
date_range: last 30 days
order_by: purchaseRevenue DESC

---

Three Prompts to Ask Your AI Agent

Copy-paste these prompts into Claude Code, Cursor, or Gemini CLI:

1. "Summarize our e-commerce performance for the past 30 days compared to the prior 30 days. Report purchaseRevenue, ecommercePurchases, and averagePurchaseRevenue."

2. "Audit our checkout funnel drop-off by acquisition channel over the last 60 days. Which channel experiences the highest cart-to-view rate and purchase rate?"

3. "List our top 15 products by gross revenue over the past 90 days. Include itemsPurchased, itemRevenue, and calculate the purchase-to-view conversion rate."

How to Check Manually in the GA4 Console

1. Open **Reports → Monetization → Ecommerce purchases**. 2. Review the table to view `Item revenue`, `Item purchase quantity`, and `Items viewed`. 3. To view the multi-step funnel, navigate to **Explore → Funnel exploration** and select the predefined *Purchase journey* template.

Read more
@surendranb
Ships withgoogle-analytics-mcp

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:

Stars on GitHub

Momentum

stars in total
244
Star history of surendranb/google-analytics-mcp on GitHub, a chart by star-history.com

Other skills on google-analytics-mcp.

More skills from other plugins.

academic-paper-review

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…

deer-flow10d85k
@bytedance@bytedanceInstall Skill
last30days

last30days

Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…

@mvanhorn@mvanhornInstall Skill

Questions about ecommerce-analysis.

Which coding agents can use ecommerce-analysis?
ecommerce-analysis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.