Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Migrated website but Google Analytics still displays old URL's and none new?!
- 
					
					
					
					
 I migrated a website from a .aspx to a .php and hence had to 301 all the old urls to the new php ones. It's been months after and I'm not seeing any of the php pages showing results but I'm still getting results from the old .aspx pages. Has any one had any experience with this issue or knows what to do? Many thanks, 
- 
					
					
					
					
 Hi there I would make sure you take a look through this migration guide from Moz as it has steps to ensure your site is properly migrated. From there, I would check the following: 
 Sitemap
 Internal Links
 Canonical Tags Change of Address Tool (if necessary)The first three links above could potentially be utilizing old URL structures, so you want to make sure that you change those and they are up to date. The last is for if you changed your domain at all. Your analytics tag should not be the reason that your new URLs are not appearing in search. After these steps, I would then go through a backlink audit and make sure that you update any quality backlinks or listings and remove and/or disavow any links that you find to be spammy or irrelevant to your website. Hope this helps! Good luck! 
- 
					
					
					
					
 No, as long as not deleting analytics account when you upgrade it is ok, just a code update. That said I am a cautious chap so I would peel out some important data on the off chance... but spend little time on it, just for safety. 
- 
					
					
					
					
 Hi John, Thanks for the answer. Just a quick one, will this lose the previous records? Cheers 
- 
					
					
					
					
 It seems you are using the old gs.js page tracking on the site. Looking at cogri 
 Maybe replace the tracking code with the new Analytics.js?Anayltics.js has some new tracking features compared to the old ga.js and might be the reason why you aren't able to see data & statistics. Available here: https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs It can take a couple of days for GA to update... as well. 
- 
					
					
					
					
 Hi John, Thank you for getting in touch. I had analytics set up before the migration and I have kept the same tracking code for the new site. I figured that it would be ok as the domain and URL's are exactly the same apart from the fact that the old ones had .aspx on the end. 
- 
					
					
					
					
 Have you set up Analytics on the new site? Just need a bit more info on how you set it up. . 
Browse Questions
Explore more categories
- 
		
		Moz ToolsChat with the community about the Moz tools. 
- 
		
		SEO TacticsDiscuss the SEO process with fellow marketers 
- 
		
		CommunityDiscuss industry events, jobs, and news! 
- 
		
		Digital MarketingChat about tactics outside of SEO 
- 
		
		Research & TrendsDive into research and trends in the search industry. 
- 
		
		SupportConnect on product support and feature requests. 
Related Questions
- 
		
		
		
		
		
		Google Analytics Goals - Button Tracking
 Does anyone know if there is a really easy way to track a button in Google Analytics yourself? It seems that most button click goal setups involve some use of tricky code and I'm wondering if there is a much easier way to do this that will allow us to simply setup and track certain button clicks as goal conversions in Analytics. Your help here is much appreciated! Reporting & Analytics | | Gavo0
- 
		
		
		
		
		
		Google Analytics reporting traffic for 404 pages
 Hi guys, Unique issue with google analytics reporting for one of our sites. GA is reporting sessions for 404 pages (landing pages, organic traffic) e.g. for this page: http://www.milkandlove.com.au/breastfeeding-dresses/index.php the page is currently a 404 page but GA (see screenshot) is reporting organic traffic (to the landing page). Does anyone know any reasons why this is happening? Cheers. http://www.milkandlove.com.au/breastfeeding-dresses/index.php GK0zDzj.jpg Reporting & Analytics | | jayoliverwright2
- 
		
		
		
		
		
		Tracking 301 redirect traffic in Google Analytics
 if I 301 redirect www.mywebsite.com to go to www.yourwebsite.com, how can I track the traffic in Google Analytics that is coming from mywebsite.com?? I don't think that's a referral traffic, is it? Reporting & Analytics | | Armen-SEO0
- 
		
		
		
		
		
		% Change - Google analytics - how to calculate?
 Hi All, Reporting & Analytics | | JohnPalmer
 I have two dates with two different numbers I want to calculate the "% Change" like google analytics, The numbers of June 2015 - 127,931 sessions
 The numbers of June 2014 - 90914 sessions please tell me what is the %Change. Best. J0
- 
		
		
		
		
		
		Tracking time spent on a section of a website in Google Analytics
 Hi, I've been asked by a client to track time spent or number of pages visited on a specific section of their website using Google Analytics but can't see how to do this. For example, they have a "golf" section within their site and want to measure how many people either visit 5 page or more within the golf section or spend at least 6 minutes browsing the various golf section pages. Can anyone advise how if this can be done, and if so, how I go about it. Thanks Reporting & Analytics | | geckonm0
- 
		
		
		
		
		
		How to safely exclude search result pages from Google's index?
 Hello everyone, Reporting & Analytics | | llamb
 I'm wondering what's the best way to prevent/block search result pages from being indexed by Google. The way search works on my site is that search form generates URLs like:
 /index.php?blah-blah-search-results-blah I wanted to block everything of that sort, but how do I do it without blocking /index.php ? Thanks in advance and have a great day everyone!0
- 
		
		
		
		
		
		No Social Sources in Google Analytics - what am I doing wrong?
 Hello Everyone, I'm having a strange issue: I DO NOT have in my Google Analytics the "Social" tab under the Traffic Sources category. Look at the first image of this post: http://marketingland.com/google-analytics-social-reports-8138 How do you "get" that to show? Hope somebody has this issue and can help, Thanks a lot, Alex Reporting & Analytics | | pwpaneuro0
- 
		
		
		
		
		
		Google Analytics - paid & unpaid visits messed up
 I guess Google Analytics messes up my paid and unpaid visits. In the list of top 10 kw's sending non-paid traffic it shows 5 very short kw's that we don't rank for at all (checked with RankTracker - we are not in first 50 search results). But these are the kw's we advertise for... One more proof: Webmaster Tools 'Search queries' shows 10 times less 'Clicks' from organic search than Google Analytics. Is there anyone who is experiencing this kind of problems with GA? Is there anything you can do with it? Reporting & Analytics | | Alexey_mindvalley0
 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				