# googleanalytics/autotrack

Automatic and enhanced Google Analytics tracking for common user interactions on the web.

Repository: https://github.com/googleanalytics/autotrack
Canonical: https://ross.abutalabs.com/products/autotrack
Language: JavaScript
License: NOASSERTION
License Family: other
Archived: true
Last push: 2024-08-20T16:56:44+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3960, "days_push": 743, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, 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 4907, forks 546 (observed 2026-08-28T04:09:02.242100+00:00)

## What it is
A JavaScript library that provides automatic and enhanced Google Analytics tracking for common user interactions like clicks, scrolling, and element visibility. It ships as a small plugin-based script built on analytics.js with declarative event tracking via HTML attributes.

## Use cases
- track user clicks and events on my website without writing custom analytics code
- measure how far users scroll down a page
- track when elements become visible in the viewport
- clean up inconsistent URL paths in Google Analytics reports
- track media queries and viewport breakpoints in analytics
- add declarative event tracking via HTML attributes

## When to choose
- you are maintaining a legacy site still on analytics.js and need enhanced interaction tracking
- you want a small, plugin-based analytics.js enhancement with declarative event tracking

## When to avoid
- you are starting a new project - the library is no longer actively maintained
- you use Google Analytics 4 (gtag.js) rather than the legacy analytics.js
- you need guaranteed bug fixes or security updates

## Facets
- artifact type: library
- maturity: abandoned
- function: analytics, developer-tools
- domain: web-development, analytics, frontend
- platform: browser
- tags: google-analytics, event-tracking, analyticsjs, user-interaction-tracking, unmaintained, web-server, nodejs

## Member repositories
- googleanalytics/autotrack (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:02.242100+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:18:06.423988+00:00, confidence not recorded.
  - readme: https://github.com/googleanalytics/autotrack (fetched 2026-08-28T04:09:02.242100+00:00, sha 780badf7a7d9)
  - registry_npm: https://registry.npmjs.org/autotrack (fetched 2026-08-29T09:00:31.482286+00:00, sha 8cf0f2d117df)
- Data as of 2026-08-30T08:39:29.467469+00:00.
