Vercel Analytics vs PostHog JS
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Vercel Analytics is a dependency in 225 (4.6%) and PostHog JS in 67 (1.4%): Vercel Analytics is 3.4× as common. Among repos created in the last 90 days that use a logging, monitoring and analytics tool, Vercel Analytics is in 10.7% and PostHog JS in 17.9%, against 29.2% and 8.1% of older ones. 14 projects list both, often a sign of a migration or of a monorepo with several apps.
Logging, monitoring and analytics npm Updated Nov 17, 2026
| Vercel Analytics | 4.6% | |
|---|---|---|
| PostHog JS | 1.4% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| Vercel Analytics | PostHog JS | |
|---|---|---|
| Agent projects that use it | 225 | 67 |
| Rank in logging, monitoring and analytics | #1 | #8 |
| In new repos with a logging, monitoring and analytics tool (last 90 days) | 10.7% | 17.9% |
| In older repos with one | 29.2% | 8.1% |
| Downloads, last 7 days | 10.3M | 25.9M |
| GitHub stars | 520 | 648 |
| Last push to its repo | Oct 22, 2026 | Nov 17, 2026 |
| License | MIT | (Apache-2.0 AND MIT) |
| Funding | — | — |
| Projects that list both | 14 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Vercel Analytics | PostHog JS |
|---|---|---|---|
| Claude Code | 2,617 | 5.3% | 1.8% |
| GitHub Copilot | 2,350 | 4.5% | 1.0% |
| Cursor | 1,990 | 5.7% | 1.7% |
| Gemini CLI | 422 | 3.3% | 0% |
| OpenAI Codex | 409 | 2.7% | 2.2% |
| OpenCode | 304 | 3.0% | 0% |
| Devin Desktop | 231 | 6.5% | 2.6% |
| Kiro | 125 | 4.8% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Vercel Analytics
Real-time web analytics SDK for tracking traffic and user behavior.
Most often used with it:
| Next.js | 81.3% of its projects |
|---|---|
| Lucide React | 74.2% of its projects |
| Tailwind Merge | 70.2% of its projects |
| React | 91.1% of its projects |
| clsx | 70.7% of its projects |
npm install @vercel/analytics
PostHog JS
Automatic event capture and product analytics SDK for JavaScript applications.
Most often used with it:
| clsx | 73.1% of its projects |
|---|---|
| Tailwind Merge | 71.6% of its projects |
| React | 91.0% of its projects |
| Tailwind CSS | 91.0% of its projects |
| Lucide React | 70.1% of its projects |
npm install posthog-js
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.