<img src=“
” /> <img src=“travis-ci.org/mattways/analytics-rails.png?branch=master” alt=“Build Status” /> <img src=“
” alt=“Dependency Status” />
Analytics Rails
Adds a simple helper to create the google analytics include tag.
Install
Put this line in your Gemfile:
gem 'analytics-rails'
Then bundle:
$ bundle
Usage
In your layout add a line like this in your head:
= google_analytics_include_tag 'your-id'
(Will only show the include tag in production env)