hybridgroup/rack-google_analytics — pull request #1 by gfrancesco (2013-01-23 13:23:07+00:00)
Title: Add option to put code in <head>

There are cases where putting analytics code in `

` is required, for example to verify a site with webmaster tools.

This PR adds a conf option to put code in `

` instead of `

`:

`config.middleware.use("Rack::GoogleAnalytics", :web_property_id => "UA-XXXXXXXX-1", :async => true, :position => :head)`

Code will be inserted in `

` if no `:position` option in provided.