Ahoy
First-party visit and event tracking, stored in your own tables
No ratings yet
- Gem
- ahoy_matey
- Repository
- ankane/ahoy
- License
- MIT
- Stars
- 4,200
- Added
- August 13, 2026
About
Ahoy tracks visits and events into your own database. No third party sees your users'
behaviour, and the data is joinable against everything else in your schema.
What you get
- A
visitstable with source, referrer, device and location - An
eventstable you write to from Ruby or JavaScript - Association helpers, so a visit belongs to a user
- Works with Turbo
Adding it
ruby
# Gemfile
gem "ahoy_matey"
ruby
# app/controllers/orders_controller.rb
ahoy.track "Completed checkout", order_id: @order.id
The joinable-data argument
"Which acquisition source produces customers who stay past month three" is a SQL join
when the analytics data is in your database, and a data-export project when it is not.
Discussion (0)
Sign in to join the discussion.
No comments yet.