Google Analytics adds hostname allowlists to fight spam traffic
Google Analytics now lets users create Include filters for hostnames, giving businesses a simpler way to control which domains are allowed to send event data into their properties.
Spam and unwanted traffic can distort analytics reports and, in turn, the decisions marketers make from them. Instead of continually identifying and blocking bad sources, advertisers can now specify which domains they trust.
How it works. Previously, hostname filtering was limited to Exclude filters, requiring users to add unwanted sources as they appeared.

The new Include option flips that approach: marketers can create an allowlist of approved hostnames, and traffic from hostnames outside that list can be filtered out.
Why we care. Advertisers can now more easily keep spam and unwanted traffic out of Google Analytics, leading to cleaner reporting and more reliable performance insights. The allowlist approach also reduces ongoing maintenance by automatically filtering traffic from unapproved domains.
The upside. That could mean cleaner reporting with less maintenance, particularly for organizations managing multiple websites or properties that regularly encounter unwanted event traffic.
One catch. Google says hostname Include filters won’t apply to events sent through Measurement Protocol, ensuring those server-side or offline events aren’t inadvertently blocked.
Another detail. Events with an empty hostname will automatically be blocked by an Include filter. Google says missing hostnames — including some traffic sent through gtag.js — can indicate spam or abnormal traffic.
The big picture. The update shifts hostname filtering from a reactive approach — continuously finding and excluding unwanted traffic — toward a proactive model where businesses define the domains they trust.
Bottom line. For marketers relying on Google Analytics data for reporting and optimization, hostname allowlists could make keeping datasets clean both simpler and less time-consuming.
Explore more on
Add Search Engine Land as a preferred source on GoogleEditorial disclosure
Search Engine Land is owned by Semrush. We remain committed to providing high-quality coverage of marketing topics. Unless otherwise noted, this page’s content was written by either an employee or a paid contractor of Semrush Inc.


