How To Remove Referral Spam In Google Analytics
Last Edited September 11, 2023 by Garenne Bigby in Search Engine Optimization
Has there ever been a time that you are looking at your Google Analytics, and noticed a strange influx of referral traffic to your site? You haven't run a special promotion or released a particularly outstanding piece of content and suddenly gone viral. You are not entirely sure what is happening and why. In order to get the correct data that reflects your analytics accurately, you will need to get rid of the referral spam for good. How should you deal with this surprise influx and unwanted spam? Read on carefully to fix the problem.
What is Referral Spam?
It is possible that this is because of referral spam messing with the referral traffic information in Google Analytics. This happens when a website gets referral traffic that is not human-based, but is from spam bots or programs. This information is then recorded in the Google Analytics account, messing with the data and creating issues with reporting. Referral spam comes from all over the world and is sometimes easy to spot. Other times, it can be a bit more covert, but you should be looking for referral traffic with a bounce rate of 100%, or none at all—chances are that this is a spam website.
If you're still not sure, just visit the site for yourself and you'll discover if it is bringing real traffic or not. If you choose this route, be prepared with a good anti malware program installed. The technique behind referral spam is that there are repeated web site requests using a rake referral URL to the website that the spammer is aiming to advertise. Ghost spam is when the spammer has never even visited the website afflicted, and this is what those fake visits are called.
Fixing Referral Spam
There has been much talk about excluding referral spam, and not all of the information has been absolutely right. It is vital that you are not using the Referral Exclusion List on Google Analytics.
This is because it is used to exclude traffic from a 3rd party shopping cart to hinder customers from being counted in a new session also as a referral when they come back to the verification page after checking out of the 3rd party site. This can be a bit confusing, and it may be assumed that Google would keep the visit from the Analytics page. What really happens is that GA attempts to connect the returning visit to the prior source and medium, preventing it from being acknowledged as referral traffic. When there is no previous medium/source, it is not seen as direct traffic. In short, it will move one batch of bad referral traffic to a different medium/source, so the data is still being skewed in Analytics.
Remove Spam the Right Way
Now knowing that the referral exclusion list option is not the best option for fixing referral spam, what should be done? The traffic from each view has to be filtered off but not excluded while using the referral exclusion option at the level of the property.
How is this done? Do the following:
- Create a new filter called “Referrer Spam” at the view level
- Set it to “custom” type
- The field should be set to “campaign source”
- Within the pattern field filter, enter the referral spam domain
- Make sure that you save it
This ensures that the spam traffic is filtered from those specific sources. When more sources need to be added, simply place a pipe after the domain, and escape the dot with a backslash.
This not becomes a regular expression for spam websites that need to be removed from Analytics. It is suggested to have a copy of this on hand in a text file for later use. Best practice always includes having a web developer check the regular expression and make sure that you check the “filter known bots and spiders” option.
These filters will only work from the time that they are created and take a full 24 hours to take effect.
Create a Custom Segment
A custom segment will remove spam data from GA reports and is a bit temperamental, so here are the general guidelines for doing so:
- Within Google analytics, open your reporting view and click on Add Segment, when select New Segment. This new segment should be called No Spam or something to that effect. Then, select Advanced Conditions on the left side.
- Select “sessions” and “exclude” in the filter options.
- “Matches regex” and “source” should be selected in the two drop down menus.
- Paste in the regular expression that was created previously. This is why you should have saved the expression previously.
After this, you will just save and then apply the segment. The applied segment will begin removing the ghost spam from the reports, leaving your Google Analytics with clean data.
It is important that you are checking your referral traffic on a regular basis, so that you can successfully identify and get rid of any ghost spam that could be making a negative impact on your reports in Google Analytics. The likely scenario is that when you have gotten rid of one spam website, hundreds or thousands more have been created, and the basic data cleansing in Google Analytics will not hold up for long. Whether you are choosing to take the technical route or the non-technical route, it is possible to get rid of referral spam from your Google Analytics data.
When referral spam is not taken care of, it presents a skewed version of your analytics, giving you a false report. As a brand, you need to have an accurate representation of your data and what is bringing traffic to the site. When you have skewed analytics, you cannot depend on those numbers to indicate what is and what is not working for your website. In just a few simple steps you can make sure that the referral spam is not harming your analytics.
Related Articles
- 4 Easy Ways to Search a Website for a Specific Word
- Should You Use Nofollow Links For SEO
- White Hat SEO vs. Black Hat SEO
- Redirection and the Impact on SEO Rankings
- 12 Page Speed Best Practices to Follow for SEO
- All About the Robots.txt File
- Web Accessibility and Search Engine Optimization (SEO)
- What is Speakable and How Can it Help Voice Search SEO?
- How to Prevent Blacklisting When Scraping
- JavaScript (JS) and Search Engine Optimization (SEO)
- What is Negative SEO, and How to Defend Yourself
- The History of SEO and Search Engines
- How to Build a Website for Search Engine Optimization
- Duplicate Content Issues Hurting Your SEO
- Top 10 Backlink Checker Tools for SEO
- Why Does SEO Take So Long for Search Engine Success?
- Top 10 Content Planning Tools for Content Marketing
- Seo Copywriting: How to Write for Search Engine Optimization
- Top 15 Tools for Measuring Website or Application Speed
- Top 25 SEO Tips for eCommerce Websites
- Top 15 Plagiarism Tools for Finding Duplicate Content
- Top 25 SEO Blogs to Stay Up-to-date with Search
- The Best Content Management System (CMS) for SEO
- Social Media & SEO: Why Your SEO Strategy Needs To Include Social
- HTTP or HTTPS? The SEO Impact of Using SSL Certificates
- 35 Amazing Web Analytics Tools that Rival Google Analytics
- 25 Ways to Build Backlinks to Your Website for Free
- What Is Structured Data and Why You Need It for SEO
- 60 Innovative Website Crawlers for Content Monitoring
- Voice Search: How Our Voices Mold the Future of SEO
- Crawl Budgets. How to Stay in Google's Good Graces
- 30 Awesome Keyword Ranking Tools for SEO
- 43 Amazing Websites to Learn SEO Online
- Pagination or Infinite Scroll for SEO?
- How to Get Started Using Google Search Console for SEO
- CMS Plugins for Google AMP (Accelerated Mobile Pages)
- Are Keywords Still Important for SEO?
- Do Sitemaps Help SEO? The Importance of Sitemaps for SEO
- Getting Started with Search Engine Optimization
- SEO vs. PPC: Which One Should You Choose?
Categories
Create Visual Sitemaps
Create, edit, customize, and share visual sitemaps integrated with Google Analytics for easy discovery, planning, and collaboration.