How to automatically filter spam referrals in google analytics - google-analytics

There are a lot of very good articles and answers out there that explain (in detail) why we get spam referrals messing up Analytics data. Example results: how to automatically stop spam traffic in google analytics
What I want is a definitive solution...
If you only manage one analytics account, it would not be unreasonable to manually filter suspect domains, but even this is not sustainable. If you, like me, manage over 30 accounts and counting, it gets ridiculous. What is the long term solution?
Analytics data is important for making business decisions.
Is there some service that, like antivirus software, keeps updating its 'definitions' and constantly filters spam traffic?
How can we fight back?
And how can/is it already automated in a one-click solution?

You can try these 2 options to decrease referral spam:
Option 1 - Filter bots
Mark "Bot Filtering" option on on your Google Analytics View Settings. You will need to do it to all of your views
And also create a filter to exclude referral sources. To do this, create a new filter with options:
Filter Type: Custom
Exclude
Filter Field: Campaign Source
Filter Pattern: youporn-forum.uni.me|free-share-buttons.com|Get-Free-Traffic-Now.com|event-tracking.com|darodar.com
--> Also add other spam sources that you have
You can reuse the filter to multiple views.
And its also recommended to not apply these filters in your main view. Instead, create a copy of main view and use it to analyse your data.
Its not a permanent solution (you will need to add new spam sources from time to time).
Option 2 - Segment real users
You can also create a segment to filter only users that visited at least one page (it will filter spams):
Create a new segment
Advanced > Conditions
Filter | Sessions | Include
Screen Views | per session | > | 0
Then, when you are analyzing your data, use this segment to see only real users.

Not all spammers are blocked by Google Analytics (only up to 75% of bots can be blocked by google analytics). By adopting the following steps you can automate removing referrer spam:
Go to Acquisition>all traffic >refferals and a new window will be opened which shows sources from where your website get traffic
In this step select all website who have 0 or 100 % bounce rate and copy it and make a regular expression .the method for making expression is given below
Use "\." (escaped dot) between every part of the domain and use "|" (pipe) symbol to separate every link. E.g. consider your blog hits by two spammy URLs "ads123.abc59055xxb896.comtom" and "dd54.xy789z.usjpa" then we made following resultant expression:
"ads123\.abc59055xxb896\.comtom|dd54\.xy789z\.usjpa"
if you have any trouble in making regular expression then click here to see the complete process
Select the add filter option in admin tab and select include and paste the whole expression in the expression field and click on save

Related

The Google Analytics Vote For Trump Analytics Spam

We were checking newly implemented Google Analytics for our mobile app and surprisingly there are a lot of visitors from multiple countries but in actuality, we haven't released our app for any store and it's just beta between 5 main users.
After checking Google Analytics report in details we have found that it got spammed by Bot call "Trumps Bot" when something happens on your account you can see following lines in your language section.
“Secret.ɢoogle.com You are invited! Enter only with this ticket URL. Copy it. Vote for Trump!”
There are a lot of solution available to avoid this data in your reports using the filter but i was just wondering if there is any concrete solution on permanently remove this data from my reports and also is there anything we can do to avoid such data in future as its seriously affecting business strategy.
Due the tecnology used on Google Analytics the only way to eliminate this referal is using a filter, check one common point of all this hits . In this case is a hard one, because all the parameters changes , exept for the language, for a well know reason, to see the spam.
So try to use this one, in my case works
I highly recommend you read the community policy, this can be considered as off-topic question
Analytics spammers are always trying to find new ways of getting attention, and with this one, this spammer hit it big.
It is not possible to permanently remove it unless you delete the whole property. But you can create and advance segment to get a clean view.
But the most important part is blocking it so it doesn't pollutes your data. For this particular type of spam you should create a custom exclude language filter with this expression:
\s[^s]*\s|.{15,}|.|,
That expression will block any hit that doesn't use a proper language. That combined with a valid hostname filter should prevent most of the current spam and save you a lot of headaches.
If you need help, you can check this step by step guide for building these filters and creating the advanced segment to remove it from your historical data.
Here is also a related question.
Login in to Your Google Analytics account
Select ADMIN Section
Click on All Filters -- Add Filters
Give a filter name such as -- Include only website traffic
In Predefined section, select  Include Only
for more... Click Here

In Google Analytics, is there any way to exclude traffic from a source, but only when the traffic uses a certain Service Provider?

