Skip to content
Tag Manager Training
GTM & GA4 glossary

GA4 · GTM glossary

Measurement ID

The ID that tells your Google tag which GA4 web data stream to send data to. It starts with G- followed by letters and numbers, for example G-AB12CD34EF.

Also known as: GA4 Measurement ID, GA4 ID, G- ID, GA4 tracking ID, Tag ID

At a glance

Looks like
G-AB12CD34EF
Where to find it
GA4 Admin → Data streams → your web stream
Used in
The Google tag and every GA4 Event tag
One per
Web data stream
Is it secret?
No, it's visible in your page source
On this page
  1. In plain English
  2. Why it matters
  3. Where to find it
  4. What it looks like
  5. Not to be confused with
  6. Example
  7. Troubleshooting
  8. Best practice
  9. Common questions
  10. Official documentation
  11. Related terms

In plain English

Every GA4 property collects website data through a web data stream, and each web stream has its own Measurement ID. When the Google tag loads on a page, it attaches the Measurement ID to every page view and event it sends, so GA4 knows which property the data belongs to.

Think of it as the delivery address on a parcel. The tag can be set up perfectly, but if the address is wrong, the data ends up somewhere else or nowhere at all.

In Google Tag Manager you'll use it in two places: the Tag ID field of the Google tag, and the Measurement ID field of each GA4 Event tag. If a site uses gtag.js directly instead of GTM, the Measurement ID appears in the code snippet in the page's <head>.

Why it matters

The Measurement ID is the one value that connects your website to your GA4 reports, so small mistakes cause big problems:

  • Wrong ID, no data. GA4 can't backfill missing data, so every day with the wrong ID is traffic you'll never get back.
  • Wrong property, polluted data. A copied container or a staging site using the live ID mixes test visits or another site's traffic into your reports.
  • Loaded twice, counted twice. If the same ID is added by GTM and by a hard-coded snippet or plugin, page views and key events can be double counted, which also inflates any conversions you import into Google Ads.

Getting it right once, and storing it in one place, prevents all three.

Where to find it

In Google Analytics 4

  1. Sign in to Google Analytics and check the property picker in the top left shows the property you want.
  2. Click Admin (the gear icon, bottom left).
  3. Under Data collection and modification, click Data streams.
  4. Click your web stream. It shows your website's URL.
  5. The Measurement ID is at the top right of the Web stream details panel. Click the copy icon next to it rather than retyping it.

Only web streams have a Measurement ID. App streams for iOS and Android use a Firebase App ID instead.

In Google Tag Manager

  1. Open the container and go to Tags.
  2. Open the Google tag (tag type Google Tag) and look at the Tag ID field.
  3. If it shows a variable such as {{GA4 – Measurement ID}}, go to Variables and open that variable to see the value.

On a live website

  • Tag Assistant: go to tagassistant.google.com, enter the page URL and connect. The Google tags found on the page are listed with their IDs.
  • Browser developer tools: open the Network tab, filter by collect and reload the page. Each GA4 request includes tid=G-…, which is the Measurement ID receiving the data.
  • Page source: search the source for G-. This only finds IDs added directly to the page, not ones loaded through GTM.

What it looks like

A Measurement ID is G- followed by capital letters and numbers, usually 10 characters long:

G-AB12CD34EF

When you're checking one:

  • It always starts with G-. Anything else (GTM-, AW-, UA- or numbers only) is a different kind of ID.
  • Watch for spaces copied at the start or end, which can stop the tag working.
  • If you're reading it from a screenshot or email, it's easy to confuse O and 0, or I and 1. Copy it from GA4 instead.

Not to be confused with

Term Looks like How it’s different
Measurement ID G-AB12CD34EF This one. Identifies a GA4 web data stream and tells your tags where to send data.
Property ID 412345678 Numbers only. Identifies the whole GA4 property. Used for Looker Studio, BigQuery and API connections, never in tags.
Stream ID 4123456789 Numbers only. GA4's internal ID for the data stream. Not used in tags.
GTM container ID GTM-AB12CDE Identifies a Tag Manager container. It goes in the GTM install snippet on your site, not in GA4 tags.
Google tag ID GT-AB12CDE Some accounts show a combined Google tag that can load several Google products at once. For GA4 Event tags, use the G- Measurement ID.
Google Ads tag ID AW-123456789 Identifies a Google Ads account for conversion tracking and remarketing. It does nothing in GA4.
Universal Analytics ID UA-12345678-1 The old, pre-GA4 tracking ID. Universal Analytics stopped processing data in 2023, so these IDs no longer collect anything.

Example

A new client's GA4 property shows no data a week after launch, even though the developer says the tags are firing. Preview mode confirms the Google tag fires on every page, but with G-QR56ST78UV: another client's Measurement ID, left behind when the container was copied as a starting point. A week of visits had been landing in the other client's reports.

Updating the Constant variable and publishing the container fixes it, and data appears in the Realtime report within minutes. The missing week can't be recovered.

