I\'ve got google analytics setup on a rails project, and I\'ve got \"A single domain (default)\" selected for the tracking options.
I\'ve copied and pasted the js code i
I tried the gems but they didn't work; wouldn't spit out any code, etc. Seemed dumb for something so simple. So I ended up just doing this, in application.html.erb:
<% if Rails.env.production? %> (GA JS Code Snippet) <% end %>