There is the initial heroku app name like something.herokuapp.com, then there is the ssl certified heroku app name like somethingelse.herokussl.com, and finally there is the actual website name www.anothername.com that is cname'd to the heroku ssl address. Which url should I ask google analytics to generate the tracking analytics code for?
2 Answers
I tried it with all three urls (the herokuapp, the herokussl, and the domain name I am pointing from) and they all tracked the same. So I guess it doesn't matter which one you pick
www.anothername.com
and you should add setDomainName method before trackPageview, on all pages.
_gaq.push(['_setDomainName', 'anothername.com']);