I have two domains APPNAME.herokuapp.com and APPNAME.com . I just set up APPNAME. I would like to set up google analytics in such a way that it tracks both domains as the same. In other words, I'd like to prevent "losing" any page views. If 20 people view APP.com and 10 people view APPNAME.herokuapp.com , I would like to see this as 30 views in google analytics.
How do I need to change the tracking code GA provides?
You simply have to use setdomainname option in GA tracking code - everything you have to know is described here with pretty good examples https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#multipleDomains
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With