I am trying to do some analysis in Google Analytics and discovered that there is a particular bot that is sending a ton of 'fake' traffic to my site. I'd like to exclude this traffic from the analysis. It comes from a certain source (the same one every time) and is always on 1 of 4 Service Providers. I have isolated the traffic with the following segment:
INCLUDE "Service Provider" Matches RegExp "W|X|Y|Z"
AND
INCLUDE "Source" Matches RegExp "nameOfSource.com"
^^That returns the exact traffic I would like to exclude. So one would assume that when I set the INCLUDEs to EXCLUDEs it would give me what I need (everything except that segment). Instead, it excludes all traffic from nameOfSource.com.
Does anyone have an idea of how I could successfully exclude that traffic, without removing the legitimate traffic from nameOfSource.com as well?
Thanks in Advanced!
Google Analytics has filters for this purpose.
First of all create another profile so you have 2 profiles an unfiltered profile with all your data and create a a second profile and on that profile add the filters you want.
You can find this under the admin section in your GA account.
AND statements in Advanced Segment are not cumulative but they are not cumulative but they run one after the other.
You can do it with Advanced filter.
on field A extract "nameOfSource.com" from source
on field B extract "W|X|Y|Z" from ISP
output A+B to a custom var
Then you can use a second filter to exclude trafic with this custom var, or use an Advanced segment on it.

Google Analytics Goal Funnel Issues

I am attempting to create goal funnels in GA for dynamic asp.net based pages. The funnel currently looks as follows:
/
/market_home.aspx
/Category.aspx
/product.aspx
/Cart.aspx
/Checkout.aspx
/OrderReview.aspx
/Confirmation.aspx
The market_home, Category and product pages are dynamic and will contain various parameters ie:
/market_home.aspx?id=1
/Category.aspx?id=1
/product.aspx?id=1
I am using regular expression as my match setting (have tried head match as well). I still get two of my market home pages not being captured. It is only 2 out of 18.
I can't seem to figure out why it catches some, but not all of the traffic.
I also am not capturing incoming/outgoing traffic that is not at the start of the funnel. In other words, those visitors being captured in the funnel appear to complete the entire thing from start to finish. There are no visitors dropping out in the middle anywhere, which I can't believe.
The beginning of the URL will not change.
Any ideas what could be wrong?
I've got the same problem, i even asked about it couple days ago: Using regexp in Google Analytics Goal Funnel steps
I beleive the thing is that RegExp don't work properly in funnel steps. My solution for this is generating the same virtual pageview in every dynamically generated page and use it in the funnel. Goog practice is to create a separate profile for it and filter out those virtuals in the main to avoid data distortion.

Only show Google Analytics for my live domain

In my google analytics account it is showing data from my local testing server. I've also got a fairly popular tutorial/demonstration on my site, that people copy the whole source code and put on there site without removing my google tracking code. So i'm getting info about their traffic.
I've had a look through the settings and couldn't find anything relevant. Is there some sort of filter I can apply to show more accurate results.
Thanks,
Paul
You can use an include filter.
Filter type: custom -> include
Filter field: Hostname
Filter pattern: yourdomain\.com
Case sensitive: no
Note that you can have multiple excludes filters but only one include filter per profile.
And, you should always create a different profile for filters. Keep a separate raw profile with no filters.

Best way to generate an automated report in Google Analytics for a specific collection of URLs

Currently using Google Analytics as a supplement to our paid tracking software, but neither of them are giving us exactly what we need.
I have a list of about 60 or so urls (out of about 1500) on the site that I wish to setup a monthly report for that can be emailed to multiple recipients. I can't seem to figure out how to create a report showing just the hits on these 60 urls, I can apply advanced filters on the content page but those disappear after a while and sometimes error out when adding too many URL's.
Is there a method I'm missing in Google Analytics to achieve this goal or am I better running an SSIS package to pull the URL's from the API and formatting a document that way?
Yeah, advanced filters are not really designed for this kind of thing.
Here are some things which may work for you:
Try setting up a new GA Profile with an Include filter to filter only the URLs that you want to report on. You can use a regular expression to identify the 60 URLs. Then these will be the only URLs tracked in that particular profile.
Try setting up an Advanced Segment to select the Pages using a very long "OR" filter.
You could set up a new GA account and log the URLs into that account with additional tracking code. This is not really recommended as the 2 accounts will share tracking cookies.
Use Excellent Analytics to pull down data into Excel for the URLs in question using the GA Export API.

Resources