Troubleshooting

  • GA4 shows no data at all

    1. Open GTM Preview mode and check the Google tag fires on page load.
    2. Compare the Tag ID it used with the Measurement ID under Admin → Data streams in GA4. They must match exactly.
    3. Make sure you're in the right GA4 property and looking at the Realtime report. Standard reports can take 24–48 hours to fill in.
    4. Check the GTM container has been published. Changes in a workspace don't reach the live site until you submit them.
  • Tags fire in Preview mode, but GA4 still shows nothing

    The ID can be right and data still blocked. Check for:

    • Consent: if your consent banner is blocking analytics, or you're testing as a visitor who declined, GA4 receives little or no data.
    • Ad blockers and privacy browsers, which block requests to Google Analytics. Test in a clean browser profile.
    • Data filters under Admin → Data filters that exclude internal or developer traffic, including your own.
  • Data is showing up in the wrong GA4 property

    A Measurement ID from another property is in use. This usually happens when a GTM container is copied from another site, or a staging site was set up with the live ID.

    Check the Google tag, every GA4 Event tag and any Constant or lookup table variable, fix the ID and publish. Data already sent to the wrong property can't be moved.

  • Page views or key events are counted twice

    GA4 is probably being loaded twice, for example by GTM and a hard-coded gtag.js snippet, a WordPress plugin or a Shopify app.

    In Tag Assistant, look for page_view being sent twice on one page load, or the same G- ID coming from two places. Remove the extra one and keep GTM as the single place GA4 is set up.

  • I can't find the Measurement ID in GA4

    • Check you've selected the right property and opened a web stream. App streams don't have a Measurement ID.
    • If the property has no data streams yet, create a web stream. The Measurement ID is generated when the stream is created.
    • If you can't open the property at all, ask whoever manages the GA4 account to give you access.
  • Tag Assistant shows an old UA- ID

    The site still has Universal Analytics code. It no longer collects data, so it's safe to remove once you've confirmed GA4 is set up with its own G- Measurement ID.

Best practice

  • Store it once. In GTM, save the Measurement ID in a Constant variable such as {{GA4 – Measurement ID}} and use that variable in the Google tag and every GA4 Event tag. If it ever changes, you update one field.
  • Keep test and live separate. Use a lookup table on Page Hostname to send staging and development traffic to a separate GA4 property, so test visits never reach your real reports.
  • Use one web stream per website. Google recommends a single web data stream per property. If one business has several domains, use one stream and set up cross-domain measurement rather than adding streams.
  • Install GA4 one way only. Choose GTM, a hard-coded snippet or a plugin, never more than one, to avoid double counting.
  • Copy, don't retype. Use the copy icon in GA4 and paste it straight into GTM.
  • Write it down. Keep the Measurement ID, property ID and GTM container ID together in your tracking plan or handover notes, so nobody has to dig for them later.
  • Check after every publish. Confirm in Tag Assistant or DebugView that data is arriving with the right ID before calling the job done.

Common questions

Is the Measurement ID the same as the tag ID?

Usually, yes. Google now calls it a tag ID in parts of GA4 and GTM, and for a GA4 web stream the Google tag ID is normally the same G- value. Some accounts also have a combined Google tag with an ID starting with GT-, which can load GA4 and other Google products together.

Do I need to keep my Measurement ID secret?

No. It's part of your website's code, so anyone can see it. Hiding it isn't possible or necessary. Unwanted data is handled with GA4 data filters and, for server-to-server tracking, Measurement Protocol API secrets.

Can I change my Measurement ID?

No. Each Measurement ID belongs to one data stream and can't be edited. The only way to get a new one is to create a new web stream, which is rarely needed. If data is going to the wrong place, fix the ID in your tags instead.

Can I use the same Measurement ID on more than one website?

Yes, when the sites are part of one customer journey, such as a main site and a separate booking domain. Set up cross-domain measurement too, so a visitor moving between them counts as one session. For unrelated websites, use a separate property for each so their data doesn't mix.

Where does the Measurement ID go in Google Tag Manager?

In the Tag ID field of your Google tag, which fires on Initialization – All Pages, and in the Measurement ID field of each GA4 Event tag. Using one Constant variable for both keeps them in sync.

Why does GA4 say "Data collection isn't active for your website"?

GA4 shows this on a web stream when it hasn't received any data with that stream's Measurement ID recently. If you've only just installed the tag, allow up to 48 hours. Otherwise, check that the ID in your Google tag matches the one shown on that screen and that your GTM container is published.

What happened to UA- tracking IDs?

They belonged to Universal Analytics, which Google switched off in 2023 (2024 for Analytics 360). GA4 uses Measurement IDs instead, and a UA- ID won't send any data to GA4.

Official documentation

Last reviewed

Next step

Want your team to know this without looking it up?

Hands-on Google Tag Manager and GA4 training for agencies and marketing teams in Brisbane, the Gold Coast and the Sunshine Coast.