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.
Totally Remove "localhost" entries from Google Analytics
- 
					
					
					
					
 Hello All, In Google Analytics I see a bunch of traffic coming from "localhost:4444 / referral". I had tried once before to create a filter to exclude this traffic source, but obviously I did it wrong since it's still showing up. Here is the filter I have currently: Filter Name: Exclude localhost 
 Filter Type: Custom filter > Exclude
 Filter Field: Referral
 Filter Pattern: .localhost:4444.
 Case Sensitive: NoCan anyone see what I'm doing wrong and give me a push in the right direction? Thanks in advance! 
- 
					
					
					
					
 The filter I used a long time ago that worked at the time was a hostname one using (.?localhost.?) Filter Name: Exclude localhost 
 Filter Type: Custom filter > Hostname
 Filter Pattern: (.?localhost.?)
 Case Sensitive: NoNow I block via code so I'm not sure if this still works - feel free to try. Also, I'm not sure why the filter uses both * and ? since the star should be inclusive of ? wildcard but I can no longer find the source. Good luck 
- 
					
					
					
					
 Hi Robert, did you resolve this problem as I have exactly the same thing showing on my analytics too and it is driving me mad? 
- 
					
					
					
					
 Does anyone have any ideas? I'm still totally stumped! 
- 
					
					
					
					
 Does anyone have any ideas? Having this silly "localhost:4444" entry is skewing all of my numbers and no matter what I try, it won't seem to filter it out. Any help is very much appreciated! Thanks! 
- 
					
					
					
					
 Thanks Mike. At least I know I'm not alone in being totally & completely baffled! Hopefully someone else can give me a push in the right direction. Cheers! 
- 
					
					
					
					
 I'm sort of baffled, myself. I see no reason why this would be unfilterable. I'm marking this as an unanswered question, hopefully someone comes to our rescue here. 
- 
					
					
					
					
 Putting the filter pattern of "localhost" did not work... sadly. I still see "localhost:4444 / referral" in my reports. There must be a way to filter this out.... I'm sure I'm not the only one with this problem (or at least I hope not!) Any other ideas? Thanks in advance. 
- 
					
					
					
					
 There was no real reason I wasn't just trying localhost. I just thought we needed some other parameters on there... but clearly those weren't working. I just updated the filter now and I'll check tomorrow's data to see if the answer was really this simple. Thanks! 
- 
					
					
					
					
 Was there any reason you're not trying just localhost as the filter pattern? No asterisks, quotes, backslashes or anything? 
- 
					
					
					
					
 Unfortunately that did not work. I still see this in my referral reports: localhost:4444 / referral Just to confirm, the filter I set is: Filter Name: Exclude localhost 
 Filter Type: Custom Filter > Exclude
 Filter Field: Referral
 Filter Pattern: localhost*
 Case Sensitive: NoAny other ideas? I'll try anything.  
- 
					
					
					
					
 Do you have a update on this? Did it work? 
- 
					
					
					
					
 If I put localhost then I get a "Regular expression is invalid" error. I'll put: localhost* I'll watch it for a couple days and see what happens. Thanks! 
- 
					
					
					
					
 1: the "." in front of "*localhost" might break the filter i guess. The same goes for the "." after "4444". 2: Have you tried localhost* or localhost ? 
- 
					
					
					
					
 Thanks for the link... this is kind of what I had followed earlier, but it still doesn't work. In my original question you can see the current filter I have setup. Yet, for some reason this is not blocking what I need since I still see "localhost:4444 / referral" in my reports. Any other ideas? 
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
- 
		
		
		
		
		
		"index.htm" for all url's in google analytics
 I don't have this issue with other wordpress websites, only this one website, and I don't know what's causing the issue: Google Analytics is adding an "index.htm" to every single page on the website. So it is tracking the pages, I see no errors - is it tracking the right page? When I click on the page link in a report, I naturally go to a "404 page not found" since the website address isn't "www.example.com/rewards/index.htm" - but instead the actual address would be: Reporting & Analytics | | cceebar
 "www.example.com/rewards/". I have navigated to View Settings in GA to insure "default page" is empty. Although adding anything else to this field does not effect the page url in analytics reports either. Could it be htaccess file - or a plugin effecting the htaccess file?_Cindy0
