Impressionist

#2 Impressionist
7/19/2015

Summary

A lightweight plugin that logs impressions per action or manually per model
2
view analytics rails

Summary

Gemfile     gem 'impressionist'
bash    bundle install
    rails g impressionist
    rake db:migrate
blogs_controller.rb    BlogsController < ApplicationController
      impressionist :actions=>[:show,:index]
    end

    def show
      @blog = Blog.find
      impressionist(@blog, "message...") # 2nd argument is optional
    end    
blog.rb    class Blog < ActiveRecord::Base
      is_impressionable
    end
index.html.erb    @blog.impressionist_count
7865030?v=3&s=64
Schwad said about 2 months ago:

This is really handy! I had been using all sorts of mixpanel configurations, etc to try and track impressions on a site where all my visitors were anonymous, *not* users, and after watching this I think I'm going to have to give impressionist a go! Great screencast!

Login to Comment