stop google analytics referral spam

Campaign Source Filter Google Analytics

Using a Campaign Source Filter is great for blocking spam referrals quickly, but if your looking for something more maintainable you should use valid hostnames. When using campaign filters you will have to block everything one by one and the spam referrals will have already hit your data.

  1. Go to the admin tab
  2. Select the view from the drop down you want to filter
  3. Click on filters
  4. campaign filter

  5. Add new filter
  6. add new filter

  7. Add a filter name to remember the filter
  8. Filter type custom
  9. Select exclude
  10. Filter field as campaign source
  11. Paste in spam URL for filter pattern
  12. Save


It’s important to remember that these effects will take 24 hours or more to show as it will block referrals from that URL in the future from being added to your data.

Please share if you found this useful

Recent posts

Google Maps how to disable scrolling on iframes

Disable the mouse scroll wheel zoom on embedded Google Map iframes

Do Google Maps iframes get in the way of you scrolling through your website? Currently if you’re using Google Maps…

Read More

How to Increase the Menu Items Limit In WordPress

Have you reached the max items menu limit on WordPress? When you add more than a certain amount of menu…

Read More
Cloudflare flexible ssl https

How to Setup CloudFlare Flexible SSL for WordPress

As we all know Google has announced that it will be counting HTTPS as a ranking factor now. That means…

Read More
Let's Work Together!

I’m currently available for freelance web design work in Belfast now.