Google Analytics Rails Plugin w/ new tracking code
Posted on February 10th, 2008 by thetacom
If you using the Google Analytics plugin, but want to use the new tracking code. Then replace the self.included(base) definition in “google_analytics/lib/google_analytics.rb” with this one:
def self.included(base) #nodoc#
base.class_eval do
@@no_analytics_key_message = ‘Add your analytics key with code like GoogleAnalyticsHelper.analytics_key = “ZZ-NNNNNN-N”‘
[...]
Filed under: RoR Plugins, Ruby on Rails | Comments





