Tracking a Redirect
-
Recently a client of mine had a new site developed and had changed their domain, so the old URL is now redirecting to the new URL.
They want to be able to track referral traffic in the analytics so we can decipher how much direct traffic is coming in from people typing in the old URL. Is this possible and if so, can I have a guide in doing so?
Thanks!
-
Hi there,
This is a great question, and one that I addressed almost identically to what Anthony recommended in a Moz post I wrote about a year ago: https://mza.bundledseo.com/blog/heres-how-to-keep-301-redirects-from-ruining-your-seo
However, one of the comments on that post suggested a better solution than UTMs that I've been using ever since, which is basically to just invent your own parameters. Here's what my parameters look like now:
/old-page >>> /new-page?redir=301&src=/old-page
The problem with UTMs is that they override the original source/medium information. The new format allows you to retain that attribution data while still being able to use the parameters for isolating this traffic.
-
You won't really be able to see how much of it is direct. If someone clicks an external link pointing at the old site or types the URL in the address bar, they both would go through the same redirect process.
If you wanted to get some general tracking on people hitting old URLs, you could have your redirects go to the new site with utm parameters on the end of the URL.
Something like: old-domain.com -> new-domain.com?utm_source=old-domain&utm_medium=redirect
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
-
Losing referrer data on http link that redirects to an https site when on an https site. Is this typical or is something else going on here?
I am trying to resolve a referral data issue. Our client noticed that their referrals from one of their sites to another had dropped to almost nothing from being their top referrer. The referring site SiteA which is an HTTPs site, held a link to SiteB, which is also an HTTPs site, so there should be no loss, however the link to SiteB on SiteA had the HTTP protocol. When we changed the link to the HTTPs protocol, the referrals started flowing in. Is this typical? If the 301 redirect is properly in place for SiteB, why would we lose the referral data?
Reporting & Analytics | | Velir0 -
Event/Goal Tracking For EKM Powershop
Hi There, I have a client with EKM powershop. I am trying to figure out a way to either setup goal tracking (however I don't know what the final destination page is) or event tracking. I know I can do the ecommerce tag thing, but I am always worried about breaking the tracking code. Any ideas?
Reporting & Analytics | | nezona0 -
Magento and Analytics - Unique purchases tracking
Hi guys, My ecommerce site is on Magento and in order to integrate it with Google Analytics, I enter my GA account number on the Account Number field in the backend. What surprises me is that some purchases are not tracked at all. So for the month of may GA shows X unique purchases when Magento shows x+5. Can this occur because the customer leaves the site before the confirmation page is shown? Thanks. Regards
Reporting & Analytics | | footd0 -
Newsletter tracking event GA- Magento
Hi there, I am trying to track an event, newsletter signup in this case, on my Magento store. I added onClick="_gaq.push(['_trackEvent', 'Microconversion', 'Evento_Onclick', 'Sus_Newsletter']);" on subscribe.phtml Category: Microconversion Action: Evento_Onclick Label: Sus_Newsletter It doesn't work, it's does not track this event. What am I doing wrong? Thanks and regards
Reporting & Analytics | | footd0 -
Google Analytics Tracking Code Queries
Hello, I have taken on a new client who has Google Analytics installed. The tracking code is set to 'single domain'. Recently they added a mobile site using a sub-domain (m.website.com) which means that Google Analytics is not picking up this traffic. I want to revise the account so that I have a master account (raw data) and then profiles for the mobile site, main domain (www.website.com) and one other for a sub-domain that they are using. I am aware that there is mobile specific tracking code however I thought it would be easier (re conversions/goals/eCommerce tracking) to not use this and by changing the account to 'multiple domains' we could also get data for another sub-domain that they are using . My questions are: Am I right to want to use individual profiles over web properties. If not please explain why. When installing the tracking code (where the profile number is changing) I believe that I need to add that code with the changing profile number to the sub-domain sections. So my question is a) is that correct, and b) if I use a profile number on a sub-domain section will the master account still gather the data for the main URL as well as all sub-domains. If I change the master account from using 'single domain' tracking code to 'multiple domain' tracking code will this affect historical data? Will I lose the data? When changing from 'single domain' tracking to 'multiple domain' tracking does this affect eCommerce tracking? Or do we only need to be adding the additional lines of tracking code that allow sub-domains to be tracked? The web developers are using asynchronous code however half is in the and the other half is at the bottom of the source code. Given that traffic is being reported in the Google Analytics account should I have any concerns that the code is split? I have done a lot of reading but seem to be going around in circles, so your help is much appreciated! Thanks,
Reporting & Analytics | | Unity
Dinny0 -
Problem with Redirects and GA
We redirect our banner ads and our customers GA's don't register. What is a solution to help our customers see our traffic to them?
Reporting & Analytics | | KenPiech0 -
Tracking pdf downloads
hello, I have a site with 100's of pdf's for download and I would like to track how many people are downloading these, does anyone have a simple solution for this? Is there anyway I can do this in Google Analytics using one piece of code, thanks...
Reporting & Analytics | | Socialdude0 -
Google analytics tracking
Is their a built-in or easy way to track the amount of times an exit link is clicked on a page and show that with other links of the page. For instance: I had a page with several external ad links on it and I want to track how many each got and rank them in google analytics
Reporting & Analytics | | insitegoogle0