Redirecting one domain to another using utm tags
-
I have two live websites, which have both been live for over 10 years, so we have plenty of backlinks to both...domain1.com & domain2.com. Domain 1 and all urls is being merged into domain2.com.
So 301 redirects will be setup for every page of the site....domain1.com/abc-1234/ to > domain2.com/abc-1234/
In Google analytics for domain2.com we want to be able to see which visits we have received as a result of a redirect from domain1.com. It is possible to see these visits that come in via organic, referrals and social etc, as those will come to us with the referral as domain1.com. However, with direct traffic, i.e. if someone types domain1.com into their search bar, these visits will be assigned as direct and we are not able to tell in GA if those users have typed in domain2.com, or domain1.com to get to our webpage.
There are some suggestions in forums of adding utm_source tracking to all redirects (and add canonicals to those urls pointing to the non utm_source version), but my concern is that Google is going to have to go through one extra step to reach the page on the redirected domain.
So without the utm source code Google will follow this route
domain1.com/123/ to domain2.com/123/With the utm source code Google will follow this route
domain.com/123/ to domain2.com/123/?utm_source... then see's canonical, so moves to domain2.com/123/So essentially I am giving Google one extra step to follow before it gets to the equivalent page on the new site.
Is this an issue, and/or are there any other ways to track this redirection without adding extra parameters to the url?
-
Thanks Paul,
We managed to get around the issue by using Redis to store the the url from the first domain in a temp database and then this data is used to create a custom GA dimension on the page they land on - which means we don't need to add any parameters to track these redirects.
-
The approach you're using is correct and no, you're not really adding an extra step. That's not how canonical works.
A canonical is not a redirect like a 301. It's just an instruction (suggestion actually) to ignore the URL variables when determining the URL of the page. It will have zero effect on the transmission of the ranking authority through the 301-redirect.
The challenge you will have though, is if you create your own UTM tag to generate the source of the visit as being from the old domain1's 301 redirect, it's going to overwrite ALL the other source/medium info from the original site's visit. So domain2's Analytics isn't going to record the source of the original site1 visit as social, organic, referral etc. All redirected visits will get whatever source/medium you designated in your UTM tag.
It may be possible to programmatically catch the original traffic source on domain1 and programmatically write the UTM tags to include it in the 301, but I wouldn't know how to suggest trying to go about it.
Paul
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
UTM tracking on a mapped subdomain, is it OK? (DA bonus question)
Hi, This is a technical question. OK, two technical questions. Please bear with me and I'll do my best to explain... We have a WordPress blog (business account, hosted by WordPress). We use it to blog and send traffic to our separate e-commerce site. We use UTM tracking to see which blog posts perform best. Our e-commerce site has a high domain authority. Our blog, not so much. In an effort to increase the domain authority of the blog we have mapped a subdomain of the e-commerce site to the Wordpress blog (still hosted by WordPress). Q1. Will this actually raise the blog's DA? If the blog does get a DA boost, I guess it'll be because Google now sees it as part of a powerful domain. But if it is technically part of the powerful domain... Q2. Should we remove the UTM parameters from the blog? I've read that you should never use UTM on internal links because it messes with your Google Analytics data. But I'm unsure if links on a mapped subdomain count as 'internal links'. Any help would be gratefully appreciated. Thanks in advance. J
Reporting & Analytics | | JabeKay0 -
Looking for Third Party Tool Like Google Tag Manager
Hi All, Like google tag manager is there any tool or software or service available who can track my visitors each actions, events, clicks, after click what they do? But at same time like google tag manager it not slow down my site speed? I can say I am looking for tool which can main track different - different click on my pages. Any other suggestion pls share. Thanks!
Reporting & Analytics | | pragnesh96390 -
Best to Leave Toxic Links or Remove/Disovow on Site with Low Number of Linking Domains
Our site has only 87 referring domains (with at least 7,100 incoming links). LinkDetox has identified 29% of our back links as being toxic and 14% as being questionable. Virtually all of these links derive from spammy sites. We never received a manual penalty, but ever since the first Penguin penalty in 2012 our search volume and ranking has dropped with some uneven recover in the last 3 years. By removing/disavowing toxic links are we risking that over optimized link text will be removed and that ranking will suffer as a result? Are we potentially shooting ourselves in the foot? Would we be better to spend a few months building quality links from reputable domains before removing disavowing bad links? Or toxic links (as defined by LinkDetox) so bad that it should be a priority to remove them immediately before taking any other step? Thanks, Alan
Reporting & Analytics | | Kingalan10 -
Google Tag Assistant showing Error
Hello, I am using google tag assistant extension in chrome and it is giving me one error for google tag manager at my checkout step 1 and error is -
Reporting & Analytics | | devdan0 -
Tag Manager V2
Hi all! Do you have any great resources on Google Tag Manager Version 2? I'm looking for some help and I keep seeing info on V1, which looks pretty different. I'm having quite a bit of trouble implementing it correctly. Thanks!
Reporting & Analytics | | newwhy0 -
If a site has 301 redirect - Will the Analytics of the target site show it as a referral or as the traffic source it came from?
Lets say I have a site www.abc.com and I rederect that site to www.xyz.com. If ABC.com is still ranking for keyword X and orgnically someone searches for X and they click on the ABC.com listing - In the XYZ site analytics (which is the target site) does it show as organic or referall, direct? Thanks
Reporting & Analytics | | M_80