
Referrer spam can have a significant impact on your website's traffic and analytics data. It can make it difficult to track legitimate traffic and make informed decisions about your online presence.
Referrer spam can increase your website's bounce rate and reduce engagement. This is because the fake traffic is often generated by bots or fake websites that don't interact with your site in a meaningful way.
To put this into perspective, a single referrer spam attack can generate thousands of fake referrals to your website in a matter of minutes. This can overwhelm your analytics tools and make it hard to distinguish between real and fake traffic.
The good news is that there are effective solutions to combat referrer spam.
Identifying Referrer Spam
Referrer spam can be a real pain to deal with, but there are some telltale signs to look out for. One of the most obvious indicators is a bounce rate of either 0 or 100%. This is because spammers often use fake or made-up referring domains.
If you see a referring domain that you don't recognize, it's worth investigating further. You can also check if the website is on a list of known spam websites. If it is, you can block it manually.
To identify referral spam in Google Analytics, start by filtering your Referrals report by descending bounce rate. Then, apply an advanced filter to only show a number of sessions over a certain threshold. This number can vary according to your traffic volume.
Another indicator of referral spam is a session time of 0 seconds. This is because spammers often use bots to visit your website, which can skew your data.
Here are some steps to identify referral spam in Google Analytics 4 (GA):
Log in to your GA4 account.Click on "Reports" in the left sidebar and then go to "Acquisition."Narrow your search by typing "referral" into the search bar. Then, add "Session Source" as a secondary dimension.Re-order the results by clicking on the "Engaged Sessions" column. This will show you which referral sources had 0 engaged sessions.Scan the results to spot referral spam URLs.
You can also look out for keywords that don't make sense. If you see a keyword that doesn't match up with any of your content or campaigns, it's likely spam. It's also a good idea to check with other departments to make sure these sites aren't related to some kind of failed advertising attempt.
Once you've identified the spam, create a regular expression with your list of URLs. This will allow you to exclude these sites from your referral traffic.
Impact and Problem Scope
Referrer spam can have a significant impact on your website's analytics data. It artificially inflates your Google Analytics data, making it difficult to rely on legitimate traffic insights. This can be a major problem, especially for smaller websites that receive less traffic.
The scope of the problem is quite big, with some webmasters reporting that fake refer traffic can account for up to 50% of overall traffic. This can render A/B tests and conversion optimization efforts useless.
Spammers are getting smarter, spoofing real websites like reddit.com, twitter.com, and addons.mozilla.org. They're even adding real metrics to referrer domains, making it harder to distinguish between legitimate and fake traffic.
Here are some of the biggest offenders in referrer spam:
- motherboard.vice.com
- lifehacĸer.com
- site-auditor.online
- addons.mozilla.org
- website-analytics.online
- monetizationking.net
- twitter.com
- stumbleupon.com
- addons.mozilla.org
- thenextweb.com
- speedup-my.site
- reddit.com
- top1-seo-service.com
- keywords-monitoring-your-success.com
- fix-website-errors.com
- law-enforcement-bot-dd.xyz
- free-social-buttons5.xyz
- slow-website.xyz
If you see referral traffic from these domains in your Analytics, there's a 99% certainty that it's fake traffic.
If this caught your attention, see: How to See Referral Traffic in Google Analytics 4
Removing Referrer Spam
Removing referrer spam can be a rigorous process, but it's incredibly effective in preventing these unwanted visitors from slowing down your site. One way to block referral spam URLs or domains is by using the .htaccess file, which completely wipes them out from your server.
This method involves coding, server changes, directory configurations, and other complex steps, so it's not for the faint of heart. If you're not comfortable with making these changes yourself, it's best to hire a developer or ask your hosting company for help.
Alternatively, you can use the built-in tools in Google Analytics to filter out referral spam, but the process differs between Universal Analytics and Google Analytics 4.
Methods That Don't Fix
Using the keyword "Referrer" in a Google Analytics filter won't work because it only sets the campaign source field, not the referrer field.
Doing a Google Analytics filter review to accept traffic only from your host name won't be successful as spammers can easily fake a host name.
Server traffic monitors or attempts to block out traffic on the server level won't work because there are barely any interactions made between the respective servers for the spam to be generated.
Utilizing Google Analytics bot filtering feature won't work as it wasn't created to handle such issues in the first place.
Blocking out entire geographical regions that bring about those spammy referrers won't work because geographical data can be corrupted through the measurement protocol.
Most spammers fake visits to your homepage by sending data to another URL using Google Analytics JavaScript customizations.
Practically Working Solution
A Practically Working Solution exists for removing referrer spam, but it's not a permanent fix. This solution involves excluding referrer spam and reporting filters among other advanced segments to block out most stubborn spammers.
Excluding referrer spam and reporting filters can be done by using a customized dimension with the same expression. This allows you to create a filter that targets specific domains.
You can also use a regex expression to block out referrer spam, but it requires frequent maintenance. This is because spammers can register many domains faster than you can keep submitting them to your filter regex.
Spammers can register new domains in as little as an hour, making it a challenging task to keep up with them. In contrast, it takes hundreds or even thousands of marketing specialists to comprehensively audit through stats to pinpoint malicious traffic and update filters accordingly.
If you manage multiple Google Analytics accounts, it's recommended to use Google's fully automated problem tracking tool, Auto Spam Filters. This tool safeguards your site from receiving referrer spam and keeps off ghost traffic, and its filters undergo continuous updates to protect against new spammers.
Cleaning Up Historical Data
Referrer spam can be a real pain to deal with, especially when it comes to historical data. You can clean up historical data in Google Analytics using custom segments.
Custom segments are a powerful tool in GA, and they can help you take care of business and keep your data clean. To create a custom segment in Universal Analytics, follow these steps: Log in to your GA account.Navigate to the "Reporting" tab.Click on "+ Add Segment" in the top left corner of the screen.Click on "Create new segment."Label your segment something relevant, such as "Exclude Spam Referrals."Click on the "Traffic Sources" filter.Set the "Filter Sessions" to "Source" and set this to "not match" the referral source domains.
Using custom segments to clean up historical data is similar to the UA filtering technique, and it's a great way to get a more accurate picture of your website's traffic and performance.
Preventing Referrer Spam
If you manage a couple of sites, you can try to monitor for bot referral spam and block it on the server level, but this won't stop ghost referral spam from getting in your Google Analytics reports.
The recommended way to stop ghost referral spam is to set up view filters in Google Analytics, including a filter for valid hostnames and an exclude filter based on the Campaign Source dimensions filtering out spammer domains.
Google Analytics 4 offers a stronger defense against referral spam, allowing you to define and block referral spam traffic before it reaches your website using new tools.
To block referral spam in Google Analytics 4, you can define conditions under which a referral will be considered spam, such as a specific domain.
You can create a customized dimension by using this same expression to block out most of the stubborn spammers, but this is not a permanent remedy as spammers can register many domains faster than you can keep submitting them to your filter regex.
See what others are reading: How to Stop Spam Text Messages on Samsung
Google has a fully automated problem tracking tool called Auto Spam Filters that safeguards your site from receiving referrer spam and keeps off ghost traffic, with filters that undergo continuous updates to protect against new spammers.
Here are some steps to set up an extra filter to block out entry of new spam:
1. Check your hostname report and specify a certain date range to narrow down the hostnames you should include.
2. Construct the filter using basic regex, ensuring you get it right to avoid interfering with your statistics.
The Auto Spam Filter tool can be used to protect and eliminate any other referrer spam or ghost traffic, making it a recommended solution for managing multiple Google Analytics accounts.
Google Analytics and Referrer Spam
Google Analytics has two main types of spam: bot referral spam and ghost referral spam. Bot referral spam is caused by actual bots that visit your site and make Google Analytics count the referral information.
Explore further: Youtube Comment Spam Bot
These two types of spam appear the same in your reports, but the approaches to blocking them can be different.
To identify referral spam in Google Analytics, look for telltale signs such as a bounce rate of either 0 or 100%, a session time of 0 seconds, and a hostname referral that's not set.
You can check if the websites that you suspect to be spam in your Referrals report are on a list of known spam websites.
Referral spam can account for a fair portion of your website traffic if left unchecked, so it's easy to see why search marketers get annoyed by it.
To remove referral spam in Google Analytics, you can use the .htaccess file to block referral spam URLs or domains. This method is rigorous but incredibly effective.
Alternatively, you can use the built-in tools in Google Analytics to filter out referral spam. The process is different between Universal Analytics and Google Analytics 4.
Here are the steps to filter referral spam in Universal Analytics:
- Log in to your GA account and go to the Admin section.
- Click on "All Filters" in the "Account" column.
- Click on the "Add Filter" button.
- Select "Custom" for the filter type.
- Choose "Exclude" for the filter field.
- Select "Referral" from the drop-down menu.
- Input all of the spam referral URLs you've identified in your analytics data, separated by the pipe (|) symbol.
Note that filtering spam domains or URLs in this manner does not prevent referral spam, but rather hides them from your analytics data.
To block spam in Google Analytics 4, you can define and block referral spam traffic before it reaches your website using the new tools in GA4.
Here are the steps to block spam in GA4:
- Under "Include referrals that match ANY of the following conditions", click on "Add condition."
- Choose "Domain" as the match type.
- Enter the identifier for the domain you want to block.
- You can also add another condition by clicking on "Add condition" again.
By following these steps, you can effectively block referral spam in Google Analytics and keep your data clean.
Featured Images: pexels.com


