{
 "kind": "tool",
 "slug": "vercel-analytics",
 "path": "tools/vercel-analytics/",
 "name": "Vercel Analytics",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Logging, monitoring and analytics",
   "tools/observability-analytics/"
  ]
 ],
 "lead": "Real-time web analytics SDK for tracking traffic and user behavior.",
 "chips": [
  {
   "label": "Logging, monitoring and analytics",
   "path": "tools/observability-analytics/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @vercel/analytics"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/vercel/analytics"
  },
  {
   "label": "Website",
   "href": "https://github.com/vercel/analytics#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/vercel/analytics"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 22, 2026",
   "note": "Latest GitHub release Mar 12, 2026. ",
   "src": "https://github.com/vercel/analytics"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "226 projects",
   "status": "info",
   "sub": "#1 of 121 in its category",
   "note": "Dependency in 226 public GitHub projects set up for AI coding agents that we scanned (3.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://vercel.com/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Vercel Analytics does",
   "parts": [
    {
     "t": "prose",
     "text": "@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."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Vercel Analytics popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "60",
       "of": "/ 100",
       "l": "Gid Score, #1046 overall"
      },
      {
       "n": "10.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "522",
       "l": "GitHub stars"
      },
      {
       "n": "226",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Vercel Analytics is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "139 projects, 4.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "115 projects, 4.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "106 projects, 3.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "15 projects, 5.4%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "15 projects, 3.2%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "11 projects, 2.3%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "9 projects, 2.6%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "6 projects, 4.3%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 81.4% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 74.3% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 69.9% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 91.2% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 70.4% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 62.8% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 88.1% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 55.3% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Vercel Analytics in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Requests go through your own domain",
       "v": "The site calls Web Analytics \"first-party\". It says data is \"sent through your domain to avoid ad blockers.\""
      },
      {
       "l": "Visitor breakdowns are listed for all plans",
       "v": "The site places Web Analytics under an \"All Plans\" heading. It lists visitor data by page, referrer, location, operating system and browser."
      },
      {
       "l": "No consent banner, in one builder's reading",
       "v": "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."
      },
      {
       "l": "Agents can read the numbers through Vercel MCP",
       "v": "The getting-started docs say that connecting the Vercel MCP server lets a coding agent query Web Analytics, alongside docs search and project management."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "<code>track()</code> events are a Pro and Enterprise feature",
       "v": "The site lists custom event tracking for Pro and Enterprise plans only."
      },
      {
       "l": "UTM parameters sit under \"Web Analytics Plus\"",
       "v": "The site lists UTM parameters, more events and longer report windows under a separate heading, \"Web Analytics Plus\"."
      },
      {
       "l": "A code change, not a toggle, on one SvelteKit site",
       "v": "The Evidence.dev builder expected a dashboard switch. They had to install the package and call <code>inject()</code> themselves."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Vercel Analytics",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "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."
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Vercel Analytics vs PostHog JS",
         "note": "used together in 14 projects",
         "path": "tools/compare/vercel-analytics-vs-posthog-js/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "next: React framework",
        "clsx: className builder",
        "tailwind-merge: Tailwind class merging",
        "lucide-react: Icon set",
        "class-variance-authority: Component variants",
        "react: UI library"
       ]
      },
      {
       "title": "More in Logging, monitoring and analytics",
       "path": "tools/observability-analytics/",
       "items": [
        {
         "text": "psutil",
         "path": "tools/psutil/"
        },
        {
         "text": "OpenTelemetry",
         "path": "tools/opentelemetry/"
        },
        {
         "text": "Pino",
         "path": "tools/pino/"
        },
        {
         "text": "structlog",
         "path": "tools/structlog/"
        },
        {
         "text": "Loguru",
         "path": "tools/loguru/"
        },
        {
         "text": "pino-pretty",
         "path": "tools/pino-pretty/"
        },
        {
         "text": "OpenTelemetry API",
         "path": "tools/opentelemetry-api/"
        },
        {
         "text": "OpenTelemetry SDK",
         "path": "tools/opentelemetry-sdk/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Vercel Analytics",
       "me": true,
       "facts": [
        "MIT",
        "Gid 60",
        "10.7M/wk"
       ]
      },
      {
       "name": "Vercel Speed Insights",
       "why": "Measure web performance metrics and get recommendations for improvement.",
       "path": "tools/vercel-speed-insights/",
       "facts": [
        "Apache-2.0",
        "Gid 55",
        "7.3M/wk"
       ]
      },
      {
       "name": "Sentry for Next.js",
       "why": "Official Sentry SDK for error tracking and performance monitoring in Next.js apps.",
       "path": "tools/sentry-nextjs/",
       "facts": [
        "MIT",
        "Gid 70",
        "17.7M/wk"
       ]
      },
      {
       "name": "PostHog JS",
       "why": "Automatic event capture and product analytics SDK for JavaScript applications.",
       "path": "tools/posthog-js/",
       "facts": [
        "(Apache-2.0 AND MIT)",
        "Gid 62",
        "28.4M/wk"
       ]
      },
      {
       "name": "PostHog Node.js",
       "why": "PostHog product analytics SDK for Node.js and server-side tracking.",
       "path": "tools/posthog-node/",
       "facts": [
        "MIT",
        "Gid 59",
        "23.8M/wk"
       ]
      }
     ],
     "more": "Compare Vercel Analytics with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @vercel/analytics"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Vercel Analytics\n- 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' })`.\n- Custom events are listed for Pro and Enterprise plans only. Check the user's Vercel plan before building features that depend on `track()` data.\n- Do not assume UTM parameters or longer report windows are available. The site lists them under \"Web Analytics Plus\".\n- 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.\n- 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.\n- Use an OAuth-capable MCP client, and let the user authorize access to their Vercel account themselves.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @vercel/analytics"
  ],
  [
   "Category",
   "Logging, monitoring and analytics"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v2.0.1, March 12, 2026"
  ],
  [
   "On GitHub since",
   "October 2022"
  ],
  [
   "Gid Score",
   "59.8"
  ],
  [
   "Rank in category",
   "#1 of 121"
  ],
  [
   "GitHub",
   "vercel/analytics"
  ],
  [
   "Last change",
   "Oct 22, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/vercel.png"
}