Posts Tagged ‘google analytics’

Google Analytics ‘rubaidh’ plugin with multiple account support

Monday, August 11th, 2008

For the Bonnes-Ondes project, we want to allow users to follow their listener visits. The solution is simple : associate a Google Analytics tracker id to the Bonnes-Ondes host … but the Google Analytics ‘rubaidh’ plugin supports only a single Google Analytics account.

A recent patch allows to override the Google Anaytics tracker id, but we wanted to use several tracker ids in our case.

A small patch later and the Bonnes-Ondes controller can associate a Google Analytics account to the request. The after filter generates google code for several accounts. This plugin fork uses a GoogleAnalytics instance for each account and concats the code of each found instance.

(more…)