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’s 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
- Sign in to your Google Analytics account.
- Open the View that includes the reports you want to use.
- Click the Reporting tab, then open the report you want.
- At the top of your report, click + Add Segment
- Name the segment All Traffic (No Spam)
- In your conditions, be sure to state exclude with source matches regex.
- There’s an updated list of referrer spammers on Github that Piwik users are using and it’s pretty good. Here’s my list (you can copy and paste it in Google Analytics):
- 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!
Today's digitally empowered customers create a challenge for organizations to sell, market and service them effectively. Expectations are higher than ever before, and customers openly share both positive and negative experiences with just a few clicks on review websites, app ratings and social media.