Mobile app version of vmapp.org
Login or Join
Merenda212

: Google analytics and multiple domains I need some urgent advice please with regard to Google analytics and multiple domains, and how best to handle them. Got a very sensitive customer who has

@Merenda212

Posted in: #Domains #Google #GoogleAnalytics #MultipleDomains #TopLevelDomains

I need some urgent advice please with regard to Google analytics and multiple domains, and how best to handle them.

Got a very sensitive customer who has a number of domains:
EG
somethingvauxhall.co.uk, somthing-vauxhall.co.uk, something-group.co.uk, somethinggroup.co.uk, somethinggroup.com etc

I was under the impression it was always best to "funnel" all domains down to a single "master" domain. For example all the domains hitting this site are forwarded to somethinggroup.com.
Now I'd heard it was best to do this using a 301 Redirect. if memory serves. For a number of reasons I was unable to do this due to the setup on our server, so instead had to code forwarding manually in the codebehind (asp.NET). Like this:

if(domain != "www.somethinggroup.com")
{
string forwardURL = "http://www.somethinggroup.com/";
if(path != "")
{
forwardURL = forwardURL + path;
}
if(queryString != "")
{
forwardURL = forwardURL + "?" + queryString;
}

Response.Redirect(forwardURL);
}


This now looks like this was a really bad idea because although the traffic levels look fine across the site, it's screwed up things like referring sites etc.

My question is this really:
a) Was this a bad move?
b) Would a 301 redirect me better from an analytics point of view? Or is it best just to let people hit the site using whatever domain name?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

There are a variety of usability and historical SEO reasons to use permanent redirects over temporary redirects, however, the need to do so for SEO purposes has been mitigated by the advent of canonical link specifications (and you could use the setDomainName function to force somethinggroup.com for analytics purposes) - still, that's no reason to avoid using a permanent redirect if that's what you intend to do.

The Response.Redirect() method issues a 302 Object Moved response - this is not the same as a 301 Moved Permanently response.

You can change your ASP.NET code to send the proper redirect headers:

if(domain != "www.somethinggroup.com")
{
string forwardURL = "http://www.somethinggroup.com/";
if(path != "")
{
forwardURL = forwardURL + path;
}
if(queryString != "")
{
forwardURL = forwardURL + "?" + queryString;
}

Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", forwardURL);
}

10% popularity Vote Up Vote Down


 

@Goswami781

Though initially it may seem to have screwed up your referring sites. But if you are planning to keep these things up for a long time. Then you have taken the right step. Let people right down any domain and they would be taken to the master domain. As time would pass they would definitely be used to master domain and direct traffic would increase on your top level domain and traffic from these referring site will gradually slow down. Don't worry.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme