# Vercel Analytics — card for AI agents

Real-time web analytics SDK for tracking traffic and user behavior.

Category: Logging, monitoring and analytics · npm package `@vercel/analytics` · latest version 2.0.1 (checked 2026-11-01)
Install: `npm install @vercel/analytics`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## Vercel Analytics
- Import `track` from the package root and pass an event name plus a properties object: `import { track } from '@vercel/analytics'`, then `track('Signup', { location: 'Hero' })`.
- Custom events are listed for Pro and Enterprise plans only. Check the user's Vercel plan before building features that depend on `track()` data.
- Do not assume UTM parameters or longer report windows are available. The site lists them under "Web Analytics Plus".
- One builder's experience on Evidence.dev: a new `pages/+layout.svelte` replaced the framework's built-in layout. If a framework ships its own layout, wrap it (there, `EvidenceDefaultLayout`) instead of overwriting it.
- To read analytics data, connect the Vercel MCP server with `npx -y add-mcp https://mcp.vercel.com -g`. The docs say it can query Web Analytics.
- Use an OAuth-capable MCP client, and let the user authorize access to their Vercel account themselves.

## Agent Skills for it
- analytics from coreyhaines31/marketingskills: `npx skills add coreyhaines31/marketingskills --skill analytics`
- analytics-product from sickn33/agentic-awesome-skills: `npx skills add sickn33/agentic-awesome-skills --skill analytics-product`
- analytics-tracking from davila7/claude-code-templates: `npx skills add davila7/claude-code-templates --skill analytics-tracking`
- analytics-dashboard from charlie947/social-media-skills: `npx skills add charlie947/social-media-skills --skill analytics-dashboard`
- analytics-engineer from borghei/Claude-Skills: `npx skills add borghei/Claude-Skills --skill analytics-engineer`
- analytics from microsoft/power-platform-skills: `npx skills add microsoft/power-platform-skills --skill analytics`

## Docs written for agents
- [llms.txt (index of the docs)](https://vercel.com/llms.txt)

## What it is
- `@vercel/analytics` is the npm package that sends data to Vercel's Web Analytics. The maintainers' GitHub tagline is "Privacy-friendly, real-time traffic insights". The repository was created in October 2022 and is MIT licensed.
- The Vercel site says Web Analytics lets you view visitor data by page, referrer, location, operating system and browser. You can also send named events from code with `track()`, imported from `@vercel/analytics`. The site lists custom events for Pro and Enterprise plans.
- One builder put it on a SvelteKit-based Evidence.dev site. They write that it was not a dashboard toggle there: they had to install the package and call `inject()` somewhere in the app.

## Caveats
- `track()` events are a Pro and Enterprise feature: The site lists custom event tracking for Pro and Enterprise plans only.
- UTM parameters sit under "Web Analytics Plus": The site lists UTM parameters, more events and longer report windows under a separate heading, "Web Analytics Plus".
- A code change, not a toggle, on one SvelteKit site: The Evidence.dev builder expected a dashboard switch. They had to install the package and call `inject()` themselves.
- A new layout file wiped out Evidence.dev's UI: The builder added a `pages/+layout.svelte` just to call `inject()`. Evidence.dev copied it over its own layout, and every page lost its navigation, sidebar, theming and layout chrome. Their fix was to wrap `EvidenceDefaultLayout` instead of replacing it.

## Numbers (AgentGid data)
- Gid Score: 59.8 (#1046 of all tools, 31 of 121 in its category)
- Used in 226 public projects set up for AI coding agents (3.6%)
- Downloads last week: 10,668,561 (as of 2026-11-24), +29.7% over 4 weeks
- GitHub stars: 522 (as of 2026-11-24)
- Last push: 2026-10-22

## Often used with
Next.js 81.4%, Lucide React 74.3%, Tailwind Merge 69.9%, React 91.2%, clsx 70.4%, Class Variance Authority 62.8%

## Checked alternatives (same job)
- Vercel Speed Insights: https://agentgid.com/tools/vercel-speed-insights/agent.md
- Sentry for Next.js: https://agentgid.com/tools/sentry-nextjs/agent.md
- PostHog JS: https://agentgid.com/tools/posthog-js/agent.md
- PostHog Node.js: https://agentgid.com/tools/posthog-node/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/vercel-analytics/
- Homepage: https://github.com/vercel/analytics#readme
- Repository: https://github.com/vercel/analytics
- Source: https://github.com/vercel/analytics
- Source: https://github.com/vercel/analytics/releases
- Source: https://vercel.com/analytics
- Source: https://vercel.com/llms.txt
- Source: https://vercel.com/docs/getting-started-with-vercel.md?from=llms-txt

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
