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
- 
		
		
		
		
		
		How to Diagnose "Crawled - Currently Not Indexed" in Google Search Console
 The new Google Search Console gives a ton of information about which pages were excluded and why, but one that I'm struggling with is "crawled - currently not indexed". I have some clients that have fallen into this pit and I've identified one reason why it's occurring on some of them - they have multiple websites covering the same information (local businesses) - but others I'm completely flummoxed. Does anyone have any experience figuring this one out? Reporting & Analytics | | brettmandoes2
- 
		
		
		
		
		
		Android Webview & Safari (in-app) without any referrer information in Google Analytics
 I've got a client that gets a considerable amount of traffic that: Enters on an interior page (that we are running properly tagged ads for on various platforms) Bounces Has a browser of either Android Webview or Safari (in-app) which I believe indicates the website is being viewed within a mobile app Has no referrer data: (direct) / (none) We've tested several scenarios (Facebook app, Gmail app, etc.) and ruled them out. Anyone know what this might be? Thanks in advance!! Reporting & Analytics | | SarahLK0
- 
		
		
		
		
		
		Google Analytics - Organic Search Traffic & Queries -What caused the huge difference?
 Our website traffic dropped a little bit during the last month, but it's getting better now, almost the same with previous period. But our conversion rate dropped by 50% for the last three weeks. What could cause this huge drop in conversion rate? In Google Analytics, I compared the Organic Search Traffic with previous period, the result is similar. But the Search Engine Optimization ->Queries shows that the clicks for last month is almost zero. What could be the cause of this huge differnce? e9sJNwD.png k4M8Fa5.png Reporting & Analytics | | joony0
- 
		
		
		
		
		
		Can you track two Google Analytics Accounts on one site?
 If you have a site that had an old analytics account and then implemented a new one is it possible to run tracking code that records to both accounts without causing your site or data issues? We are doing this so we don't loose data at any point - ideally it wouldn't have been split between the two but making one redundant isn't an option. Ideally we would have merged the data from both accounts and had one - however the research we have done points to this not being a possibility - unless one of you guys knows different? It would be great if anyone has experience on any this.. Thanks Reporting & Analytics | | ChrisAllbones0
- 
		
		
		
		
		
		Is there a way to find out who the admin of a Google Analytics account is?
 We have a client who has been searching high and low to gain access to the GA account that is tied to their website, but previous agencies keep stating they don't have access. Is there a way to find out who the admins are on a GA account with the tracking number so we can reach out to that person and ask them to admin the client? Reporting & Analytics | | marketingmediamanagement0
- 
		
		
		
		
		
		Can you arrange Google Analytics source/medium traffic by percentage change?
 I'm doing a year to year traffic audit for a client. I would like to analyze Google Analytics source/medium traffic by percent change. Is there a way to do this? Do I have to create a custom variable? 9BH70RO Reporting & Analytics | | VanguardCommunications0
- 
		
		
		
		
		
		Google Analytics: Different stats for date range vs single month?
 I've been scratching my head, chin, and you name it over this one. I have an advanced segment to remove bot traffic from my data. When I look at the Audience Overview data for a single month (let's say Aug). I am shown a session count. No problems here, however If I set the date range to (January - August). The august monthly stats is incorrect, much lower. What this means is that, if I export a CSV report from Jan-Aug, the data is wrong compared to individually recording a month. Anyone faced this? I've asked the question over at the Google Analytics technical section as well, but no answer P.S I even used the 'control the number of sessions used to calculate this report' tool but no luck. Reporting & Analytics | | Bio-RadAbs0
- 
		
		
		
		
		
		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
 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				