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 filter many cities from Google analytics
I need to filter hundreds of cities from my traffic reports. I've been told that adding them all in this format: |Knutsford|Ripon|Cheadle Hulme|Congleton| and using the 'matching reg/exp from the drop down should do it... Unfortunately that doesn't seem to be working as I can still see cities like London in the results.... Any ideas?
Reporting & Analytics | | david.smith.segarra0 -
Google Analytics
Is there any way around being able to set up 20 goals in Analytics? What if one of my clients want to set up 10 pages with separate actions to track on each page. Will then each actions count as a separate goal? If this is the case, how could I work around creating more than 20 goals? Would I have to look into hiring/buying a third party or separate software? Your help is greatly appreciated.
Reporting & Analytics | | flcity150 -
Advanced Segment on Google Analytics
Hello there, hope everyone is allright and rockin' the SEO world 🙂 Was wondering if anyone could give a tip on how to configure an 'Advanced Segment' on Google Analytics. Basically I need to isolate traffic for 4 specific subfolders. E.g. www.mywebsite.com/solutions/A www.mywebsite.com/solutions/B www.mywebsite.com/solutions/C www.mywebsite.com/solutions/D/part1 Please note that the website has more pages under the specific section. E.g www.mywebsite.com/solutions/Z www.mywebsite.com/solutions/D/part2 but I only need to isolate the 4 directories (and their own sub-folders) mentioned above. Any idea how I could do this? Thanks a lot Joe
Reporting & Analytics | | Joseph.Volcy0 -
Google Analytics: Deleted Profile
Has anyone ever successfully managed to have a deleted GA profile restored? One of our client's profiles was deleted accidentally. I know the official line is it can't be restored, but...
Reporting & Analytics | | David_ODonnell0 -
X2 Google Analytics affect page rank ?
Hi there, If you had 2 Google Analytics Accounts one to the main site and another to the blog, could this affect the page position in Google? We've suddenly noticed a drop in our KWs and it was shortly after we added another Google Analytics Account. The blog has 68% Bounce rate and the main site has always been about 48%. Any help would be much appreciated. Many thanks Paul
Reporting & Analytics | | webdesigncwd0 -
Impressions in Google Analytics
I am trying to compare SERP impressions in Google Analtyics between two different time periods. I want to compare the last two months, with the previous two months. Now this works fine when I go to Traffic Sources > SEO > Queries. Our analytics has been set up since early last year, so I cannot understand why, for a couple of weeks at the start of the previous two months, it is showing that I have less than 10 impressions per day, then in one day, it jumps to 22,000 impressions, and starts to show 'real' information after that... Very frustrating when I am trying to show how effective my work has been. Can anyone shed any light on this?
Reporting & Analytics | | MirandaP0 -
Google Analytics - Intelligence Custom Alerts
When you add an intelligence custom alert does it look at the history and backdate issues? I've added a few custom alerts, even basic ones like my homepage gets 5 views, create an alert. I either need to wait a day or something is going wrong. Cheers.
Reporting & Analytics | | Seaward-Group0