umami-track

umami-track is a command for Claude Code from bvdr/claude-plugins. It costs 32 tokens per session (2,054 once invoked), scanned A, original, MIT.

A command set for adding Umami Analytics tracking to an application. Tracking records actions such as page views, sign-ins, form submissions, purchases, custom events, and user identity.

In plain words
What is it for?
Use it to review an app for tracking opportunities or add event, user-identification, data-attribute, and revenue tracking.
Why use it?
It helps decide what user actions should be measured and locates the relevant routes, buttons, authentication flows, and payment code. It can either suggest a tracking plan or implement specified tracking.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bvdr plugin — 13 commands shipped together

Good fit Use it to review an app for tracking opportunities or add event, user-identification, data-attribute, and revenue tracking.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bvdr/claude-plugins/umami-track
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.

Clone the repo
git clone --depth 1 https://github.com/bvdr/claude-plugins

Made for: Claude Code.

Or install bvdr, the plugin that ships this one along with the rest of its 13 commands.

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 umami-track

README.md
[![agentmods](https://agentmods.dev/badge/commands/bvdr/claude-plugins/umami-track/github.svg)](https://agentmods.dev/commands/bvdr/claude-plugins/umami-track)
Your own site
<a href="https://agentmods.dev/commands/bvdr/claude-plugins/umami-track"><img src="https://agentmods.dev/badge/commands/bvdr/claude-plugins/umami-track/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 umami-track

Your own site · 80×15
<a href="https://agentmods.dev/commands/bvdr/claude-plugins/umami-track"><img src="https://agentmods.dev/badge/commands/bvdr/claude-plugins/umami-track.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,054 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.00032 $0.02054
Opus 5.5 $0.00013 $0.00822
Sonnet 5.5 $0.00006 $0.00411
Haiku 4.5 $0.00003 $0.00205

Measured 1mo ago against content hash 7253f9437c21, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

umami-track 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 1mo 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.

plugins/bvdr/commands/umami-track.md · 284 lines

How it starts

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

Umami Tracking Implementation

Implement comprehensive tracking in a user's codebase. Two modes: analyze and suggest a tracking plan, or directly implement specific tracking.

Prerequisites

Read .umami.json from project root for host, websiteId, domain. If missing, invoke bvdr:umami-setup first.

Mode A: Tracking Plan

Triggered by: "help me track", "what should I track", "analyze my app", "tracking plan"

Step 1: Scan the codebase

Look for:

  • Page routes/views — Next.js app/ or pages/ directory, React Router routes, plain HTML files
  • User interaction points — forms, buttons with onClick/onSubmit, CTAs, checkout flows
  • Auth flows — login, signup, logout, registration pages/components (candidates for umami.identify())
  • Revenue/purchase events — cart, checkout, payment, subscription components
  • Existing Umami tracking — search for umami.track, umami.identify, data-umami-event already in code

Step 2: Present tracking plan

Organize by category:

Pageviews:

  • List auto-tracked pages (Umami tracks all pageviews by default when data-auto-track is not "false")
  • Flag any pages that need manual tracking (SPAs with client-side routing that Umami might miss)

Identity (umami.identify):

  • Where to call umami.identify(userId, { ... }) — typically after login/signup
  • What session properties to attach (name, email, plan, role, etc.)
  • Distinct ID enables cross-session and cross-device tracking

Core Events:

  • Signup completed, login, logout
  • Key feature first-use
  • Onboarding steps

Conversion Events:

  • Form submissions
  • Purchase/checkout completion
  • Subscription actions
  • CTA clicks

Engagement Events:

  • Feature discovery clicks
  • Navigation patterns
  • Search usage
  • Filter/sort interactions

Revenue Events:

  • Must include both revenue (number) and currency (ISO 4217 string)
  • Example: { revenue: 49.99, currency: 'USD' }

Step 3: After approval, implement

Implement each tracking point using the appropriate method (see Mode B).

Read the full file on GitHub · 284 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. 1mo ago First seen · 284 lines · 32 tokens per session scan A 7253f9437c21

Subscribe to this mod's changes

umami-track is a command published in the GitHub repository bvdr/claude-plugins (4 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 2,054 once invoked, about $0.0001 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-08-31.