Description
Ahoy is first-party analytics for Rails. It tracks visits and events inside your own application and stores them in your database by default, so there is no third-party tracker to add to the page. When someone visits, Ahoy records a visit with the traffic source, including the referrer, referring domain and landing page, the location down to city and coordinates, the browser, operating system and device type, and UTM parameters. You access the current visit from a controller and track events from Ruby code, from controllers and actions, or from JavaScript. Visit creation can be deferred to JavaScript, which helps block bots that do not identify themselves in the user agent and visitors with cookies turned off. Events can be associated with models, for example by linking orders to visits. The README explains throttling, GDPR options and geocoding setup, and it offers Ahoy iOS and Android for native apps. The project is battle-tested at Instacart according to the README. The companion gems Ahoy Email and Field Test are mentioned for email analytics and A/B testing. It suits Rails teams who want analytics they own.…
Highlights
- First-party visit and event tracking for Rails
- Data stored in your own database by default
- Traffic source, location, browser and UTM capture
- JavaScript, native app and GDPR options
Ratings & Reviews
No ratings yet
Be the first to rate Ahoy.
People also visit
Ahoy FAQ
What is Ahoy?
A first-party analytics library for Rails that records visits and events in your own application, so no third-party tracker is needed.
Where is the data stored?
In your database by default. The README says you can customise it for any data store as you grow.
How do I install it?
Add the gem to your Gemfile, run bundle install and restart your server. A visit is then created when a page is opened.
Does it track native apps?
Yes. The README points to Ahoy iOS and Ahoy Android, and the JavaScript setup covers web pages.
Does it help with GDPR?
Yes. The README lists GDPR options and a dedicated section on compliance.
Is it free?
Yes. The source is public on GitHub, so it is open source.
What are the best Ahoy alternatives?
Popular alternatives to Ahoy include Active Analytics, Ahoy.js and Ahoy Email. See all Ahoy alternatives

.png?auto=compress&fit=max&w=128)

