I have installed the Gem Ahoy as per the instruction in the link -> https://github.com/ankane/ahoy
Add this line to your application’s Gemfile:
gem 'ahoy_matey'
And add the javascript file in app/assets/javascripts/application.js after jQuery.
//= require jquery
//= require ahoy
MySQL or SQLite
Add activeuuid to your Gemfile.
gem 'activeuuid', '>= 0.5.0'
And run:
rails generate ahoy:stores:active_record
rake db:migrate
The last command produces following error
rake db:migrate
== CreateVisits: migrating ===================================================
-- create_table(:visits, {:id=>false})
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedObject: ERROR: type "binary" does not exist
LINE 1: CREATE TABLE "visits" ("id" binary(16) PRIMARY KEY, "visitor...