# react-ga/react-ga

React Google Analytics Module

Repository: https://github.com/react-ga/react-ga
Canonical: https://ross.abutalabs.com/products/react-ga
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: react, google-analytics, react-google-analytics, javascript
Archived: true
Last push: 2023-01-06T20:18:16+00:00

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

## Adoption (not part of the score)
Stars 5098, forks 429 (observed 2026-08-28T04:09:09.719645+00:00)

## What it is
A JavaScript module for adding Google Analytics (Universal Analytics) tracking to React applications. It provides a React-friendly API for initializing GA, tracking pageviews, events, and outbound links.

## Use cases
- track pageviews in a React SPA
- send custom events to Google Analytics from React components
- track outbound link clicks in React apps
- initialize Google Analytics in a React project
- standardize GA instrumentation across React websites

## When to choose
- your React app still uses Universal Analytics (UA- tracking IDs)
- you want a simple, opinionated wrapper around the GA library for React

## When to avoid
- you need Google Analytics 4 (GA4) support - use react-ga4 instead
- you are starting a new project, since Universal Analytics is deprecated by Google

## Facets
- artifact type: library
- maturity: maintenance
- function: analytics
- domain: web-development, frontend, analytics
- platform: browser, cross-platform
- tags: react, google-analytics, universal-analytics, pageview-tracking, event-tracking, nodejs

## Member repositories
- react-ga/react-ga (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.719645+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-29T18:02:13.798700+00:00, confidence not recorded.
  - readme: https://github.com/react-ga/react-ga (fetched 2026-08-28T04:09:09.719645+00:00, sha dd9d1e55a3bb)
  - registry_npm: https://registry.npmjs.org/react-ga (fetched 2026-08-29T08:57:25.290674+00:00, sha 2db735c5b328)
- Data as of 2026-08-30T08:39:29.467469+00:00.
