Packages

Analytics & Tracking Packages

Product analytics and event-tracking libraries for instrumenting user behavior and shipping events to your analytics stack (PostHog, Segment).

32 packages

Packages in Analytics & Tracking

93Health
SDK npm

posthog-js

The official browser SDK for PostHog — autocapture, session replay, feature flags, and surveys in one drop-in script.

614
Other
Used by 133
76Health
Library npm

ua-parser-js

Detects browser, engine, OS, CPU, and device type from a User-Agent string or Client Hints, in browsers and Node.js.

10,189
Other
Used by 33
75Health
Library npm

web-vitals

web-vitals: Measure Core Web Vitals in the Browser

8,626
Apache 2.0
Used by 29
66Health
SDK npm

Vercel Analytics

Privacy-friendly page-view and custom-event tracking for apps deployed to Vercel.

516
MIT
Used by 20
82Health
SDK PyPI

posthog

The official PostHog SDK for sending events, feature flags, and session data from any Python application.

61
Other
Used by 19
84Health
SDK npm

Segment Analytics-Next

Segment's flagship JavaScript SDK for capturing and routing customer data

478
MIT
Used by 10
35Health
Library npm

next-plausible

Drop-in Plausible Analytics integration for Next.js apps

709
MIT
Used by 8
90Health
SDK npm

@amplitude/analytics-browser

The official Amplitude Web SDK for capturing product-analytics events, sessions, and web attribution in the browser.

181
MIT
Used by 7
40Health
Library Go

useragent

A dependency-free Go library for parsing browser, OS, device, and bot data out of User-Agent strings.

547
MIT
Used by 6
96Health
Library Composer

Device Detector

Universal PHP library for parsing user agents into browsers, OS, and device info

3,528
Other
Used by 4
48Health
Tool npm

scarf-js

Zero-dependency npm postinstall analytics that tells maintainers who's installing their packages.

178
Apache 2.0
Used by 4
73Health
SDK npm

Dub

Official TypeScript SDK for the Dub.co link-management and partner-marketing API.

68
MIT
Used by 4
38Health
SDK npm

react-gtm-module

Drop Google Tag Manager into any React app with a single initialize() call and a dataLayer helper.

676
MIT
Used by 3
79Health
SDK Cargo

posthog-rs

The official Rust client for capturing events and evaluating feature flags with PostHog.

63
MIT
Used by 3
38Health
SDK npm

Dub Analytics

Client-side JavaScript and React SDK for tracking clicks, leads, and sales conversions with Dub.

14
MPL-2.0
Used by 3
46Health
SDK npm

react-ga

A lightweight wrapper around Google Universal Analytics that gives React apps pageview, event, timing, and outbound-link tracking with a testable API.

5,096
Apache 2.0
Used by 2
34Health
SDK npm

plausible-tracker

A lightweight, dependency-free TypeScript client for sending custom events and page views to Plausible Analytics.

289
MIT
Used by 2
60Health
SDK Composer

Matomo PHP Tracker

The official PHP client for the Matomo Analytics Tracking API, for server-side event and visit tracking.

220
BSD 3
Used by 2
45Health
SDK npm

@customerio/cdp-analytics-browser

Browser-side analytics SDK for Customer.io's Data Pipelines (CDP), tracking page views, identities, and events.

9
MIT
Used by 2
59Health
SDK PyPI

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.

3
MIT
Used by 2
92Health
Library npm

@posthog/hogql-parser

WebAssembly build of PostHog's ANTLR4 HogQL/Hog grammar, returning JSON ASTs to any JavaScript or TypeScript runtime.

39,974
MIT
Used by 1
92Health
SDK npm

GrowthBook JS SDK

The official JavaScript/TypeScript SDK for GrowthBook feature flags, A/B testing, and remote config.

8,445
MIT
Used by 1
75Health
Library Composer

CrawlerDetect

A PHP library for detecting bots, crawlers, and spiders via the User-Agent header.

2,407
MIT
Used by 1
49Health
Library npm

react-tracking

Declarative, analytics-platform-agnostic event tracking for React apps via HOC, decorator, or hook.

1,898
Apache 2.0
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers