PPC

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.

GA Allowlist 1

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

Google Analytics Digital marketing Google Microsoft Outlook Web analytics Email marketing
Add Search Engine Land as a preferred source on Google

Editorial 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.

About the author

Anu Adegbola

Paid Media News Editor, Search Engine Land

Anu Adegbola has been Paid Media Editor of Search Engine Land since 2024. She covers paid search, paid social, retail media, video and more.

In 2008, Anu started her career delivering digital marketing campaigns (mostly but not exclusively Paid Search) by building strategies, maximising ROI, automating repetitive processes and bringing efficiency from every part of marketing departments through inspiring leadership both on agency, client and marketing tech side. Outside editing Search Engine Land article she is the founder of PPC networking event - PPC Live and host of weekly podcast PPC Live The Podcast.

She is also an international speaker with some of the stages she has presented on being SMX (US, UK, Munich, Berlin), Friends of Search (Amsterdam, NL), brightonSEO, The Marketing Meetup, HeroConf (PPC Hero), SearchLove, AdWorld Experience (Bologna, IT) and more.