Google Analytics plugin

Plugin details

This is a quick 'n' dirty module to easily enable Google Analytics support in your application.

Websitehttp://woss.name/2006/05/09/google-analytics-plugin/ Repositoryhttp://svn.rubaidh.com/plugins/trunk/google_analytics Author Graeme Mathieson Tags Google, analytics LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://svn.rubaidh.com/plugins/trunk/google_analytics

By default it'll output the analytics code for every single page automatically, if it's configured correctly. This is done by adding:

    Rubaidh::GoogleAnalytics.tracker_id = 'UA-12345-67'


to your `config/environment.rb`, inserting your own tracker id. This can be discovered by looking at the value assigned to +_uacct+ in the Javascript code.

If you want to disable the code insertion for particular pages, add the following to controllers that don't want it:

    skip_after_filter :add_google_analytics_code

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago