Analytics and Tracking

Measurement ID

Also called G- ID, GA4 measurement ID

The identifier a web data stream issues, starting with G-, that tells the Google tag which property receives the data.

Quick facts: Measurement ID

Category
Analytics and Tracking
Also called
G- ID, GA4 measurement ID
Level
Beginner
Affects
Whether data is collected, which property receives it, duplicate page views
Where to see it
GA4 (Admin, Data streams), page source, Tag Assistant
In this article4
  1. How a measurement ID works
  2. Why the measurement ID matters
  3. Common mistakes with measurement IDs
  4. How to act on it

How a measurement ID works

Every web data stream in GA4 is given its own identifier, written as the letter G, a hyphen and a short string of characters. The Google tag on your pages carries that identifier, and it is the only thing telling the browser where to deliver what it has just recorded. Change it and the same website reports into a different property; remove it and collection stops, quietly, with no error on the page.

You will find it in GA4 under Admin, then Data streams, then the stream itself. It is not secret. Anyone can read it out of your page source, which is normal and not a security problem — it identifies a destination, it does not grant access to the reports.

Why the measurement ID matters

Most analytics faults that look mysterious turn out to be an identifier problem. A staging site copied to production still pointing at the old test property. A developer adding a second tag with a different ID so page views double. A theme update wiping the field where the ID was stored. None of these show a broken page, so nobody notices until a report looks strange weeks later.

It is also the field people confuse most. The measurement ID begins with G. A Tag Manager container begins with GTM. A Google Ads conversion identifier begins with AW. The old Universal Analytics identifier began with UA and no longer collects anything. Pasting one where another belongs produces a tag that loads and does nothing useful.

Common mistakes with measurement IDs

Firing the same identifier from a live site and a test site is the one that damages data most, because test traffic, staff clicks and automated checks land in the same reports as real customers and there is no clean way to unpick them afterwards. Give staging its own property, or exclude it by internal traffic rules before it starts.

The second is installing the tag twice — once by the website platform’s own analytics field and once through Google Tag Manager. Both use the same identifier, both fire, and every page view is counted twice. Pick one method and remove the other rather than trying to make them coexist.

How to act on it

Copy the identifier from the stream itself rather than from a document, a message or an old ticket, and paste it in one place only. After any site rebuild, theme change or migration, check it again before you trust a single report — this belongs on the same list as redirects and canonical tags in a GA4 and Tag Manager setup checklist.

To confirm it is working, open the site in a normal browser and watch the realtime report. If your visit appears in the property you expected, the identifier is right. If it appears in two properties, or twice in one, you have a second tag to find and remove.

Do and do not

Do

  • Copy it from the data stream, never from an old document
  • Recheck it after every site rebuild or migration
  • Give staging its own property and its own identifier

Do not

  • Install the tag twice with the same identifier
  • Confuse it with a GTM, AW or UA identifier
  • Treat it as a secret that needs hiding

Questions people ask about this

Where do I find my measurement ID?

Open GA4, go to Admin, choose Data streams, and select the web stream for your site. The identifier is shown at the top of the stream details panel, beginning with the letter G and a hyphen. Copy it from there rather than from an old email or handover document, because those often carry an identifier from a property that is no longer in use.

Is it safe for my measurement ID to be visible in the page source?

Yes. It has to be readable by the browser for collection to work at all, so every site with GA4 exposes it. Knowing the identifier lets someone send events to your property, which is worth remembering if your numbers ever look odd, but it gives nobody access to your reports, your settings or your account.

What is the difference between a measurement ID and a Tag Manager container ID?

The measurement ID starts with G and names the GA4 destination that receives data. A container ID starts with GTM and names the Tag Manager container that decides which tags fire and when. Tag Manager is the delivery system; the measurement ID is the address on the parcel. A container can hold tags pointing at several different measurement IDs.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.