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 set goal in Google Analytics that required specific page
So our company has new page that has just implemented (let say "page x" --> not a landing page) and we want to see how many visitors that through "page x " convert into the goal (let say "page y"). If I just make the goal destination like "/page y" the goal number that appear is ALL the visitors who reach "page y" (through or not through "page x"), so how I set the goal setting to only show the visitors who reach "page y" through "page x" ? Thank you
Reporting & Analytics | | ddspg0 -
How to FILTER in Google Analytics an ad campaign from linkedin?
Hi mozzers We are setting up an a linkedin ad campaign for our agency and want to track its traffic and conversions. The linkedin ad will carry UTMs for each link. For tracking this campaign accurately I thought about creating a new GA View with a specific filter. So my question is about the filtering, should i use the INCLUDE, REFERRAL with pattern LINKEDIN.COM (see image)? if not what would be the best way to track this campaign? My other concern is that we are also running other a job ad on linkedin and I feel these hits will be tracked as well. Is there a way to separate those 2 campaigns? Thanks guys! MzE5hqE.png
Reporting & Analytics | | Ideas-Money-Art0 -
Google Analytics and Bounce Rates Query - Should I block access from foreign countries ?
Hi , When I look at my google analytics for my UK Website, I can see alot of visits come from outside the UK , i.e Brazil and USA. Both of which give me almost 100% bounce rates from people visiting from there. I am wondering, if google looks at bounce rates with regards to ranking factors and should I therefore block access to my site from visitors outside the UK ?... Would this help increase my rankings ? Given that we only serve uk customers, I cant see any benefit of allowing non uk customers the ability to see the site . what does people think ? thanks pete
Reporting & Analytics | | PeteC121 -
Moving data between Google Analytics Properties
Last summer we setup another Google Analytics property for us with Universal Analytics and have been running this alongside the old Google Analtyics property. is there a way of exporting all the old data from the old property into the new Universal Analytics property?
Reporting & Analytics | | ese0 -
Multiple domains to one payment sub-domain in Google Analytics
Hi Mozzers, I have a series of sites (~25) that are all regional e-commerce sites with the same URL structure eg. www.[region]-product.com as well as a 'master' site (eg www.product.com). I also have a single Adwords PPC account which point to all of the regional sites as well as the master site. As part of the payment/checkout process you only ever get taken to a sub domain of the master site (eg payment.product.com). My question is: Is it wise to use the single PPC Adwords account to set up an Analytics account under which I list all of the regional sites and the master site? Once that's done I'm not entirely sure how I can track sales from a regional site to the payment process of the master site and have sales correctly assigned to the right domain. On the payment process I can only use one site ID tracking code so I'm not even sure I can correctly assign a transaction to a single site if multiple sites use the same payment pages. Example: Visit to region-product.com > Quote form submitted to payment.product.com > Payment completed on payment.product.com > Sale is assigned to which domain? Can anyone who understands what I'm trying to achieve comment on the plausibility of this? Many many thanks!
Reporting & Analytics | | panini0 -
Google Analytics Customer filters & the correct syntax
Good afternoon from torential rain and thunder Wetherby UK 😞 Ive been delving into the world of custom filters in Google analytics and Ive hit a problem. Apart from Googles advice being out of date (wont get into that one) I wanted to set up clone a profile of an existing site and set up a filter that would exclde USA traffic. But a country can be called many things e.g. United Sates USA America so how do you know what is the correct name to put in the filter pattern box? Here is a screen shot of my efforts :http://i216.photobucket.com/albums/cc53/zymurgy_bucket/filter-toexclude-usatrafficcopy.jpg (I chaned it to United States) So my question is where is there a list of the correct syntax for the filter pattern box? Taker for example you wnated to set up a custom filter to include just Palm OS traffic apprently from reading this the correct filter patter is Palm OS, i only know that from this http://www.e-nor.com/blog/web-analytics/tracking-mobile-devices-in-google-analytics Whilst Google has lots of documentation about filed patterns as documented here http://support.google.com/analytics/bin/answer.py?hl=en&answer=1034380&topic=1034830&ctx=topic Where in the name of flying spacial jockstraps is there documentation for the correct filter pattern syntax. Help my head hurts 😞
Reporting & Analytics | | Nightwing0 -
View entrance keyworsd for a subpage in google analytics
I have an element from ringcentral that is tracked by google analytics, yet for the life of me I cannot figure out to how to view the entrance keywords to that element. I can view the search metric and see which keywords and how many visits from each keyword onto the site in general, but how do I see which keywords were actually responsible for this 'click to call' code which has GA? I can see the total number of clicks into that code, but not which keywords led to it.
Reporting & Analytics | | ilyaelbert0 -
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