---
title: "Google Analytics 4 Adds Include Filters for Hostnames"
description: "Google Analytics 4 now lets you allowlist approved hostnames with an Include data filter, rather than only excluding unwanted ones."
tldr: "Google Analytics 4 now offers Include data filters for hostnames, letting you define an allowlist of approved domains instead of maintaining an Exclude list of unwanted ones. The filters act only on incoming data and, once set to Active, permanently drop any event that does not match, including events sent with no hostname, so Google advises testing a filter before you activate it. The option was logged in a 21 September 2026 release note and may not have reached every property yet."
publishDate: 2026-09-24
author: "Liam Hayward"
---
Google Analytics 4 now supports Include data filters for hostnames, so a property can list the domains it will keep event data from. A 21 September 2026 entry on Google's "What's new in Google Analytics" page records the change. Until now hostname filtering could only exclude: Google added the filter type on 11 June 2026, and at that point it only let you "filter out (exclude) events based on their hostname". With an Include filter you define the approved hostnames instead, which Google frames as ending the upkeep an exclude list needs, since an allowlist does not have to be edited every time a new spam hostname appears. Two behaviours are worth knowing before you switch one on: Include filters are not applied to events sent through the Measurement Protocol, and events that arrive with no hostname at all are blocked, which Google says "typically indicates spam or abnormal traffic". GA4 repeats both points as a caution on screen when you pick the option.

The usual reason to want one is a GA4 tag reporting from somewhere it should not. A staging copy at `staging.example.com`, a preview deployment on your host's own subdomain, or a scraper that copied your pages with the tag still in the markup all send events into the same property. With an Exclude filter each one has to be spotted and added before it stops; with an Include filter you list `www.example.com` once and all three are dropped, including copies you have not found yet. The flip side is that it also drops any legitimate hostname you forget, so list every one that serves real pages: the bare domain as well as `www`, a `shop.` or `blog.` subdomain, a checkout on a separate domain.

Set it up under Admin, then Data filters, by creating a Web hostname traffic filter and choosing "Include only" as the filter operation. Several Include only filters are combined, so a hostname listed in any one of them is kept, and together they run before any Exclude filters. Test it first. Data filters act on incoming data only, so they never clean up historical reports, and once a filter is Active the effect is permanent, with filtered events that "will never be available in Google Analytics or BigQuery". Google's own advice is to run the filter in its Testing state, which tags matching events rather than dropping them, before activating, and to allow 24 to 36 hours for it to take effect. The release note gives no rollout details, and on 24 September Google's hostname filter setup page still described the feature as exclude-only, although the option was live in this site's own GA4 property that day. If Include only is missing from your Filter operation dropdown, it has not reached your property yet.

## Sources

- [Google Analytics Adds Include Filters For Hostnames, Search Engine Journal](https://www.searchenginejournal.com/google-analytics-include-hostname-filters/590336/)
- [What's new in Google Analytics, Analytics Help](https://support.google.com/analytics/answer/9164320)
- [Data filters, Analytics Help](https://support.google.com/analytics/answer/13296761)
- [Filter out web hostname traffic in Google Analytics, Analytics Help](https://support.google.com/analytics/answer/16608575)