How can I see my multiple domains on Google Analytics page?

62 Views Asked by At

I inserted the code below on 2 separate domains of mine: www.productsstage.com and www.truthstage.com (which are actually same website underneath). How can I see how many hits received productsstage.com and how many truthstage.com on https://www.google.com/analytics ?

<script type="text/javascript">
    try{
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-61764359-1']);
        _gaq.push(['_setDomainName', window.location.hostname.substring(4)]);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);
        (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    }catch(e) {}
</script> 

I did look at this on stackoverflow: Track multiple top-level domains google analytics, however it looks like instructions to a previous Google Analytics UI.

Appreciate any help in this.

Jim.

0

There are 0 best solutions below