Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Vercel Analytics

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

Logging, monitoring and analyticsNPM

GitHubWebsite

1. License

License from npm.

github.com/vercel/analytics

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Vercel Analytics does

@vercel/analytics is not a standalone analytics tool but the client half of Vercel's Web Analytics, so what you can collect depends on your Vercel plan: visitor data is listed for all plans, custom events for Pro and Enterprise, and UTM data under a separate Plus tier.

Vercel Analytics popularity

60 / 100
Gid Score, #1046 overall
10.7M
downloads a week, npm
522
GitHub stars
226
agent projects use it
Vercel Analytics: downloads per weeknpm, @vercel/analytics 10,668,561
Vercel Analytics: GitHub starsvercel/analytics 522

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Vercel Analytics is used

  • Vercel Analytics is a dependency in 226 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.6% of the 4,867 JavaScript/TypeScript ones), #1 of 121 in logging, monitoring and analytics.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 732; those are left out of every share on this page.
  • The most used alternative in our scan is Vercel Speed Insights (109 projects).
  • Projects that use it most often also use Next.js (81.4%), Lucide React (74.3%), Tailwind Merge (69.9%).
  • It is more common in projects set up for Devin Desktop (5.4%) than for OpenAI Codex (2.3%).

By coding agent

139 projects, 4.2%
115 projects, 4.7%
106 projects, 3.5%
15 projects, 5.4%
15 projects, 3.2%
11 projects, 2.3%
9 projects, 2.6%
6 projects, 4.3%

Often used with

In 81.4% of its projects
In 74.3% of its projects
In 69.9% of its projects
In 91.2% of its projects
In 70.4% of its projects
In 62.8% of its projects
In 88.1% of its projects
In 55.3% of its projects

Vercel Analytics in practice

Strengths

Requests go through your own domain

The site calls Web Analytics "first-party". It says data is "sent through your domain to avoid ad blockers."

Visitor breakdowns are listed for all plans

The site places Web Analytics under an "All Plans" heading. It lists visitor data by page, referrer, location, operating system and browser.

No consent banner, in one builder's reading

A developer who added it to a public dashboard describes it as cookieless. They say it counts visits from aggregated signals, so no consent banner is needed. That was their reason for ruling out Google Analytics.

Agents can read the numbers through Vercel MCP

The getting-started docs say that connecting the Vercel MCP server lets a coding agent query Web Analytics, alongside docs search and project management.

Watch out for

<code>track()</code> 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 <code>inject()</code> themselves.

More about Vercel Analytics

Agent Skills for it
  • analytics: When the user wants to set up or audit analytics, or asks whether a metric or number is calculated right, what to track, or how to name even
  • analytics-product: Analytics de produto — PostHog, Mixpanel, eventos, funnels, cohorts, retencao, north star metric, OKRs e dashboards de produto.
  • analytics-tracking: When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4
  • analytics-dashboard: Turn a LinkedIn Analytics export into an interactive dark-themed React dashboard plus a written strategic analysis with 5 data-backed conten
  • analytics-engineer: Analytics engineering across data modeling, dbt, transformation, and semantic layers. Use when building dbt models, designing star schemas,
  • analytics: Use when a Process Mining overview, initial process selection, or an analytical follow-up needs routing.

See all

Head to head
Packages around it
  • next: React framework
  • clsx: className builder
  • tailwind-merge: Tailwind class merging
  • lucide-react: Icon set
  • class-variance-authority: Component variants
  • react: UI library
More in Logging, monitoring and analytics

Alternatives

Vercel Analytics This page

MITGid 6010.7M/wk

Vercel Speed Insights

Measure web performance metrics and get recommendations for improvement.

Apache-2.0Gid 557.3M/wk

Sentry for Next.js

Official Sentry SDK for error tracking and performance monitoring in Next.js apps.

MITGid 7017.7M/wk

PostHog JS

Automatic event capture and product analytics SDK for JavaScript applications.

(Apache-2.0 AND MIT)Gid 6228.4M/wk

PostHog Node.js

PostHog product analytics SDK for Node.js and server-side tracking.

MITGid 5923.8M/wk

Compare Vercel Analytics with another tool

Get started

Install it.

npm install @vercel/analytics

Rules for your agent

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.