Skip to main content

Stop Ghost Spam In Google Analytics

Over the past month, we’ve seen an increased amount of what people are calling “Ghost Spam.” Ghost Spam is essentially traffic that may look real at first blush, but upon further investigation is bot traffic.

There are two types floating around Google Analytics profiles everywhere. The first of these types is your standard referral spam. You’ll probably recognize the highly publicized (and invasive to your Analytics) semalt.com.

The other of these is a little more mischievous. The second kind of Ghost Spam uses a separate hostname like darodar.com and your GA number to spam your system and your data. I teamed up with our Google Analytics consultants and developed this post to help you rid yourself of these two types of pesky spam.

Type 1:

Google Spam Reports 1

Type 2:

Google Spam Reports

Method 1 - Exclude Campaign Source

In Google Analytics, you can set a filter to look for all of the campaign sources which may deliver spam traffic to your site. We’ve compiled a total list in regex, though your filter can only have 250 characters. So, you’ll need several filters to get everything.

There are other ways to write this that are shorter, but this should be easy for most people non-regex trained to copy and paste:

adviceforum|social-buttons|semalt|free-share-buttons|buttons-for|best-seo|cmsdevelop|buy-forum|googlsucks|sitebeam|onlineprofitscode|researchpro|urlopener|zapmeta|wiki\.coe|zuula|darodar|semalt

Feel free to add others you find to your own list. Your filter will look something like this when you enter everything:

Google filter view

Method 2 - Include Only Hostname

This next one involves setting your profile to only report on traffic to your own hostname. (Replace client.com with your own site domain). Make sure you only include hostnames which you control and want to report traffic from.

Google Hostname

Why Exclude For Referral And Include For Hostname?

The answer to this is due to the nature of what you know out of both data sets.

For hostnames, you always know exactly which domains you want to track, so you use an include filter. For referrals, you only know spam by finding the domains in your reporting. You don’t want to accidentally exclude real information from affiliates or partner sites.

Let's Recap!

1. There’s no need to be afraid of ghosts.

Ghostbusters

2. Two filters will help make sure you capture as much Ghost Spam as possible.

Ghostbusters

3. Exclusion filters can get a little messy, so you may need a few to capture all the sources you find

Edit: Link to Method 1 report | Link to Method 2 report

Conclusions

Have questions or comments? Give our Google Analytics experts a shout and we'll be in touch!

  • Analytics

Dan Kipp headshot

About the author

Dan Kipp

Dan Kipp is the Google Analytics and Google Tag Manager guru at Marcel Digital. He loves traveling, cooking, sports, and spending spare time with friends and family.