Quick Fix: Google Analytics Referral Spam

Quick Fix: Google Analytics Referral Spam

Google Analytics has been overrun with spam – there’s no doubt about it. Every time I login to an account I can’t help but notice all the misrepresented data on display. There are a number of different ways to exclude this data in GA but I have found this simple solution will remove the majority of unnecessary referral spam. It will even allow you to view your data historically.

So here is the quick fix: Setup a custom advanced segment where the hostname contains the URL.

 

Here we go, step one:

Under Audience > Overview (the default Google analytics screen) click on the ‘All Sessions’ segment to display the segment options. Then click ‘New Segment’.

Audience Overview

 

Step 2:

Rename the segment to something recognisable, for example “Hostname contains yoururl.com”.

Under Advanced > Conditions select ‘Hostname’ as the filter, ‘contains’ as the parameter and then enter the URL you are tracking.

Then click ‘Add Filter’.

Hostname Contains davidpagotto.com

 

Step 3:

You’re done! Just go and select your new segment and click ‘Apply’.

Selecting a Segment

There you have it, a quick and easy way to retroactively filter the majority of your referral spam.

 

How is this segment working with your data?

2 Comments

Stu Edwards

about 2 years ago

Good work D.P! Solid tips :)

Reply

David Pagotto

about 2 years ago

Thanks mate :)

Reply

Leave a Comment

Please be polite. We appreciate that.
Your email address will not be published and required fields are marked