# nytimes/react-tracking

🎯 Declarative tracking for React apps.

Repository: https://github.com/nytimes/react-tracking
Canonical: https://ross.abutalabs.com/products/react-tracking
Homepage: https://open.nytimes.com/introducing-react-tracking-declarative-tracking-for-react-apps-2c76706bb79a
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: react, tracking, track, decorator, hacktoberfest
Last push: 2023-10-18T10:28:18+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3550, "days_push": 1050, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1898, forks 131 (observed 2026-08-28T04:05:51.165732+00:00)

## What it is
react-tracking is a React library from The New York Times that provides declarative analytics tracking via a higher-order component, decorator, or React hook. It scopes tracking data to individual components and dispatches events in an analytics-platform-agnostic way.

## Use cases
- add analytics event tracking to React components declaratively
- track user interactions without polluting components with analytics code
- dispatch tracking events on component mount
- collect contextual tracking data from the component hierarchy
- swap analytics backends without changing tracking code

## When to choose
- you use React and want component-scoped, declarative tracking
- you want tracking decoupled from a specific analytics vendor
- you prefer decorators or hooks over imperative tracking calls scattered through your app

## When to avoid
- your app is not built with React
- you need server-side or non-component-based event tracking
- the project appears to be in maintenance mode with infrequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: analytics, middleware, developer-tools
- domain: web-development, frontend, analytics
- platform: cross-platform
- tags: react, tracking, higher-order-component, react-hooks, declarative, event-tracking, nodejs, web-server

## Member repositories
- nytimes/react-tracking (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.165732+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:12:46.931045+00:00, confidence not recorded.
  - readme: https://github.com/nytimes/react-tracking (fetched 2026-08-28T04:05:51.165732+00:00, sha 7e51aaafa0eb)
  - homepage: https://open.nytimes.com/introducing-react-tracking-declarative-tracking-for-react-apps-2c76706bb79a (fetched 2026-08-29T10:51:51.175727+00:00, sha a8897656e9a6)
  - registry_npm: https://registry.npmjs.org/react-tracking (fetched 2026-08-29T10:51:51.185399+00:00, sha 612bda79b5dd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
