DNotes LLC

DNotes LLC

Drupal development, hosting, and consulting

Stop analytics spam in Google Analytics

Stop referrer spam in Google Analytics

Google Analytics lets you track statistics on who visits your site and what they do on it. Every website should have it or something like it. Unfortunately, the spammers have found ways to mess up your analytics, hoping that you'll see their sites in your reports and come to visit them. In this video I will tell you:

  • Where to see analytics spam (hostname and source)
  • How to ignore analytics spam using a segment

The segment I create uses two conditions:

  • Include only traffic to your recognized hostname (ghost spam)
  • Exclude traffic from bogus sources using a regex (crawler spam)

If you've got a bunch of crawler spam from bogus sources, you might want to use a pre-made regex list. There are a lot of them out there, for example the one on Brian Clifton's site.

Technologies: