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
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
next-plausible
Drop-in Plausible Analytics integration for Next.js apps
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
@posthog/hogql-parser
WebAssembly build of PostHog's ANTLR4 HogQL/Hog grammar, returning JSON ASTs to any JavaScript or TypeScript runtime.
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.
react-native-in-app-review
Triggers the native in-app review prompt on iOS, Android, and Huawei AppGallery from a single React Native API.
Matomo Referrer Spam List
A community-maintained list of known referrer spam domains for filtering analytics data.
ahoy.js
Lightweight JavaScript library for tracking website visits and events with any backend.
Matomo Search Engine & Social List
Community-maintained YAML definitions of search engines, social networks, and AI assistants.
telemetry
Define and collect telemetry events and traces from Sanity CLI, Studio, and other TypeScript apps.