- 
		
		
		
		
		
		What does 'Safari (in-app)' mean in Google Analytics browser traffic?
 Hi, can anyone explain what 'Safari (in-app)' refers to in my browser sources? Also, it has a very high bounce rate - any ideas why? Reporting & Analytics | | b4cab1
- 
		
		
		
		
		
		No-indexed pages are still showing up as landing pages in Google Analytics
 Hello, My website is a local job board. I de-indexed all of the job listing pages on my site (anything that starts with http://www.localwisejobs.com/job/). When I search site:localwisejobs.com/job/, nothing shows up. So I think that means the pages are not being indexed. When I look in Google Analytics at Acquisition > Search Engine Optimization > Landing Pages, none of the job listing pages show up. But when I look at Acquisition > Channels > Organic and then click Landing Page as the primary dimension, the /job pages show up in there. Why am I seeing this discrepency in Organic Landing pages? And why would the /job pages be showing up as landing pages even though they aren't indexed? Reporting & Analytics | | mztobias0
- 
		
		
		
		
		
		Google Analytics - Average Position
 Hi Just trying to get some clarity on Google Analytics Average Positions in "Aquistions/Search Engine Optimisation". For a very competitive keyword Google Analytics is saying i am on average position of 6. Is this Page 6? I am assuming position six would be 1.6? Reporting & Analytics | | Cocoonfxmedia0
- 
		
		
		
		
		
		Referral Traffic vs. Campaign Traffic in Google Analytics
 I have two sites: a blog and an ecommerce site. The blog funnels people to the ecommerce site. In Analytics I'm seeing declines in referral traffic from the blog to the ecommerce site. During the same time I'm seeing an increase in campaign traffic to the ecommerce site, with most campaign traffic coming from the blog. I believe the increase in campaign traffic is largely a result of simply having installed more tracking links. This leads me to believe that the declines I'm seeing in referral traffic is simply a result of the increase in campaign traffic. In other words, what was once counted and reported as being referral traffic is now being counted and reported as campaign traffic. So my question is this: In Google Analytics is campaign traffic ALSO reported as referral traffic, or is campaign traffic reported separately and not duplicated in referral traffic reports? I'll provide a concrete example to make this more clear in case it isn't: Say site X sends 1000 visits each month to site Y. Say 50 of those visits come from a single link on X. If that link is changed so that campaign Z data info added (via the Google URL Builder), would you expect to then see 950 referral visits each month from site X to site Y plus 50 campaign visits to site Y via new campaign Z, or would you continue to see 1000 referral visits plus the new 50 campaign visits? Many thanks in advance to anyone that can shed some light on this. Reporting & Analytics | | aaronprimal0
- 
		
		
		
		
		
		Google Analytics Organic Search Keywords Suddenly Displaying FulL Urls
 In my Google Analytics, the top keywords for Organic Search are suddenyl displaying full URLs. For example, now the third and fourth keywords are http://www.domain.com/highly-specific-URL. These have all started recently around the same day, July 12th. I've checked back, and we've made no internal changes to the site around that time that could affect this. Any thoughts on this? Thanks! P.S. It might be related to rich snippets, but I cannot tell at this point. Reporting & Analytics | | 10SL0
- 
		
		
		
		
		
		AW Stats vs Google Analytics
 Hey Moz Community, I am looking to get opinions on the best practice for analytics/traffic analysis. From experience I know that AW Stats reads high and Google Analytics reads low for traffic for reason in this article http://www.smartz.com/blog/2009/01/23/analytic-confusion-%E2%80%93-awstats-vs-google-analytics/ It drives me a little nuts how far off both are for some pages. I have one article that shows 100 views (GA) and AW stats shows 5 times that number of views. Any suggestions or systems you recommend? Thanks Reporting & Analytics | | johnshearer0
- 
		
		
		
		
		
		Google Analytics Admin account not allowing us to add other users?
 Our Google Analytics Administrator account is not giving us access to the User Manager, and because of that we are unable to add users; have you ever ran in to a problem such as this, if so what was your solution. Thanks a Billion impressions, Vijay E2qE9.jpg Reporting & Analytics | | vijayvasu0
 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				