Analytics & Tracking Packages
Product analytics and event-tracking libraries for instrumenting user behavior and shipping events to your analytics stack (PostHog, Segment).
Packages in Analytics & Tracking
posthog-js
The official browser SDK for PostHog — autocapture, session replay, feature flags, and surveys in one drop-in script.
ua-parser-js
Detects browser, engine, OS, CPU, and device type from a User-Agent string or Client Hints, in browsers and Node.js.
web-vitals
web-vitals: Measure Core Web Vitals in the Browser
Vercel Analytics
Privacy-friendly page-view and custom-event tracking for apps deployed to Vercel.
posthog
The official PostHog SDK for sending events, feature flags, and session data from any Python application.
Segment Analytics-Next
Segment's flagship JavaScript SDK for capturing and routing customer data
next-plausible
Drop-in Plausible Analytics integration for Next.js apps
@amplitude/analytics-browser
The official Amplitude Web SDK for capturing product-analytics events, sessions, and web attribution in the browser.
useragent
A dependency-free Go library for parsing browser, OS, device, and bot data out of User-Agent strings.
Device Detector
Universal PHP library for parsing user agents into browsers, OS, and device info
scarf-js
Zero-dependency npm postinstall analytics that tells maintainers who's installing their packages.
Dub
Official TypeScript SDK for the Dub.co link-management and partner-marketing API.
react-gtm-module
Drop Google Tag Manager into any React app with a single initialize() call and a dataLayer helper.
posthog-rs
The official Rust client for capturing events and evaluating feature flags with PostHog.
Dub Analytics
Client-side JavaScript and React SDK for tracking clicks, leads, and sales conversions with Dub.