PostHog JS
Automatic event capture and product analytics SDK for JavaScript applications.
3. Used by agents' projects
Dependency in 68 public GitHub projects set up for AI coding agents that we scanned (1.1%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
Often used with
More about PostHog JS
Head to head
- Vercel Analytics vs PostHog JS used together in 14 projects
More in Logging, monitoring and analytics
Alternatives
PostHog JS This page
Real-time web analytics SDK for tracking traffic and user behavior.
Get started
Install it.
npm install posthog-jsNo step-by-step start for PostHog JS yet: we have not written its hand-checked card.