WebmasterID logoWebmasterID
Analytics dimensions

Hostname dimension

The hostname dimension records the domain that served each page_view — example.com, staging.example.com, or a domain you do not own. It comes from the host portion of the page_location URL. It is one of the most useful data-quality filters: unexpected hostnames reveal staging traffic, mis-deployed tags, or hits faked by referrer/measurement spam against your property.

Verified against primary sources

What this means

Hostname is the host portion of the URL that served a page_view: the domain or subdomain in page_location. On a single-domain site it is constant; across subdomains, regional domains, or cross-domain setups it varies and lets you split or unify properties.

Why it is a data-quality lever

Because the tag reports whatever hostname it ran under, the dimension exposes problems: staging.example.com traffic mixed into production, a measurement ID pasted onto the wrong site, or hits sent via the Measurement Protocol claiming a hostname you never deployed to. Filtering reports to known hostnames is a standard first line of defence against this noise.

How it appears in analytics and logs

A hostname value is the domain in the page_location. Hostnames you do not recognise usually mean staging/dev traffic, a tag deployed on the wrong site, or measurement-protocol spam.

Diagnostic use case

Use hostname to filter reporting to domains you own and to spot staging, mis-deployed tags, or spoofed hits arriving under a foreign hostname.

What WebmasterID can help detect

WebmasterID can scope analytics to the hostnames you own and flag foreign hostnames, helping separate real first-party traffic from staging and spoofed hits.

Common mistakes

Privacy and accuracy notes

Hostname is a domain, not a visitor. WebmasterID reads it first-party and uses it to keep data clean, with no personal data involved.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.