A guide to get rid of bot traffic & referrals in Google Analytics
I have noticed lately that many of my websites have started to receive strange traffic from various referral sources in Google Analytics. I’ve noticed it before too, but chosed to ignore it due to small amounts. However it has started to become a bit of a problem and the degree of bots & spiders right now is quite severe.
Why am I receiving bot traffic as referrals?
The websites are using bots and scripts to get your attention. They want you to buy whatever they have to sell, so they’re hoping you are going to visit their sites by curiosity. This technique has been used as a as marketing for some shady services for a while now. But now it has come to a point where all that bot traffic totally disrupts the whole statistics of Google Analytics and you can’t make any sense of the data anymore.
At some websites, more than 100% of the traffic is “fake-traffic”, coming from bots and spiders, trying to get my attention as a webmaster. It’s annoying and it makes the numbers inaccurate.
Bot filters – how to get rid of bot traffic in Analytics
I have managed to solve the problem very easily by doing two steps which I will guide you through here. It works, but the problem is that you have to do it on all websites. It can’t be applied to your all websites on your Analytics account.
1. Turn on the built in feature “Bot Filtering”
Google has a list of spammy services and websites that are excluded from your statistics at Google Analytics, but only if you enable it. It does not fix the whole problem, however a great amount of bots will be eliminated. The list is called IAB/ABC International Spiders & Bots List and is frequently being updated. Though, some bots might get through.
- Go to Google Analytics -> Admin. Choose your account, property, and edit the view by clicking “View settings”.
- Check “Exclude all hits from known bots and spiders” and save.
2. Add custom filters based on campaign source
Now to the second step, which is a bit more complicated, yet totally worth implementing, if you want to be sure to get rid of it all.
Google Analytics have a very smart and sophisticated way of filtering any kind of traffic you don’t want to include in your data. There’s literally endless of alternatives of filters to apply and there are many ways to get rid of any kind of traffic you don’t want.
The problem is to find the right filters to use, but after Googling, and trying many different filters, I’ll share which has worked best for me.
These include many different URLs and websites. If there is someone missed, you can just include it and please leave a comment below so I can update these filters. You will add a total of 3 filters. You can name them filter 1, filter 2, filter 3.
- Go to Google Analytics -> Admin. Choose your account, property and click “Filters” under the view.
- Click Add filter, choose Custom and then pick “Campaign source” as that is the one we will target.
- Under “Filter Pattern”, add one of the filters. Click save.
- Repeat until all filters are added.
Bot Filter 1:
Bot Filter 2:
Bot Filter 3:
Why does Google allow excess bot traffic to occur?