rack-google_analytics
Added by ambethia
at June 03, 2010 02:46
GitHub stats:
watcher(s)
fork(s)
About
Rack::GoogleAnalytics is middleware for embedding tracking code
Usage
require "rack/google_analytics"
use Rack::GoogleAnalytics, :web_property_id => "UA-000000-1"
app = lambda { |env| [200, { 'Content-Type' => 'text/html' }, '<html><body></body></html>'] }
run app
Configuring for a Rails App
config.gem "ambethia-rack-google_analytics", :lib => "rack/google_analytics", :source => "http://gems.github.com"
config.middleware.use "Rack::GoogleAnalytics", :web_property_id => "UA-0000000-1"

