Analytics & TestingMartech Zone Apps

Referrer SPAM List: How to Remove Referral Spam from Google Analytics Reporting

Have you ever checked your Google Analytics reports only to find some very strange referrers popping up in the reports? You go to their site and there’s no mention of you but there are a ton of other offers there. Guess what? Those people never actually referred traffic to your site.


If you didn’t realize how Google Analytics worked, basically a pixel is added to every page load that grabs a ton of data and sends it to Google’s Analytics engine. Google Analytics then deciphers the data and organizes it neatly into the reports that you’re looking at. No magic there!

But some idiotic spamming companies have deconstructed the Google Analytics pixel path and now fake the path and hit your Google Analytics instance. They get the UA code from the script that you have embedded in the page and then, from their server, they simply hit GA servers over and over until they begin popping up on your referral reports.

It’s truly evil because they never even initiated the visit from your site! In other words, there’s no means for your site to actually block them. I went around and around on this with our host who patiently explained what they were doing over and over and over until it got through my thick skull. It’s called a ghost referral or ghost referrer since they never actually touch your site at any time.

In all honesty, I’m still not sure why Google hasn’t simply started maintaining a database of referral spammers. What a great feature that would be for their platform. Since no visit actually occurs, these spammers are wreaking havoc with your reports. For one of our clients, referrer spam makes up over 13% of all of their site visits!

Create a Segment in Google Analytics that Blocks Referrer Spammers

  1. Sign in to your Google Analytics account.
  2. Open the View that includes the reports you want to use.
  3. Click the Reporting tab, then open the report you want.
  4. At the top of your report, click + Add Segment
  5. Name the segment All Traffic (No Spam)
  6. In your conditions, be sure to state exclude with source matches regex.
Exclude Referrer Spam Segment
  1. There’s an updated list of referrer spammers on Github that Piwik users are using and it’s pretty good. I’m pulling that list automatically below and formatting it properly with an OR statement after each domain (you can copy and paste it from the text area below into Google Analytics):
  1. Save the segment and it’s available to every property within your account.

You’ll see tons of server scripts and plugins out there to try and block referral spammers from your site. Don’t bother using them… remember that these weren’t actual visits to your site. The scripts these folks are using faked the GA pixel directly from their server and never even came to yours!

Douglas Karr

Douglas Karr is CMO of OpenINSIGHTS and the founder of the Martech Zone. Douglas has helped dozens of successful MarTech startups, has assisted in the due diligence of over $5 bil in Martech acquisitions and investments, and continues to assist companies in implementing and automating their sales and marketing strategies. Douglas is an internationally recognized digital transformation and MarTech expert and speaker. Douglas is also a published author of a Dummie's guide and a business leadership book.

Related Articles

Back to top button