Mobile app version of vmapp.org
Login or Join
Odierno851

: Analytics, multiple domains, one site What would be the best way to set up Google Analytics to track multiple domains which actually are all one site? Example: mysite.com mysite.es gets routed

@Odierno851

Posted in: #GoogleAnalytics

What would be the best way to set up Google Analytics to track multiple domains which actually are all one site?

Example:

mysite.com

mysite.es gets routed to mysite.com/es, URL is mysite.es
mysite.es/contenidos/stuff gets routed to mysite.es/contents/stuff, URL is mysite.es/contenidos/stuff

I've already taken care of the technical side of this, but I'm just not sure about what's the best way to proceed with analytics.
Any help would be much appreciated.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

3 Comments

Sorted by latest first Latest Oldest Best

 

@Gail5422790

It seems as though with the redirects in place you're not actually needing to track multiple domains, rather you're looking for a way to segment your single domain based on the sections that the additional domains are redirecting to (IE you want to segment your domain based on example.com vs example.com/es) assuming I am understanding properly it seems filters would be the easiest way. Simply create an additional profile for the site and filter out traffic to suit your needs.

10% popularity Vote Up Vote Down


 

@Tiffany637

I activated that one, and when I did the traffic seemed to be dropping... the current code I have (was not set up by me) and is:

<script type="text/javascript">
var _gaq = _gaq || [];
<% if Rails.env == "production" -%>
_gaq.push(['_setAccount', 'UA-xxxxxx26-1']);
_gaq.push(['_setDomainName', '.sitename.it']);
_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);
})();
<% end -%>
</script>


and what i don't get is the .sitename.it

anybody knows?

10% popularity Vote Up Vote Down


 

@Radia820

When you create your analytics profile for your site you can choose to track:-


A single domain
One domain with multiple subdomains
Multiple top level domains


Choose the most appropriate option for your URI structure and you're done.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme