Remove spam from your Google Analytics historical data
The spam that is already stored in your Analytics (or any data for that matter) can't be permanently deleted. That is why it is important to create the filters to stop receiving junk traffic.
However, you can still clean your past data affected by spam using a segment.
To help you get started I created a segment template that you just need to fill with your "valid hostname expression" and the pre-built expressions I prepared for you.
Clean segment template for Google Analytics
Import the template from the Google Analytics gallery.
- Select the view where you want to import the segment and click create,
- Fill the placeholders with the expressions you built (hostname and 3rd party tools) and the rest with the pre-built expressions below and save.
Want to get notified of expression updates
After saving the segment, you will be able to see spam-free reports, as long as the segment is selected.
Do you have any questions or feedback?
I've tried to cover every important detail in this guide, however, if there is any part of the guide where you got stuck, let me know in the comments section below.
If this article helped you, consider sharing it or leaving a comment below on your experience, it may help other people! need help implementing, configuring, and/or protecting your Google Analytics? I can help
If you need help with this or any other Google Analytics configuration/customization.