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
-
I am tracking my domain e.g www.xyz.com to an existing google analytics account . I want to track www.xyz.com/blog separately in the google analytics account. How can I do that?
I am tracking my domain e.g www.xyz.com to an existing google analytics account . I want to track www.xyz.com/blog separately in the google analytics account. How can I do that?
Reporting & Analytics | | Windlass0 -
Page Name Tracking - Without UTM links
Hello, Our current site is fully html with no cms. We're moving to a newer version today with a typo 3 cms. My one worry is as follows; On some pages an internal link opens a jquery lightbox, inside the lightbox will be a video or download link. I cannot simply add a standard event url like I wanted to (utm_ link) as the pages are linked via the cms pointing to different pages, not the url's. We really need the following appearing in Analytics, whether its an event or landing page; The click of the light-box link The click of the video OR download link inside the lightbox. I would really, really appreciate any help on this as the new website is going live today, regardless whether this has been resolved. Thank you very much in advance of any replies. twY8s8B.jpg
Reporting & Analytics | | Whittie0 -
Pro's & Con's of Wordpress Categorys & Tags
Good Afternoon! I touched on this question a while back in another post specifically regarding a plethora of duplicate pages that I was finding due to inappropriate tagging in wordpress. As I am going through our website, I am starting to notice it happening again with categories as well. I am including some pictures where you can see the URL structures and titles etc of how everything is laid out. I would like to clarify that I was not the one who did any of this Is it wrong/bad to cross categorize? What I mean by that is put something in more than one category? Would there be any drawback to converting any of these into subcategories? Would that even do anything? Does having two pages that are named the same thing, hurt you? It would seem to me that Google wouldn't like that. I have recently come into the field of thought that Google is getting more and more human, and If it makes a human uncomfortable/confused it will make Google confused. In my pictures you can see we clearly have numerous hard copies of the same thing, not just duplicate elements created by wordpress, that is a separate issue. I personally want to change all of the titles and make everything as different and individual as possible, but i also could be very wrong in my desire to do that. Any thoughts are appreciated! eY4iX2N N3AVqss JZpU7Rq
Reporting & Analytics | | HashtagHustler0 -
Has anyone used trafficanalysis ?
Hello Has anyone ever used this tools ? http://www.trafficanalysis.fr/ Looks to good to be true in the way they reveal the non provided by Google. Tks !
Reporting & Analytics | | AymanH0 -
Mod_pagespeed lazy load meta redirects, is it a problem?
Google's mod_pagespeed has a lazy image loading facility which is great, but it uses meta refresh to auto disable itself for people without javascript and the moz crawler says it is not good for seo, but we are not using them for that, example code <noscript><meta HTTP-EQUIV="refresh" content="0;url='http://www.example.com/?ModPagespeed=noscript'" /><style><!--table,div,span,font,p{display:none} --></style><div style="display:block">Please click <a href="http://www.example.com/?ModPagespeed=noscript">here</a> if you are not redirected within a few seconds.</div></noscript> Will this cause SEO problems? If not then is there anyway to filter the warnings out of moz, it finds this issue with every page
Reporting & Analytics | | Fammy0 -
Page Speed - What tool to use?
I am looking for a good tool to measure page speed. Any tools out there that you recommend?
Reporting & Analytics | | rmontanez0 -
Cross Domain Goal Tracking
I am trying to set up conversion tracking on a new website. The traffic will be landing on example.com, but the final step of the transaction takes place on app.example.com. This is the first time I have ever done something like this and Google's documentation does not have a lot of details about how to do this in GA. Does the tracking code need to be installed on example.com and app.example.com? when setting up the goal page does it need to be /landing-page/thank-you or app.example.com/landing-page/thank-you is this well documented in google's help finals and i am just calling it the wrong thing?
Reporting & Analytics | | Simple_Machines0 -
Domain Authority History
Is there a way to check the domain authority of a site from a past date?
Reporting & Analytics | | ClaytonKendall0