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?
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How to Analysis which category gives me more revenue from google analytic?
Hello Experts, For Ecommerce site we do have navigation path like Main Category - Subcategory - Products. That means Men as Main Category and then subcategory Cloths, shoes, bags then product in each subcategory. After implementing enhance ecommerce https://developers.google.com/tag-manager/enhanced-ecommerce#product-clicks I am getting this report - "Product Category (Enhanced E-commerce)" in Product Performance section. Now my query is my all products are linked with sub category i.e. cloths, shoes, bags etc so in Product Category (Enhanced E-commerce) I can see Revenue, transaction related to Cloths, shoes, bags etc but how to judge performance of Main categories like Men, Women, Children etc? Because google works with this method i think - name': productObj.name, // Name or ID is required.
Reporting & Analytics | | dsouzac
'id': productObj.id,
'price': productObj.price,
'brand': productObj.brand,
'category': productObj.cat,
'variant': productObj.variant,
'position': productObj.position0 -
How to exclude traffic for a specific mobile device in Google Analytics view?
Hi, Need help on how to exclude traffic for a specific mobile device in Google Analytics view. I have been searching and the only information available is excluding IP address of internal traffic. Is there any way to exclude traffic through a mobile MAC address?
Reporting & Analytics | | Khadija_K0 -
Google Analytics reporting traffic for 404 pages
Hi guys, Unique issue with google analytics reporting for one of our sites. GA is reporting sessions for 404 pages (landing pages, organic traffic) e.g. for this page: http://www.milkandlove.com.au/breastfeeding-dresses/index.php the page is currently a 404 page but GA (see screenshot) is reporting organic traffic (to the landing page). Does anyone know any reasons why this is happening? Cheers. http://www.milkandlove.com.au/breastfeeding-dresses/index.php GK0zDzj.jpg
Reporting & Analytics | | jayoliverwright2 -
Google Analytics: How to Track Blog Traffic that Enter the Purchase Funnel?
I've been trying to figure this out for awhile, but I have had no luck. The current ecommerce store that I work for is trying to find out how to track how many people coming in via the blog are converting/buying. The site lives on Magento and the blog is on wordpress and they both use the same Google Analytics code. Site URL: http://website.com/ Blog URL: http://website.com/blog Is there anyway to do this so you can see which landing pages are driving conversions? If not, Is it possible to set up Google Analytics to show conversions and revenue coming from people who enter through blog directory?
Reporting & Analytics | | Erik-M0 -
Keeping Google Analytics Data when Moving to Subdomain
Hey All, Against my objections a client has decided to move an existing site into a subdomain while putting up a new site on the main domain. My question revolves around Google Analytics, how do I make sure that I don't lose historical data on the domain before it moves to a subdomain? We're going to be doing a redesign of the old site and I need to keep the historical data so I can prioritize content. What do I need to do? Or will Google analytics recognize the URL's and still attribute the data to those URL's or will I have a separate set of data based on the new URL (with the subdomain). Any insight would be appreciated! Thanks!
Reporting & Analytics | | EvansHunt0 -
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 -
Do Google Analytics filters affect link building?
We recently made a few link wheels for specific product pages. We've been having great results with all of the wheels except for one. The one we are having issues with is the only link that we were using a Google Analytics filter on; it looks like this http://domain.com/page.htm?zSource=Specific Keyword%tracking My question is does Google ignore links that are obviously utilizing their analyitcs custom filters? We're doing some more testing to try to find out if it truly is the link or if the wheel is a bad one. There are so many things that could go wrong but with so many of our link wheels working well, I wonder if the filters are what is causing such results.
Reporting & Analytics | | MichealGooden0 -
How to change a url for google analytics account
We recently changed the url of a client's website. Is there a way to change the url on the ga account instead of creating a new account so that we don't lose comparative data? Thanks! Sorry- I know this is a novice question.
Reporting & Analytics | | marketing12340