analytics

analytics is a command for Claude Code from gotempsh/temps. It costs 0 tokens per session (4,843 once invoked), scanned A, original, Apache-2.0.

A command-line tool for viewing website and API analytics, meaning measurements about visitors, traffic, performance, and usage.

In plain words
What is it for?
Use it to view overviews, traffic by pages or countries, conversion funnels, real-user loading metrics, AI crawler activity, API requests and errors, route performance, and API callers.
Why use it?
It gathers common reports in one interface, so you can investigate how people and automated agents use a project and where its APIs receive traffic.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to view overviews, traffic by pages or countries, conversion funnels, real-user loading metrics, AI crawler activity, API requests and errors, route performance, and API callers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gotempsh/temps/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.

Clone the repo
git clone --depth 1 https://github.com/gotempsh/temps

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 analytics

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/gotempsh/temps/analytics"><img src="https://agentmods.dev/badge/commands/gotempsh/temps/analytics.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 4,843 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.04843
Opus 5.5 $0.00000 $0.01937
Sonnet 5.5 $0.00000 $0.00969
Haiku 4.5 $0.00000 $0.00484

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

Security

Grade A, and why

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 26d 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/temps/references/commands/analytics.md · 370 lines

How it starts

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

analytics command reference

Apply the CLI runtime and safety contract before executing a command. Runtime --help is authoritative.

Contents

analytics (alias: stats)

View project analytics

Subcommands:

  • keys - Manage analytics ingest keys (pa_...) for apps Temps does not deploy
  • overview (o) - Show analytics dashboard overview
  • top - Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
  • funnels - Show funnel conversion metrics for all funnels
  • performance (speed) - Show real-user Web Vitals and optional dimension breakdowns
  • ai-agents - Show AI crawler / provider breakdown (web /analytics/ai-agents)
  • ai-pages - Show pages crawled by AI agents, with distinct-agent counts
  • ai-page - Show which agents/providers crawled a single page (e.g. /docs)
  • api-overview - Show API traffic timeseries (requests, errors, latency) from /api-analytics/timeseries
  • api-routes - Show top API routes by request count from /api-analytics/routes
  • api-callers - Show top API callers by client IP from /api-analytics/callers
  • api-ip - Show routes called by one client IP with latency and error analytics
  • api-path - Show client IPs calling one path with latency and error analytics
  • api-query - Run a typed multi-dimensional API traffic aggregation
  • api-summary - Show an AI-generated summary of API traffic from /api-analytics/summary (requires AI Assistance to be configured and enabled on the project)
  • enrich - Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)

Read the full file on GitHub · 370 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. 26d ago Changed · +16 lines ae30efe0919f
  2. 1mo ago Changed · +102 lines ea1554be0a64
  3. 1mo ago First seen · 252 lines · 0 tokens per session scan A 303f2c9f09de

Subscribe to this mod's changes

analytics is a command published in the GitHub repository gotempsh/temps (848 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,843 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.