Skip to content

elcuervo/minuteman-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minuteman Rails

Code Climate Build Status

Track everything in your Rails app using Minuteman

You can use it within your Controllers to track stuff:

This are the new toys you'll have: track, events, analytics.

Installation

gem install minuteman-rails

Initializer

# Optional
# config/initializers/minuteman.rb

Minuteman::Rails.configure |c|
  c.silent = true
end

Example

class SomethingController < ApplicationController
  def create
    # Track an event as you would using Minuteman
    track("something:create", current_user.id) if current_user
  end

  def index
    # List all the events
    @current_events = events
  end

  def show
    # Access the analytics and make operations
    @group = analytics.month("something:create") - analytics.month("free:users")
  end
end

About

Use Minuteman easily in your Rails app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages