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
Sort:Used by Most Apps
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.
react-ga
A lightweight wrapper around Google Universal Analytics that gives React apps pageview, event, timing, and outbound-link tracking with a testable API.
plausible-tracker
A lightweight, dependency-free TypeScript client for sending custom events and page views to Plausible Analytics.
Matomo PHP Tracker
The official PHP client for the Matomo Analytics Tracking API, for server-side event and visit tracking.
@customerio/cdp-analytics-browser
Browser-side analytics SDK for Customer.io's Data Pipelines (CDP), tracking page views, identities, and events.
rudder-sdk-python
RudderStack's official Python SDK for sending track, identify, page, group, alias, and screen events from server-side apps to your data pipeline.
@posthog/hogql-parser
WebAssembly build of PostHog's ANTLR4 HogQL/Hog grammar, returning JSON ASTs to any JavaScript or TypeScript runtime.
GrowthBook JS SDK
The official JavaScript/TypeScript SDK for GrowthBook feature flags, A/B testing, and remote config.
CrawlerDetect
A PHP library for detecting bots, crawlers, and spiders via the User-Agent header.
react-tracking
Declarative, analytics-platform-agnostic event tracking for React apps via HOC, decorator, or hook.