# ankane/ahoy

Simple, powerful, first-party analytics for Rails

Repository: https://github.com/ankane/ahoy
Canonical: https://ross.abutalabs.com/products/ahoy
Language: Ruby
License: MIT
License Family: permissive
Topics: analytics, first-party-analytics, rails, visits, events
Last push: 2026-08-17T05:37:32+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 4571, "days_push": 16, "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 4481, forks 387 (observed 2026-08-28T04:08:51.152029+00:00)

## What it is
Ahoy is a first-party analytics library for Rails that tracks visits and events from Ruby, JavaScript, and native apps. Data is stored in your own database by default, with customizable data stores and GDPR compliance options.

## Use cases
- track page visits and user events in a Rails app
- self-host first-party analytics without third-party trackers
- capture traffic sources, utm parameters, and referrers
- record user location and device technology for visits
- track events from JavaScript or native iOS/Android apps
- build GDPR-compliant analytics with data stored in my own database

## When to choose
- you run a Rails application and want simple, privacy-friendly analytics
- you want analytics data in your own database for full control
- you need visit and event tracking across web and native apps

## When to avoid
- you need a full dashboard and reporting UI out of the box
- your stack is not Ruby on Rails
- you prefer hosted analytics like Google Analytics or Plausible

## Facets
- artifact type: library
- maturity: stable
- function: analytics, web-framework, middleware
- domain: analytics, web-development, backend
- platform: ruby, browser
- tags: rails, first-party-analytics, event-tracking, visit-tracking, gdpr, geocoding, web-server

## Member repositories
- ankane/ahoy (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:51.152029+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:20:32.835322+00:00, confidence not recorded.
  - readme: https://github.com/ankane/ahoy (fetched 2026-08-28T04:08:51.152029+00:00, sha af7fc4d644d8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
