Tom Fuertes

home

Google/Universal Analytics and Rails

24 Dec 2013

Quick Post

If you're using Google Analytics or Universal Analytics, you should send the contoller and action. It lets you do some pretty crazy report pivoting without having to teach everyone regular expressions.

Google Analytics

{% gist tomfuertes/65ab92733d5de3fc042c ga.js %}

screenshot of page types in Google Analytics

Universal Analytics

{% gist tomfuertes/65ab92733d5de3fc042c analytics.js %}

screenshot of page types in Google Analytics