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 Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Content Management System - CMS Core Kernel C Programs Development Environment Setup Errors & Failures File Systems git Go Language Programs Hardware Platforms Home HTML JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL NDK / Middleware / HAL Network Driver 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 Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply