kangguru / rack-google-analytics

Simple Rack middleware for implementing google analytics tracking in your Ruby-Rack based project. Supports synchronous and asynchronous insertion and configurable load options
MIT License
257 stars 53 forks source link

Upgrade to Universal Analytics #33

Open tmaier opened 10 years ago

tmaier commented 10 years ago

Google is really pushing the migration to the new Universal Analytics. With this update, the tracking code and methods to call change significantly. https://developers.google.com/analytics/devguides/collection/upgrade/guide

I suggest to upgrade the tracking code and release this new version as version 1.0. This way it's obvious to everyone using this gem that there is a major change.

kangguru commented 10 years ago

We're already working on the migration. Until then you might checkout the "analytics-js" branch

https://github.com/kangguru/rack-google-analytics/tree/analytics-js

kangguru commented 10 years ago

1.0.0.pre1 was released today \o/ please check it out. most of the features have been ported. please let me know if you encounter any problems.

http://rubygems.org/gems/rack-google-analytics/versions/1.0.0.pre1

iconnor commented 10 years ago

Is it possible to make the GA location configurable so we can point it to:

stats.g.doubleclick.net/dc.js
kangguru commented 10 years ago

From my knowledge the Universal Analytics doesn't have support for all the dc.js features. Please also have a look at #39 using the older 0.14.0 version might an option for you if you want to used these features.