From time to time, you will find hits from referrals that are not relevant for your Analytics, for example testing sites like mobile friendly tests or
spam (this method is no longer recommended for fake traffic, instead use this guide)
No matter the reason of why you consider that source irrelevant you can easily exclude them to keep your Analytics data meaningful.
How to create a filter to exclude irrelevant referrals
- Go to the Admin section of your Analytics
- Select Filters (from the column View) and the +Add a new filter
- Enter Exclude Irrelevant Referrals as a name
- In Filter Type - Custom
- In Filter Field (dropdown) - Search and select Campaign Source
- Filter Pattern (text box) - Copy the name of the source/referral
- [OPTIONAL] You can test your filter by clicking verify this filter at the bottom of the screen. If you get the message "This filter would not have changed your data...", first check the filter configuration. If everything is OK, it just means that the tool didn't find any match in the sample data.
If you want more information about the verification feature and a more precise way of testing your filters check the following article
- Once you are sure everything is ok, Save the filter.
Most of the time the filter will start working in less than an hour, but officially it can take up to 24 hours before the effects start showing, if you are still seeing new occurrences after that time, check the configuration of your filter.
What if I want to exclude more than one referral
If you have multiple referrals, don't create one filter for each, or your filter screen will become messy. Instead keep adding them to the same filter separated by a pipe "|" until you reach the character limit (255) after that you will need to create a second filter. For example