#2 Impressionist

Summary

A lightweight plugin that logs impressions per action or manually per model
view analytics rails 5:50

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
Schwad said almost 3 years ago on Impressionist :

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!

[email protected] said over 2 years ago on Impressionist :

It seems that this gem is not really maintained anymore.


You can refer to this issue on Github to get more info.

[email protected] said about 2 years ago on Impressionist :

Awesome episode!

Login to Comment