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.

642
Other
Used by 132
70Health
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,209
Other
Used by 33
74Health
Library npm

web-vitals

web-vitals: Measure Core Web Vitals in the Browser

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

Vercel Analytics

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

520
MIT
Used by 20
82Health
SDK PyPI

posthog

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

63
Other
Used by 19
77Health
SDK npm

Segment Analytics-Next

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

480
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
38Health
Library Go

useragent

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

548
MIT
Used by 6
95Health
Library Composer

Device Detector

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

3,552
Other
Used by 4
40Health
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.

69
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.

677
MIT
Used by 3
80Health
SDK Cargo

posthog-rs

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

62
MIT
Used by 3
44Health
SDK npm

Dub Analytics

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

15
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,095
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.

291
MIT
Used by 2
49Health
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
53Health
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
64Health
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.

40,680
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,572
MIT
Used by 1
84Health
Library Composer

CrawlerDetect

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

2,408
MIT
Used by 1
49Health
Library npm

react-tracking

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

1,896
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