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
- 
		
		
		
		
		
		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: 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
- 
		
		
		
		
		
		On google analytics what is Mozilla Compatible Agent under browser and OS?
 On my Google Analytics (I know this is not SEOMOZ) I have a lot of visits from mozilla compatible agent with 100% bounce rate. Does anybody know what this is? Reporting & Analytics | | essentialworld0
- 
		
		
		
		
		
		Google Analytics Showing Inflated Product Revenue
 Hi- For the month of Feb on two of our sites we are seeing inflated product revenues. I have not seen this before and I am not having any luck searching for answers. Here is the issue: Product B sells for $159.95 For the month of Feb we sold 3 thus revenue should be ~$479.85 GA is showing Product B's revenue at $3,360.00 I read online that sometimes folks will bookmark the receipt page and that can cause this and we would need to put a catch in place for this but I am guessing this is not the case as it is happening on two sites. Please let me know if you have any questions. Reporting & Analytics | | K2_Sports0
- 
		
		
		
		
		
		Setting up Google Analytics for Subsites
 I currently have one main .com site and am planning on launching geo-location subsites .co.uk, .com.au, .ru, etc... Traffic will flow between both sites and some of the content on the subsites will be duplicate and therefore include a canonical tag to the main site. I want to set up GA to capture who is going to the subsites and vice versa and correctly capture crossover traffic. Any advice on implementing advanced analytics directly (or links to sources that will direct me the right direction for this project) Reporting & Analytics | | theLotter0
- 
		
		
		
		
		
		What is s.ytimg.com in google analytics?
 My clients GA reports 273 visits from s.ytimg.com. I go to the site, it doesn't exist. I googled it, there were some code with s.ytimg.com in it, but nothing I could understand. Anybody have an idea where this comes from? Reporting & Analytics | | endlessrange0
- 
		
		
		
		
		
		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
- 
		
		
		
		
		
		Why does Google Analytics think PPC traffic is organic?
 I have a bastard of a problem... Google Analytics is incorrectly tracking PPC traffic as SEO which is screwing up all my reporting . I don't care for rankings, I care for actual SEO traffic and I can't be sure that what i am seeing is correct which is driving me nuts. Any ideas? Reporting & Analytics | | Red_Mud_Rookie1
 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				