ecommerce-analytics

ecommerce-analytics is a skill for Claude Code from GoTolstoy/mcp. It costs 160 tokens per session (4,193 once invoked), scanned A, original, MIT.

A guide to measuring how shoppers use an online store, from visits and clicks through to orders, and judging those numbers against a baseline.

In plain words
What is it for?
Choosing store events, calculating conversion rates, comparing periods, and evaluating changes with e-commerce data.
Why use it?
It helps avoid collecting noisy events or using misleading counts when deciding whether a store change worked.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the tolstoy plugin — 3 skills, 1 agent, 1 MCP server shipped together

Good fit Choosing store events, calculating conversion rates, comparing periods, and evaluating changes with e-commerce data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gotolstoy/mcp/ecommerce-analytics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GoTolstoy/mcp --skill ecommerce-analytics
Clone the repo
git clone --depth 1 https://github.com/GoTolstoy/mcp

Made for: Claude Code.

Or install tolstoy, the plugin that ships this one along with the rest of its 3 skills, 1 agent, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ecommerce-analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotolstoy/mcp/ecommerce-analytics/github.svg)](https://agentmods.dev/skills/gotolstoy/mcp/ecommerce-analytics)
Your own site
<a href="https://agentmods.dev/skills/gotolstoy/mcp/ecommerce-analytics"><img src="https://agentmods.dev/badge/skills/gotolstoy/mcp/ecommerce-analytics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ecommerce-analytics

Your own site · 80×15
<a href="https://agentmods.dev/skills/gotolstoy/mcp/ecommerce-analytics"><img src="https://agentmods.dev/badge/skills/gotolstoy/mcp/ecommerce-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00160 $0.04193
Opus 5.5 $0.00064 $0.01677
Sonnet 5.5 $0.00032 $0.00839
Haiku 4.5 $0.00016 $0.00419

Measured 11d ago against content hash bc0cc39627f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ecommerce-analytics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ecommerce-analytics/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

E-commerce analytics

E-commerce analytics tells a store which shopper actions lead to orders, and whether a change made them go up. Measure a few things that decide something, give each event a fixed meaning, count through to the order, and judge each number against a baseline.

Principles

  1. Start from the decision. Before you add an event, write the question it answers and what the store will do with the answer. An event that decides nothing is noise in the report.
  2. Revenue = sessions × conversion rate × average order value, with the conversion rate as orders ÷ sessions. A feature can raise revenue only through one of the three. Name the one that it should move, and measure that one.
  3. Count shoppers, not events. One shopper can send an event many times. Rates divide shoppers by shoppers, never raw event counts.
  4. Count through to the order. Views and clicks measure interest. The share of shoppers who go on to order measures value, so send an event at the order too.
  5. Compare like with like. Compare periods of the same length, with the same weekdays, and no sale or launch in only one of them.
  6. Users of a feature are not proof that it works. Shoppers who choose a feature often were more likely to buy anyway, so a higher rate for them is a correlation. For proof, show the feature to a random half of shoppers and compare the two halves.
  7. Judge the difference, not each rate. For two rates p₁ of n₁ shoppers and p₂ of n₂ shoppers, the 95% range of the difference is (p₂ − p₁) ± 1.96 × √(p₁(1−p₁)/n₁ + p₂(1−p₂)/n₂). 30 buyers of 1,000 shoppers (3.0%) against 42 of 1,000 (4.2%) is a difference of 1.2 points ± 1.6, so it can be zero. Report it as an estimate, not as a proven effect, and collect more shoppers.

What to measure

Metric Formula It answers
Orders, revenue Count and sum of the orders in the period Does the store grow?
Average order value (AOV) Revenue ÷ orders Do shoppers spend more per order?
Conversion rate Orders ÷ sessions Do visits turn into orders?
Buyer rate Shoppers who ordered ÷ shoppers who visited Do visitors become buyers?
Step rate Shoppers at a step ÷ shoppers at the step before Where do shoppers drop out?
Feature buyer rate Shoppers who ordered after the feature ÷ shoppers who used it Does the feature lead to orders?
Refund rate Refunded orders ÷ orders Does the revenue stay?

Read the full file on GitHub · 296 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +9 lines bc0cc39627f7
  2. 13d ago First seen · 287 lines · 160 tokens per session scan A 55c632175e3a

Subscribe to this mod's changes

ecommerce-analytics is a skill published in the GitHub repository GoTolstoy/mcp (0 stars, last pushed 10d ago), licensed MIT. It adds 160 tokens to every session and 4,193 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

ecommerce-analytics compared with skills from other repositories

ecommerce-analytics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ecommerce-analyticsGoTolstoy/mcpSkill010d agoMITA160Claude Code
refund-page-generatorkostja94/marketing-skillsSkill1.1k23d agoMITA35Claude Code, Codex
shipping-page-generatorkostja94/marketing-skillsSkill1.1k23d agoMITA35Claude Code, Codex
category-page-generatorkostja94/marketing-skillsSkill1.1k23d agoMITA35Claude Code, Codex
pricing-page-generatorkostja94/marketing-skillsSkill1.1k23d agoMITA33Claude Code, Codex
products-page-generatorkostja94/marketing-skillsSkill1.1k23d agoMITA35Claude Code, Codex
discount-marketing-strategykostja94/marketing-skillsSkill1.1k23d agoMITA92Claude Code, Codex