halfdan / piwik-ruby-tracking

A Ruby Gem that allows you to add the Piwik Tracking Code to Sinatra, Padrinorb and Rails
MIT License
52 stars 33 forks source link

Fixes errors when returning non html formats #2

Closed david-shockley closed 13 years ago

david-shockley commented 13 years ago

add_piwik_analytics_tracking now checks Config.enabled? before trying to add the javascript code.

halfdan commented 13 years ago

Thanks David!