Vercel Analytics
Real-time web analytics SDK for tracking traffic and user behavior.
3. Used by agents' projects
Dependency in 226 public GitHub projects set up for AI coding agents that we scanned (3.6%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
vercel.com/llms.txtFrom 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
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
Often used with
Vercel Analytics in practice
Strengths
The site calls Web Analytics "first-party". It says data is "sent through your domain to avoid ad blockers."
The site places Web Analytics under an "All Plans" heading. It lists visitor data by page, referrer, location, operating system and browser.
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.
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
The site lists custom event tracking for Pro and Enterprise plans only.
The site lists UTM parameters, more events and longer report windows under a separate heading, "Web Analytics Plus".
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.
Head to head
- Vercel Analytics vs PostHog JS used together in 14 projects
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
Measure web performance metrics and get recommendations for improvement.
Official Sentry SDK for error tracking and performance monitoring in Next.js apps.
Automatic event capture and product analytics SDK for JavaScript applications.
PostHog product analytics SDK for Node.js and server-side tracking.
Get started
Install it.
npm install @vercel/analyticsRules for your agent
## 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.