# igrigorik/ga-beacon

Google Analytics collector-as-a-service (using GA measurement protocol).

Repository: https://github.com/igrigorik/ga-beacon
Canonical: https://ross.abutalabs.com/products/ga-beacon
Language: Go
License: MIT
License Family: permissive
Last push: 2023-02-06T10:16:14+00:00

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

## Adoption (not part of the score)
Stars 3541, forks 353 (observed 2026-08-28T04:08:09.246934+00:00)

## What it is
A small Go service that acts as a collector-as-a-service for Google Analytics via the Measurement Protocol, letting you track page views with a simple embedded image where JavaScript is not allowed. It is designed to be deployed on Google App Engine, with the public instance being a demo only.

## Use cases
- track views of a GitHub README with an image pixel
- add analytics to pages that disallow JavaScript
- track Google Sheets views with Google Analytics
- self-host a Google Analytics pixel collector
- embed a tracking beacon in markdown or email

## When to choose
- you can only embed an image, not scripts, on the page you want to track
- you want lightweight view counting for docs, READMEs, or spreadsheets
- you want to deploy your own GA collector on App Engine

## When to avoid
- you need full client-side analytics with events and sessions
- you cannot deploy your own instance and need production-grade reliability
- you have migrated off Universal Analytics, which Google has sunset

## Facets
- artifact type: service
- maturity: maintenance
- function: analytics, http-server, web-scraping
- domain: analytics, web-development, self-hosted
- platform: go, cloud, self-hosted
- tags: google-analytics, pixel-tracking, measurement-protocol, app-engine, tracking-beacon, web-server

## Member repositories
- igrigorik/ga-beacon (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:09.246934+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:34:29.573044+00:00, confidence not recorded.
  - readme: https://github.com/igrigorik/ga-beacon (fetched 2026-08-28T04:08:09.246934+00:00, sha f66cf748d58f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
