full-funnel-ai-analytics: Command for Claude Code

.claude/commands/traffic.md

traffic is a command for Claude Code from eduardocornelsen/full-funnel-ai-analytics. It costs 0 tokens per session (556 once invoked), scanned A, original, MIT.

A command for building a dark-themed web traffic analytics dashboard from specified Google Analytics 4 data. It defines required metrics, charts, tables, freshness labels, and rules for using live data.

In plain words
What is it for?
Use it to create a React traffic report with session and conversion metrics, trends, channel breakdowns, funnel checks, and optional live GA4 data.
Why use it?
It keeps the dashboard tied to the approved source values and makes clear when data comes from a live platform query instead.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is eduardocornelsen/full-funnel-ai-analytics's own configuration. It tells Claude Code how to work on full-funnel-ai-analytics itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything full-funnel-ai-analytics configures →

Reuse

Borrowing it

Nothing to install: this file belongs to eduardocornelsen/full-funnel-ai-analytics. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/eduardocornelsen/full-funnel-ai-analytics/main/.claude/commands/traffic.md
Clone the repo
git clone --depth 1 https://github.com/eduardocornelsen/full-funnel-ai-analytics

Made for: Claude Code.

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 traffic

README.md
[![agentmods](https://agentmods.dev/badge/commands/eduardocornelsen/full-funnel-ai-analytics/traffic/github.svg)](https://agentmods.dev/commands/eduardocornelsen/full-funnel-ai-analytics/traffic)
Your own site
<a href="https://agentmods.dev/commands/eduardocornelsen/full-funnel-ai-analytics/traffic"><img src="https://agentmods.dev/badge/commands/eduardocornelsen/full-funnel-ai-analytics/traffic/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 traffic

Your own site · 80×15
<a href="https://agentmods.dev/commands/eduardocornelsen/full-funnel-ai-analytics/traffic"><img src="https://agentmods.dev/badge/commands/eduardocornelsen/full-funnel-ai-analytics/traffic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 556 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.00000 $0.00556
Opus 5 $0.00000 $0.00278
Sonnet 5 $0.00000 $0.00111
Haiku 4.5 $0.00000 $0.00056

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

Security

Grade A, and why

traffic 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 10d 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.

.claude/commands/traffic.md · 26 lines

How it starts

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

Data sourcing (mandatory)

Read dashboards/golden_metrics.jsonwindowed_90d.ga4_by_channel and windowed_90d.sessions; copy exact values — never recalculate (CLAUDE.md §14).

  • All CVRs here are Session CVR — label CVR (session) (§1).
  • Validate funnel ordering before rendering any funnel (§5).
  • Freshness badge in the header: _meta.window_start_meta.window_end · Data as of _meta.generated_at.

Live MCP variant — only if the user appends -mcp or asks for "live" / "real-time" / "raw platform" data: query the ga4 MCP servers instead, passing dates from _meta.window_start / _meta.window_end, add the badge ⚡ Live MCP — may differ from golden layer, and use dashboards/js/metrics.js canonical formulas for any computed metric.

Artifact

Build a web traffic analytics React artifact using Recharts.

Design: dark theme (#0d0d1a bg, #1a1a2e cards), blue #60a5fa, green #34d399, amber #fbbf24.

Include these 7 sections:

  1. Traffic KPI cards — Total Sessions, Engaged Sessions, Engagement Rate, Total Conversions, Conversion Rate
  2. Sessions over time — area chart with daily trend and a 7-day rolling average line
  3. Channel breakdown table — sessions, engaged sessions, conversions, engagement rate, CVR per channel with sparkline column
  4. Conversion funnel by channel — grouped bar: sessions vs conversions per channel
  5. Device split — if data available, pie chart of mobile/desktop/tablet; otherwise show channel share
  6. Anomaly callout — flag any day where sessions dropped or spiked >30% vs prior 7-day average
  7. AI Insights panel — a dark card at the bottom with a "✦ AI Insights" header containing 4–5 bullet points synthesized from GA4 traffic data. Each bullet must be specific, quantified, and actionable. Cover: (a) the highest-converting channel and whether it is receiving proportional traffic investment, (b) the channel with the most sessions but lowest CVR — what this suggests and what to test, (c) the most significant traffic anomaly detected and its likely cause, (d) engagement rate patterns that point to content or landing page issues, (e) a concrete recommendation for improving overall session CVR. Write in plain English as if briefing a growth or content team.

Read the full file on GitHub · 26 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. 10d ago First seen · 26 lines · 0 tokens per session scan A d5b5842478c8

Subscribe to this mod's changes

traffic is a command published in the GitHub repository eduardocornelsen/full-funnel-ai-analytics (21 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 556 tokens. 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-08-30.