- Notifications
You must be signed in to change notification settings - Fork24
A full-featured, mountable analytics dashboard for your Rails app, powered by the Ahoy gem.
License
joshmn/ahoy_captain
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A full-featured, mountable analytics dashboard for your Rails app, shamelessly inspired by Plausible Analytics, powered by the Ahoy gem.
Currently requires using PG and a JSONB column for your data.
Drop it in:
$ bundle add ahoy_captain
$ rails g ahoy_captain:install
AhoyCaptain doesn't do any tracking for you; it merely provides a dashboard for your data from the Ahoy gem.
By default, AhoyCaptain assumes you're trackingcontroller
andaction
in yourAhoy::Event
properties, and a page view event is named$view
. See this section for more information:https://github.com/ankane/ahoy#events
For a quick sanity check:
AhoyCaptain.event.where(name:AhoyCaptain.config.event[:view_name]).countAhoyCaptain.event.with_routes.count
This can be fully-customized. See the initializerconfig/initializers/ahoy_captain.rb
for more.
No, seriously, I need all the internet clout I can get.
If you have a large dataset (> 1GB) you probably want some indexes.rails g ahoy_captain:migration
- Top sources
- Top pages, landing pages, and exit pages
- UTM reporting
- Top locations, by countries, regions, and cities
- Top devices, by browser, OS, and device type
- Goal tracking
- Funnels
- Filter by:
- Page
- Location
- Device type
- OS
- UTM tags
- Goal
- Event Property
- CSV exports
- Date comparison
- Bug fixes and performance improvements
This was built during the Rails Hackathon in July 2023 withafogel anddnoetz.
Do your worst; please and thank you in advance! :)
The gem is available as open source under the terms of theMIT License.
About
A full-featured, mountable analytics dashboard for your Rails app, powered by the Ahoy gem.