How to block spam from google analytics

There are numerous websites like listed below which generates spam activities on your website, and may completely mess up with google analytics report to addup to the number of daily visitors which are completely false users.


Login to google analytics,

go to Acquasition-> All Trafic -> Referrals



Copy the name of spaming website, as shown in above image, for example

and click on “Admin” tab as shown in above image at top right,



As shown in above image, in Admin tab, check for “VIEW”->All website data -> Filters

and click “New Filter” tab, inside this, “Create New Filter” , add the filter name as you want

in “Filter Name” , click “Filter Type” as “Custom” , set “Filter Field” to “Campaign Source”

in the “Filter Pattern”, paste the URL we copied above, and click “Verify this filter”

If there is a spam activity from same website, you should see something like below,



Now Click “Save” and DONE 🙂


Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense Multimedia - Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question