How to Block Referral Spam Traffic in Google Analytics?

By April

YouTube video

During Hump Day Hangout episode 63, one question asked was about blocking referral spam traffic in Google Analytics.

The exact question was:

Cheers! I've been digging into G Analytics inside the Acquisition section and noticed a lot of traffic from these two domains across several sites I'm tracking traffic2cash(dot)xyz and ?.?????.?????(dot)?? and others. Are these sites spamming these sites? They are in the Referral Traffic section which also makes me think that this is related to CrowdSearch which is being run on these sites. If it is SPAM, how do I block them? This is obviously skewing the numbers. Thanks!?

Here's a great resource for blocking referral spam – Loganix referral spam script:

This Stuff Works