What is Measurement ID?

Also called: G- ID, GA4 measurement ID, G-XXXXXXXXXX

Each GA4 property can hold multiple data streams — typically one per website and app — and each stream has its own Measurement ID. Sending to the wrong ID does not error; the data simply lands in the wrong property, often unnoticed for months.

The Measurement ID is public by design: it appears in your page source and in every network request. It is not a secret, and it grants no access to the property. The related API Secret, used for Measurement Protocol server-side hits, is a secret and must never appear in client-side code.

Measurement IDs (G-) are distinct from the older Universal Analytics tracking IDs (UA-), from Google Ads conversion IDs (AW-), and from GTM container IDs (GTM-). Mixing up the prefixes is a routine cause of "the tag is installed but no data arrives".

Why it matters

Multi-environment setups that hardcode one Measurement ID send staging and development traffic into the production property, quietly inflating sessions and poisoning conversion-rate baselines.

Common questions about Measurement ID

Where do I find my GA4 Measurement ID?

In GA4, go to Admin › Data streams, select the web stream, and the Measurement ID is displayed at the top right in the form G-XXXXXXXXXX.

Is it safe to expose a GA4 Measurement ID publicly?

Yes. It is visible in every page that loads the tag and confers no ability to read your reports. Guard the Measurement Protocol API secret instead — that one allows writing events into your property.

Related terms

See how your site handles this

TagEasy's free auditor checks any URL for Consent Mode v2 signals, PII in tracking, duplicate pixels, and 10 other tracking-quality faults. No signup.