Agent Analytics — Data skill for Claude Code
Track AI agent and bot traffic to your Next.js / Vercel app — PostHog, webhooks, or any custom analytics backend.
How to install Agent Analytics
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open apideck-libraries/agent-analytics and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Analytics does
Track AI agent and bot traffic to your Next.js / Vercel app — PostHog, webhooks, or any custom analytics backend. Detects Claude, ChatGPT, Perplexity, Google-Extended, and more.
Alternatives in Data
- LLM Redteam — LLM red-team corpus runner — fires categorized prompt-injection / jailbreak / system-prompt-leak / data-exfil 4.5k ★
- Arcgis To Portaljs — Migrate a whole ArcGIS Hub site (opendata.arcgis.com or a Hub Premium custom domain) into a PortalJS Arc porta 2.3k ★
- Posthog Analysis — Analyze PostHog usage data with correct filters, timelines, and caveats 1.6k ★
README
agent-analytics
See the agents your JavaScript can't.
**Drop-in Next.js / Vercel middleware that tracks ClaudeBot, GPTBot, Perplexity, and 20+ AI crawlers in PostHog — or any analytics backend you already pay for.**
[](https://www.npmjs.com/package/@apideck/agent-analytics) [](https://www.npmjs.com/package/@apideck/agent-analytics) [](https://bundlephobia.com/package/@apideck/agent-analytics) [](https://github.com/apideck-libraries/agent-analytics/actions) [](./LICENSE) [](./tsconfig.json)
[**Install**](#install) · [**Quick start**](#quick-start-60-seconds-to-your-first-event) · [**How it works**](#how-it-works) · [**Adapters**](#built-in-adapters) · [**Markdown mirror**](#advanced-markdown-mirror-for-docs-sites) · [**FAQ**](#faq)
The problem
Client-side analytics libraries run in the browser. AI crawlers don't. That means **every time ClaudeBot, GPTBot, or Perplexity fetches a page on your site, your dashboard stays empty.**
You can't see:
- Which AI agents are reading your docs, marketing pages, or blog
- Which pages they actually fetch (vs. which you think they should)
- Which agent-driven referrals convert
- How much of your "traffic" is actually LLM training pipelines
Server logs have the data, but turning them into analytics is a pipeline project. This library is the on
Related Skills
AI Trading Bot
Autonomous AI trading experiment on Indian equities (NSE/BSE), driven by Claude Opus 4.7 + a multi-agent pipel
External Website Builder To Production
A Claude Code skill that takes a website built somewhere else (Webflow, Framer, Readdy, custom code, etc.) and
Agent Traffic Classifier
Classify web traffic from server log entries and header capture into human, AI agent, AI crawler, AI assistant
AI Traffic Detector
Detects AI coding agent traffic in server logs and analytics. Identifies Claude Code, Cursor, Cline, Aider, an
Vibepod CLI
Unified CLI for running AI coding agents in isolated containers. Includes built-in local metrics collection, H
04 Backend Database And Auth
Set up the complete backend for this VELOUR fashion eCommerce site (Next.js + TypeScript, App Router) using th
Related Agents
Audit Geo
Evaluates AI crawler access, llms.txt compliance, content citability, brand authority signals, and multi-platf
Narwhal Geo
GEO/LLMO specialist for the narwhal audit — visibility in AI answer engines (ChatGPT, Claude, Perplexity, Goog
Advisor SEO Aeo
SEO/AEO expert for Altis — getting paywalled venture research cited by AI answer engines (ChatGPT, Perplexity,