Worth knowingGoogle Analytics · Changelog

Google Analytics hostname filters can block spam traffic from other sites

Google Analytics now has hostname filters. You can make an approved list of website addresses, and only events from those addresses are counted in your property.

Key facts

Platform
Google Analytics
Do I need to act?
No, but worth a look
Deadline
None
Who it’s for
marketers, developers
Announced
21 September 2026

What they said

Read the original ↗
“Hostname filters”
Source: Google Analytics

Why it matters

Spam and fake traffic can land in your reports when someone sends events using your measurement ID from a site that isn't yours. That skews sessions and conversion rates. An include filter means only your own domains count. It also blocks events with an empty hostname, which often points to spam.

Events sent through the Measurement Protocol aren't affected, so server-side tracking keeps working.

What to do

  1. List every domain you trackMarketing or analytics lead

    Include your main store, checkout domain and any other sites that share the property before turning a filter on.

    Email it
  2. Add a hostname include filterMarketing or analytics lead

    Set up the filter with that list, then check your real-time report to make sure your own traffic still comes through.

    Email it

Questions

How do I stop spam traffic in Google Analytics 4?

Use a hostname include filter so only events from domains you approve are counted. It also blocks events with an empty hostname.

Do hostname filters affect Measurement Protocol events?

No. Google says Measurement Protocol events aren't affected by hostname filters.

Checked before publishing

Found by our AI agent and checked by Peter Screeton, Founder of Create8. He confirmed the original source is genuine and that this summary matches what it said when published.

General information only, not professional advice. Platforms change things often, so always read the original source before you act. How we check stories

Free checklist

Check your store for changes like this every quarter

34 quick checks across 8 areas, from apps and tracking to feeds and deadlines. Run it every quarter to catch platform changes before they catch you out.

Get the free checklist