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

Only enable in production? #51

Closed jjwilliams closed 9 years ago

jjwilliams commented 9 years ago

I tried moving the init code to production.rb, but it still loads in dev mode. Any way to specify the env to run in?

jjwilliams commented 9 years ago

Nevermind, it helps when I move it to the right damn file. I think its time for sleep.

kangguru commented 9 years ago

:D

no worries. btw. did you have a look at Rack::Tracker? Thats the successor of this Gem