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
- 
		
		
		
		
		
		Whatstuffwherebot user agent messing up Google Analytics
 Starting yesterday, Aug 26, 2020, I noticed a new bot crawling our site with user agent whatstuffwherebot. Google Analytics is counting these hits as human traffic, completely throwing off my numbers - yesterday, Analytics reported nearly triple my typical number of visitors. As of now, Search Console only shows data through Aug 25 so I don't know if Search Console is also affected. Is anybody else seeing something similar? Does anybody know what the whatstuffwherebot bot is? I don't get any results when I search on Google or Bing. For what it's worth, the traffic is coming from Columbus, OH, running over Amazon AWS via 278 different IP addresses so far. Also, WordFence (my WordPress security plugin) correctly identifies these hits as bot traffic. Reporting & Analytics | | ahirai0
- 
		
		
		
		
		
		Collecting post codes / zip codes in Google Analytics - Terms of Service
 Hi Mozzers, Just reading up on Google Analytic's Terms of Service and wondering if collecting post codes / zip codes (from a website's 'Find my nearest...' tool) adhere's to the following: "You will not (and will not allow any third party to) use the Service to track, collect or upload any data that personally identifies an individual (such as a name, email address or billing information), or other data which can be reasonably linked to such information by Google." What do you think? Reporting & Analytics | | A_Q0
- 
		
		
		
		
		
		Google Analytics Goal/Event/SOMETHING to show only Wordpress "Posts", not pages, etc
 Hi all, Our site is build on Wordpress and formerly the post URL's had the typical date format at the beginning. This made it easy for me to look at, for example, all search traffic to the blog. I would just view URL's containing /2014/ and /2015/ and boom. We have since removed the dates from the URL's with proper redirects etc, which is great, but now I can't figure out a way to look at ONLY the blog in GA. I like to track a KPI of 'search visits to blog posts' and I can't figure out how to now. Can I set up a GA event that only fires when the post type template for blog posts loads? Some other solution? I'm lost here, and there's gotta be a good way to do it... Reporting & Analytics | | 3DR0
- 
		
		
		
		
		
		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
- 
		
		
		
		
		
		How do I manually add transactions to Google Analytics
 We are seeing Google Analytic's drop transaction on our site so therefore all the figures are skewed. Is there a way I can manually add transactions to GA to cover the missing one? Reporting & Analytics | | Towelsrus0
- 
		
		
		
		
		
		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
- 
		
		
		
		
		
		Custom Variables to track Vimeo plays on website with Google Analytics?
 Hello Everyone, I'm trying to track how many times a Vimeo video is played on my site via GA. Does any of you have any knowledge of how can this be achieved? I've read the documentation and came up with this: After the iframe embed i insert this: Of course the GA is loaded in the header. Does not work, at least i cant see anything in analytics. I have set up the segment as per the attached image. Thanks in advance! Alex E6XnO.png Reporting & Analytics | | pwpaneuro0
 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				