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

PostHog JS

Automatic event capture and product analytics SDK for JavaScript applications.

Logging, monitoring and analyticsNPM

GitHubWebsiteAPI page

1. License

License from npm.

github.com/PostHog/posthog-js

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

What PostHog JS does

Automatic event capture and product analytics SDK for JavaScript applications.

PostHog JS popularity

62 / 100
Gid Score, #915 overall
28.4M
downloads a week, npm
671
GitHub stars
68
agent projects use it
PostHog JS: downloads per weeknpm, posthog-js 28,351,473
PostHog JS: GitHub starsPostHog/posthog-js 671

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

How PostHog JS is used

  • PostHog JS is a dependency in 68 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.4% of the 4,867 JavaScript/TypeScript ones), #8 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 200; those are left out of every share on this page.
  • The most used alternative in our scan is Vercel Analytics (226 projects).
  • Projects that use it most often also use Tailwind Merge (70.6%), clsx (72.1%), React (91.2%).

By coding agent

48 projects, 1.5%
35 projects, 1.4%
24 projects, 0.8%
9 projects, 1.9%
6 projects, 2.2%

Often used with

In 70.6% of its projects
In 72.1% of its projects
In 91.2% of its projects
In 91.2% of its projects
In 70.6% of its projects
In 57.4% of its projects
In 60.3% of its projects
In 60.3% of its projects

More about PostHog JS

Head to head
More in Logging, monitoring and analytics

Alternatives

PostHog JS This page

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

Vercel Analytics

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

MITGid 6010.7M/wk

Compare PostHog JS with another tool

Get started

Install it.

npm install posthog-js

No step-by-step start for PostHog JS yet: we have not written its hand-checked card.