Module: GoogleAnalyticsOnRails::ControllerMixin::HelperMethods

Defined in:
lib/google_analytics_on_rails/controller_mixin.rb

Instance Method Summary collapse

Instance Method Details

#gaObject



47
48
49
# File 'lib/google_analytics_on_rails/controller_mixin.rb', line 47

def ga
  GoogleAnalyticsOnRails::JavaScriptBuilder.new(self, google_analytics)
end

#google_analytics_tracking_codeObject



51
52
53
# File 'lib/google_analytics_on_rails/controller_mixin.rb', line 51

def google_analytics_tracking_code
  ga.tracking_code
end