kangguru / rack-google-analytics

Simple Rack middleware for implementing google analytics tracking in your Ruby-Rack based project. Supports synchronous and asynchronous insertion and configurable load options
MIT License
257 stars 53 forks source link

rake aborted! #8

Closed danielsz closed 12 years ago

danielsz commented 12 years ago

I must have missed something obvious. I'm trying to use the gem in a rails app.

The Gemfile has gem 'rack-google_analytics', :require => "rack/google_analytics"

I added to environments/production.rb:

config.gem 'rack-google-analytics', :lib => 'rack/google-analytics' config.middleware.use Rack::GoogleAnalytics, :tracker => 'UA-31388307-1', :domain => "tuppu.net", :multiple => true

Upon the rake assets:precompile stage (locally and on heroku) I get the following.

rake aborted! rack-google-analytics is not part of the bundle. Add it to Gemfile.

What's wrong?

Thanks, Daniel

leehambley commented 12 years ago

Looks like you mixed up "rack-google_analytics" and "rack-google-analytics" - if it's anything more more than that, please post back, otherwise close the ticket :smile:

danielsz commented 12 years ago

Note to self: don't post an issue at 3 AM, just sleep on it.

And thanks, Lee.