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
-
The best way to track internal links in Google Analytics
Hi there, we are a retail business and we have invested in quality editorial content which sits in our Blog at ourwebsite.co.uk/blog/ The Blog links to the main site (an online store) and I want to track the 'value' of the blog by how many clicks the blog content generates back to the main store. At the moment we're using this code on the end of every link in the Blog: ?utm_source=Blog&utm_medium=Widget&utm_campaign=FromBlog Does this affect SEO and is there a better way of doing it? Thanks.
Reporting & Analytics | | Bee1590 -
Cross domain tracking Google Analytics
Hi there, Got a question on cross domain tracking: We have a couple of TLD's to serve localized content to our visitors, next to our main .com TLD where our app is running as well in a subdomain. Situation is this: Local sites:
Reporting & Analytics | | jorisbrabants
marketingsite.be
marketingsite.com.br
marketingsite.fr Main site: marketingsite.com
app.marketingsite.com Conversion gets triggered when somebody ends up in app.marketingsite.com/firstuse for example. People can sign up at the local site filling in their email but they end up in app.marketingsite.com/firstuse Reading this article on cross domain tracking I'm getting a bit confused on the setup of the tracking code itself. The sample code provided shows these two lines: ga('require', 'linker'); ga('linker:autoLink', ['maindomain.com','targetdomain.com']); Now the question 🙂 Is it correct when I think that maindomain should be replaced with our local TLD's on every one of those, and that targetdomain is where the conversion happens? In this case the .com site?0 -
Is Google doing anything about the spam referrer plague in Google Analytics?
My client manages 15+ websites and we have observed the spam referrer issue has gotten steadily worse and worse in the last few months. I took the time to weed out the worst offenders via traffic filters but our referral traffic source garden was quickly full of weeds again a few weeks later. Does anybody know what the Google Analytics development team is doing to combat the spam referrer issue? I find it quite amazing that Google goes through the asinine effort to block out organic keyword data ("not found" & "not provided) but they don't seem to care about blacklisting/filtering spam referrers. RHnE6Wx
Reporting & Analytics | | RosemaryB3 -
Google Analytics
Looking at a client's analytics - one page doesn't seem to record 'average time on page' data (it just displays 0.00 despite it receiving traffic) This isn't an issue for the rest of the website's pages. Any idea? http://www.smilestyledental.co.uk/ppc/general-dentistry-at-smile-style.html thanks for any help!
Reporting & Analytics | | dentaldesign0 -
Showing significant visit in google analytics
Hello Everyone, I was checking GA account of my site and I have found there are few keywords have significant number of visits in GA. These keywords not ranking even in hundred(google SERPs).I am not understanding from where these visitors coming .Please help me out. I am attaching screenshot of those keyword.Last but not least when i check source of these keywords source are google. Thanks aScZ8WT.png
Reporting & Analytics | | Alick3000 -
Why are plus signs (+) suddenly showing up in Google Analytics organic search keywords reports?
Since June 13, 2013, the number of organic search queries containing a plus sign (+) has gone up over 1,000% compared to the previous period on my site in Google Analytics. These plus signs appear to be taking the place of spaces in these search queries (i.e. "word1+word2+word3"). This appears to be almost (or completely) Google organic traffic, not other search engines. Since I highly doubt searcher behavior would change so suddenly, I'm trying to figure out why Google is replacing spaces with plus signs. Is anyone else seeing this? Any ideas?
Reporting & Analytics | | RCF0 -
Setting Up Google Analytic with Sub Folder Sites
What is the best way of setting up Google Analytic for a website that has many sub folders? The main site is example.com and it has 40 sub folder sites like example.com/uk example.com/France etc etc Would it be advised to track a single domain in Google Analytic then create filters for the sub folder sites. Filters > Include traffic from > Sub directories Also with this method is it possible to view overall incoming website stats for everything? Previous experience would be great with this thanks 🙂
Reporting & Analytics | | daracreative0 -
Setting up Google Analytic Goals to a 3rd Party Site
I recently received help on a question I asked on SEOmoz but need additional clarification. I am trying to set up goals in Google Analytics for people who click on a “purchase botton” which sends them to PayPal. I created a Thank You page and tried to get PayPal to redirect to it, however, our customers only get to our site’s 404 page. Here is what I’ve done so far: Went into my PayPal account and turned the “Auto Return” to ‘on’ Under website payment preferences, I added the following URL http://www.teecycle.org/thank-youutm_nooverride1. (I formatted the URL this way because the person who provided me with help recommended using the format ?UTM_nooverride=1. However, our CMS system won’t allow “?” or “=”)
Reporting & Analytics | | EricVallee340