I had a problem with spam ruining my Google Analytics. If you have the same problem you know what a nightmare that could be. I read a lot of suggestions on the Internet that should help me to stop spam bots, but nothing worked for me.
Their first suggestion was to block spams using filters. Those filters were effective just for some of the spams, but not for all of them. The second suggestion was to block them via .htaccess file. Even though I did everything that was suggested I couldn’t stop receiving spams in my Analytics account.
If Nothing Works This Is How You Can Stop Referral Spam in Google Analytics
If you have the same problem as me, the solution you are looking for could be in creating segments. This is how you can do it:
- Go to your Google Analytics projects and choose + Add Segment
- Click on a new segment button to add a segment.
- On the left side, you will see Advance option and conditions.
- Choose conditions and set parameters as it is on a picture below. If you want this to work it is important to set this condition to be excluded.
- Once you save the condition go to your dashboard and click on all sessions.
- From the drop down list remove a checkmark from All Sessions and choose a custom option on the left side.
- Check Excluded Spam Segment and click apply.
You can easily share this segment with other users. Under the custom segments choose action option (on the right side) and click on “Share”. Copy the link you see and send it to another user.
With segments option, you won’t be able to block new spams, but you can exclude them from your Analytics reports. Every time you see a new spam source (URL) in your Google Analytics you will have to add it manually in created segment.
This is the list of some spam sites that can show up in your Google Analytics account: