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
- 
		
		
		
		
		
		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
- 
		
		
		
		
		
		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
- 
		
		
		
		
		
		Set Up of Goal Tracking with Google Analytics-$750 a Fair Price????
 Greetings Moz Community! My firm operates commercial real estate website that contains 3-4 forms. Each form represents a goals. Google Analytics has been set up for years, but it does not track these form completions/goals properly. My SEO firm has offered to configure Goals on Google Analytics for $750. Is this a fair price? If the set up takes one hour, I am really over paying. But if this is a complex project that may take 7-9 hours the pricing seems OK. Also, the SEO firm will require an additional $750 in the future to set up event tracking. Is this excessive? I might add that my developer will need to add code to my web site. My SEO company has proven reliable and accurate. I can go to sleep at night knowing they are doing a good job. Where as my Argentinian developers really try their best, but perhaps because of the language barrier, they can make mistakes from time to time. I am willing to pay a premium to ensure that the job is done correctly domestically, however I don't appreciate over paying. Is the $750 payment for setting up Google Analytics reasonable assuming the job is done well??? Thanks, Reporting & Analytics | | Kingalan1
 Alan0
- 
		
		
		
		
		
		Whats 'Other' in Google Analytics (in Acquisition)
 When i look in GA under Channels (under Acquisition) 'other' is listed What is 'other' ? I have been told its other unidentified channels as they did not allow 3rd party cookies or surfers were in anonymous/private mode. Other is usually organic traffic that couldn't be identified for the aformentioned reasons. This data is encrypted and available but it violates Google guidelines as they are not allowed to pass personal info//data to third parties so it is automatically filtered. But they are not 'Not Provided' (since that still shows under organic) but is usually/mainly some form of organic visits. Hence Seo can take credit for much of that traffic, is this correct ? Many Thanks Reporting & Analytics | | Dan-Lawrence0
- 
		
		
		
		
		
		Google Analytics VS target="_blank" internal links: How much wrong is it?
 I am working on an e-commerce website, and our CEO is sure that having target="_blank" in internal search result is boosting the conversion (not sure, but it's not an issue at the moment). The problem is that Google Analytics sees all URLs visited from search results as entrances/direct visits, hence the Booking Funnel Tracking does not work as it was supposed to. Is there any way to recover the tracking? Or we shall get the rid of target="_blank" attribute? Reporting & Analytics | | apartmentGin0
- 
		
		
		
		
		
		Weird info from google analytics?
 Hi Could anyone explain what these visits are in Google Analytics? Under traffic sources and organic I am seeing lots of entries with data like below. Any ideas what kind of traffic this is? Is it a bot and if so what is their purpose of it and is it recommended that you block it? Pages/Visit 1.00 Avg. Time on Site 00:00:00 % New Visits : 100% Bounce Rate: 100.00% Many Thanks Reporting & Analytics | | ocelot0
- 
		
		
		
		
		
		Is there a way to use Google Analytics event tracking for YouTube embedded videos on my website?
 Hello! I am trying to track different types of interaction on the YouTube for videos which are embedded on a website to measure the interaction on these video from my organic traffic. Is there a good way to go about this with the code since these are coming from an iFrame on YouTube? Would appreciate any feedback or help on implementing the event tracking with YouTube videos. Many thanks! Reporting & Analytics | | CabbageTree0
- 
		
		
		
		
		
		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
 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				