Exclude Filters: Removing Spam, Bots, and Unwanted Traffic

Home / Everything About / Everything About Analytics / Exclude Filters: Removing Spam, Bots, and Unwanted Traffic

Your analytics shows traffic that isn't real. Bot traffic clicking random links. Scrapers downloading your content. Spam referrals from shady websites. These visits look like real traffic but they're noise. They inflate your metrics. They make your conversion rate look worse. Exclude filters remove this noise. You identify unwanted traffic and exclude it from your reports. Real visitor data becomes cleaner. Your metrics become more accurate.

This article explains how to set up exclude filters that remove spam, bots, and unwanted traffic.

What Is Unwanted Traffic

Unwanted traffic includes bots, scrapers, and automated tools that visit your site without real human intent. Bots from search engines crawl your site. That's fine. But malicious bots scrape your content. That's unwanted.

Spam referral traffic comes from websites trying to get backlinks or referral credit. These sites send small amounts of traffic to thousands of websites. The traffic appears in your referral reports but it's not real.

Some traffic comes from old tools and scripts you're no longer using. An old internal tool that sent data to your site. A script that's no longer maintained. This legacy traffic is noise.

Identify Spam Referral Traffic

Look at your referral reports. You see traffic from websites you don't recognize. Websites with generic names. Websites that don't fit your industry. This is likely spam.

Click through to see what these referrers look like. Do they have meaningful websites? Or are they spam sites sending traffic to thousands of sites? Real referral partners have real websites. Spam comes from sites with no real content.

Document spam referrers. Keep a list. When you see a new spam referrer, add it to your exclude filter.

Set Up Spam Filters

Most analytics platforms have built-in spam filters. Enable them. These filters use known spam lists and block traffic from known spam sources automatically.

Built-in filters catch common spam. But new spam emerges constantly. Create custom filters for spam you discover. Filter by referrer URL. Exclude specific referrer sources.

Test your filters. After excluding a referrer, check that traffic from that source is gone. If it's still appearing, your filter might not be configured correctly.

Filter Bot Traffic

Your analytics platform filters some bots automatically. Google Analytics filters known bot traffic. But not all bots are filtered.

Look for traffic from tools and services. Traffic from SEO tools. Traffic from price comparison tools. Traffic from vulnerability scanners. These aren't real visitors.

Create exclude filters for bot traffic. Filter by user agent if you can identify the bot. Filter by IP if the bot always comes from the same source. Keep your filter list updated.

Exclude Internal Tools and Legacy Traffic

You might have internal tools that send traffic to your site. Monitoring scripts. Health check services. Automated testing tools. These aren't real visitor traffic.

Identify these tools. Get their IP addresses or user agents. Exclude them from your main reports. Create a separate view for internal tool traffic if you want to monitor them.

Be Careful With Exclude Filters

Exclude filters are permanent. Once you exclude traffic, it's gone from all views. You can't get it back. Be careful what you exclude.

Before excluding, verify the traffic is really unwanted. Look at the actual traffic. Is it bots? Is it spam? Or is it real traffic you're mistaken about? Only exclude when you're confident.

Keep a record of what you excluded and why. "Excluded example.com because referral traffic was spam." Documentation helps you remember your decisions.

Review Exclude Filters Regularly

Spam changes. New spam emerges. Old spam disappears. Review your exclude filters quarterly. Are the old spam sources still sending traffic? Probably not. Remove old filters. Add new spam as you discover it.

As your exclude filter list grows, it becomes harder to manage. Periodically clean it up. Remove filters for spam that no longer appears.

Frequently asked questions

How do we know if traffic is spam or real?

We excluded traffic by mistake. Can we get it back?

Should we exclude all bot traffic?

We keep getting spam from new referrers. How do we stop it?

Our platform's spam filter catches some spam. Should we also create custom filters?

We excluded a referrer but traffic from it still appears. Why?