umami-track

umami-track is a command for coding agents 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

Part of the bvdr plugin — 13 commands shipped together

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.

agentmods
npx agentmods add commands/bvdr/claude-plugins/umami-track
Clone the repo
git clone --depth 1 https://github.com/bvdr/claude-plugins

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00032 $0.02054
Opus 5 $0.00016 $0.01027
Sonnet 5 $0.00006 $0.00411
Haiku 4.5 $0.00003 $0.00205

Measured 3d ago against content hash 7253f9437c21, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (3 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 2,054 once invoked, about $0.0002 per session on Opus 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.