Referral spam occurs when your website gets traffic from unusual Bot and suspicious referrals and this traffic is recorded in Google Analytics, invalidating the account data (for example, increasing the number of total visits)
These data must be deleted from Google Analytics, here’s how.
Bots are programs designed to automatically perform repetitive tasks. There are several Bot designed to visit websites over and over. These visits are recorded in Google Analytics, ruining useful real visitors data.
There is an endless list of Bots of this type and there are multiple reasons why they are created and launched in search of websites to visit:
There are good and bad Bots. Among the good is Google’s one (GoogleBot), whose purpose is to visit your website and index its content. Usually good Bots visit the website infrequently, while the bad ones are persistent.
In the above chart, the six results are definitely spam Bots, because the site has no reason to be linked and receive so many visits (with a high bounce rate) from sites that have nothing to do with the spontaneous generation of links to its pages. Do not visit those sites! Most often they contain malware that can infect your computer (it is the reason they try to lure you on their pages).
The first thing to check in Analytics is if the “Bot Filtering” box is ticked in your view settings, as in the below picture:
In order to eliminate this type of spam visits from your account you have to setup a filter in your main view of the Google Analytics account. You have to setup a Custom filter that excludes “Campaign Source”, and on the “Filter Pattern” you should list the known domains you previously found in the Referral report, separated by a pipe (“|”). There is a limit of 128 characters for filter; if you need to add more domains you should create multiple filters.
If you want to avoid the hassle of creating each filter individually you can use the Spam Filter Installer – an online tool by Simo Ahava that connects with your Google Analytics accounts and automatically install multiple filters on the views you select. The filters take into account this list of spambots by LoneGoat. It is being constantly updated, but because of the appearance ratio of new spam referrers you may want also to add your own filter, after analyzing your traffic data.
If, instead, you want to hide the bad spam referrals from your historical data, check out our article about how to clear spam referrers with segments.
Another way of dealing with spambots, this time from the server side, is to add blocking rules to your .htaccess file:
## SITE REFERRER BLOCK
RewriteCond %{HTTP_REFERER} semalt.com [NC,OR]
RewriteCond %{HTTP_REFERER} buttons-for-website.com [NC,OR]
RewriteCond %{HTTP_REFERER} seoanalyses.com [NC]
RewriteRule .* – [F]
At the moment Google seems not to put enough effort to stop this emerging problem, but we all hope that they will soon come up with an integrated solution.
by Federico Conti
Get in touch with a brief summary of your requirement and we’ll be happy to discuss your project in an open and transparent manner.
Request a ConsultationLearn how the EAA impacts businesses and the steps required for compliance by 2025. Discover what's affected, penalties, and how to prepare your busin..
Read MoreExplore the powerful capabilities of calculated metrics in Google Analytics 4. This guide provides a detailed walkthrough on how to create and apply t..
Read MoreThis article delves into the rapidly evolving world of voice search technology and its potential impact on the advertising industry. It highlights the..
Read More
To get customers, it’s imperative to be seen by the mass. Every successful company is unique and needs contrasting digital marketing strategies. Book a meeting with us and we will help you find the correct strategy for your company.
Our Approach