• Stars
    star
    357
  • Rank 119,149 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A full-featured, mountable analytics dashboard for your Rails app, powered by the Ahoy gem.

AhoyCaptain

A full-featured, mountable analytics dashboard for your Rails app, shamelessly inspired by Plausible Analytics, powered by the Ahoy gem.

Notice

Currently requires using PG and a JSONB column for your data.

Installation

1. Do the bundle

Drop it in:

$ bundle add ahoy_captain

2. Install it

$ rails g ahoy_captain:install

3. Make sure your events are setup correctly

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 tracking controller and action in your Ahoy::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]).count
AhoyCaptain.event.with_routes.count

This can be fully-customized. See the initializer config/initializers/ahoy_captain.rb for more.

4. Star this repo

No, seriously, I need all the internet clout I can get.

5. Analyze your nightmares

If you have a large dataset (> 1GB) you probably want some indexes. rails g ahoy_captain:migration

Features

  • 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

Coming soon ™️

  • Bug fixes and performance improvements

Contributors

This was built during the Rails Hackathon in July 2023 with afogel and dnoetz.

Contributions

Do your worst; please and thank you in advance! :)

License

The gem is available as open source under the terms of the MIT License.

More Repositories

1

caffeinate

A Rails engine for drip campaigns/scheduled sequences and periodical support. Works with ActionMailer, and other things.
Ruby
342
star
2

turbo_flash

Automagically include your flash messages in your Ruby on Rails Hotwire TurboStream responses.
Ruby
61
star
3

setsy

Settings for classes backed by a database with defaults.
Ruby
37
star
4

attributary

Like ActiveModel::Attributes but less fluffy and more attribute-y
Ruby
37
star
5

mailtime

Make sending mails from Rails suck less.
Ruby
28
star
6

metricky

Build, query, and render metrics from your Rails application.
Ruby
26
star
7

mattermost-ruby

An ActiveRecord-inspired API client for Mattermost
Ruby
26
star
8

jeanine

A lightning-fast, batteries-included Ruby web micro-framework.
Ruby
14
star
9

hotflash

Automagically inject flash messages into Ruby on Rails TurboStream responses using Hotwire.
Ruby
12
star
10

gearhead

Generate an API for your database, with searching and filtering, automatically
Ruby
10
star
11

caffeinate-webui

HTML
9
star
12

activeduty

Service objects.
Ruby
9
star
13

consolecreep

Creep on which one of your developers is doing what in Rails console
Ruby
7
star
14

caffeinate-marketing

The caffeinate.email site
CSS
4
star
15

formed

The form object pattern for Ruby on Rails you never knew you needed so badly.
Ruby
4
star
16

turbo

JavaScript
4
star
17

json-benchmark

Ruby
3
star
18

acts_as_boolean

Treat time-y attributes like boolean attributes.
Ruby
2
star
19

auto_previews

Automatically create mailer previews for your mailers.
Ruby
2
star
20

active_form

Ruby
2
star
21

delete_you_later

Delete/destroy associated ActiveRecord records in the background with ease.
Ruby
2
star
22

sidekiq_retry_on

Ruby
2
star
23

brody_app

My really opinionated Rails starter app that should be a template
Ruby
1
star
24

asdfasdf

Ruby
1
star
25

activeadminamazingcrap

Ruby
1
star
26

typicode

Ruby
1
star
27

darted

Ruby
1
star
28

rails-settings-cached

Ruby
1
star
29

active_action

An elegant DSL to define batch actions in your Rails controllers and display them in your views.
Ruby
1
star