Bot filtering
Learn what bot filtering is and how to exclude all hits from known bots and spiders in Google Analytics.
What is bot filtering?
Bot filtering allows you to disable traffic from bad bots and spiders that can show false information in the Google Analytics data of your websites. Traffic from bad bots and spiders are a big issue for webmasters, website owners, and anyone responsible for keeping an eye on data measured by Google Analytics. Bots and spiders can virtually corrupt a website’s analytical data including the website’s bounce rate and everything else measured in Real-Time, Audience, Acquisition, and Behavior reports. If bot traffic and spammy crawler bots are affecting your website’s analytical data measured by Google Analytics you may not have access to your website’s appropriate data.

There are many ways to block bots and referrer spam in Google Analytics by creating exclude filters and using your .htacess file. Google Analytics also has a Bot Filtering feature that allows you to exclude all hits from known bots and spiders in Google Analytics. The Bot Filtering feature and option to exclude all hits from known bots and spiders in Google Analytics is very simple to do.
How to exclude hits from bots and spiders
1. Open your Google Analytics account and go to the Admin tab
2. In the “View” section on the right side of the page select the account you want to use or ensure that the account name is already visible.

3. Click View Settings in the “View” section and scroll down to the Bot Filtering area.

4. In the Bot Filtering area check the box that says Exclude all hits from known bots and spiders and click the blue Save button below.
- cPanel Down for Some Users After Emergency Authentication Security Update
- Bot Traffic from China Is Spamming the Web
- WPvivid Bug Exposes 900,000 WordPress Sites to Remote Takeover
- WordPress 6.9 Is the Most Problematic Update of All Time
- What Is data-start data-end and Is It Exposing Your AI Content?
WordPress Bot Protection
Bot Blocker for WordPress
Detect bot traffic, monitor live activity, apply bot-aware rules, and control AI crawlers, scrapers, scanners, spam bots, and fake trusted bots from one clean WordPress admin interface.
Sean Doyle
Sean is a tech author and security researcher with more than 20 years of experience in cybersecurity, privacy, malware analysis, analytics, and online marketing. He focuses on clear reporting, deep technical investigation, and practical guidance that helps readers stay safe in a fast-moving digital landscape. His work continues to appear in respected publications, including articles written for Private Internet Access. Through Botcrawl and his ongoing cybersecurity coverage, Sean provides trusted insights on data breaches, malware threats, and online safety for individuals and businesses worldwide.




6 Comments
[…] Sean Doyle […]
Many thanks.
When testing the filter you made the result often shows 0 because GA tests over the past 7 days and not the actual date. Mind that when you install the filter.
thank you
Useful information. My sites have been spammed frequently. Thanks for the detailed article!
Very good info. I was spammed by the abcdef bot and googled the URL that came up (the lyrics to “Money”, by Pink Floyd). Which led me to your page. Good SEO work!