J!Extensions Store™
Faq Why the Google Analytics integration shows stats for a different domain?

Why the Google Analytics integration shows stats for a different domain?

Created on:Sunday, 08 March 2015 08:44

When you connect to your Google Analytics account through the JRealtime Analytics integration, if your Google account has more than one property website, by default Google will return stats for the last added property domain.

In this case you can specify a particular domain available in your Google Analytics account for which you want to retrieve stats, to do this simply use the configuration parameter 'Site domain' as shown in the picture below and set the needed domain address.

googleanalytics

Take care that the domain specified must match exactly the one registered in your Google account, thus it must use the same protocol, the same prefix if any, etc. If you have registered your website to Google as http://mydomain.com and you specify in JRealtime the preferred domain as http://www.mydomain.com or https://mydomain.com it won't work and Google will continue to fallback to the last added property domain.


As a final recommendation when you register a Google Analytics property as http://www.mywebsite.com and you change it at a later time for example to http://mywebsite.com despite the fact that Google Analytics shows the new domain http://mywebsite.com in the admin console, it internally never changes the original domain that continue to be http://www.mywebsite.com. The original internal link will continue to be used even for the API integration with JRealtime that needs to be configured for http://www.mywebsite.com and not http://mywebsite.com. You have to delete and create again a new property in Google Analytics using http://mywebsite.com to have it really changed.

Useful Links:
http://storejextensions.org/forum/view/10-jsitemap/2931-two-different-urls-in-google-webmaster-tools-and-google-analytics.html
http://storejextensions.org/forum/view/10-jsitemap/1941-re-wrong-google-account
http://storejextensions.org/forum/view/10-jsitemap/2909-re-solved-google-webmaster-tools