GoogleAnalyticsChromeDeveloperCookie

Short description and motivation.

Usage

  • Install Gem
  • Add Rails.application.config.assets.precompile += %w(google_analytics_chrome_developer_cookie/ga.js) to config/initializers/assets.rb
  • = javascript_include_tag 'google_analytics_chrome_developer_cookie/ga' where you want to track visitors (usually your application layout)

Configure the following environment variables:

Installation

Add this line to your application's Gemfile:

gem 'google_analytics_chrome_developer_cookie'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install google_analytics_chrome_developer_cookie

License

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