Where to Find Google Analytics Tracking ID in GA4 (Measurement ID)

Where to Find Google Analytics Tracking ID in GA4 (Measurement ID)

analyticsNovember 27, 2026
By Antonio Fernandez

TL;DR

  • GA4 path: Admin, then Data streams under Data collection and modification, then the Web tab and your stream; the Measurement ID is the first row of Stream details.
  • A GA4 Measurement ID starts with G-; the old UA- tracking ID belonged to Universal Analytics, whose standard properties stopped processing data on 1 July 2023.
  • A Google tag can carry several tag IDs (Google's examples: GT-, G-, AW-) and feed several destinations; in GA4 the Measurement ID equals the destination ID.
  • In Tag Manager the G- value goes in the Tag ID field of the recommended Google Analytics tag (or a Google Tag), with the Initialization - All Initialization Events trigger.
  • DebugView sits under Admin, Data display; its seconds stream covers the last 60 seconds, and new installs can take up to 30 minutes to show data.

If you are wondering where to find Google Analytics tracking ID in GA4, open Admin, go to Data streams (under Data collection and modification), click the Web tab, open your website's stream, and copy the Measurement ID from the stream details. It starts with "G-" followed by letters and numbers, and it is the ID that tags, Google Tag Manager and CMS plugins ask for today.

The old "tracking ID" that started with "UA-" belonged to Universal Analytics, which no longer collects data. Below is what each of the IDs you might come across means, which one to use where, how to confirm the right one is firing, and what to do if a UA- ID is still sitting in your site code.

Tracking ID vs Measurement ID vs Stream ID vs Google tag ID

Four different IDs show up in Google Analytics and Google tag screens, and mixing them up puts the wrong value into a plugin field.

Tracking ID (UA-)

The tracking ID was the identifier of a Universal Analytics property. It started with "UA-" followed by a series of numbers. Standard Universal Analytics properties stopped processing data on 1 July 2023, and from the week of 1 July 2024 most users lost access to the interface and API. A UA- ID on your site no longer feeds any Universal Analytics report. It can still matter for GA4: Google states that automatically created GA4 properties reuse existing site tags where possible, and a GA4 property that collects data through UA tagging keeps doing so only while those UA tags stay on the site.

Measurement ID (G-)

The Measurement ID is the unique identifier of a GA4 web data stream. Its format is "G-" followed by letters and numbers, in the style of G-XXXXXXXXXX. In Google Analytics the Measurement ID is the same as the destination ID, which is the term you will see on Google tag screens. When a guide or plugin says "enter your GA4 ID", this is the value it means.

Stream ID

The stream details panel also shows a Stream ID. It identifies the stream inside Google Analytics and is not the value a tag, Tag Manager or a CMS plugin asks for. If you paste the Stream ID into an "Analytics ID" field, no data will arrive.

Google tag ID (G-, GT-, AW-)

A Google tag ID is the identifier you put on your page to load a given Google tag. Google's own examples include IDs that start with GT-, G- and AW-. One Google tag can carry several tag IDs and send data to several destinations, such as a GA4 property and a Google Ads account. When a tag has more than one ID, the first is the main one, but the IDs can be used interchangeably when you install the tag. Removing a destination does not change the existing tag IDs.

In practice: if you set up GA4 recently and installed the snippet from the data stream, your Google tag ID and your Measurement ID are often the same G- value. If your site already had a Google tag for Google Ads, you may see an AW- or GT- ID on the Google tag screen that also sends data to your GA4 stream.

Google tag ID (G-, GT-, AW-)
IDFormatWhere you use it
Tracking IDUA- followed by numbersNowhere; Universal Analytics stopped processing data on 1 July 2023
Measurement IDG- followed by letters and numbersCMS and plugin fields, Tag Manager "Tag ID" field, gtag.js config
Stream IDShown in stream detailsInside Google Analytics only, not in your tag
Google tag IDExamples include G-, GT- and AW-The Google tag on your site, which can feed several destinations

Where to find the Measurement ID in GA4 Admin > Data streams

Google's help page says you need the Editor role or above on the property to find the Measurement ID. Then:

  1. Sign in to Google Analytics and check that the correct property is selected in the property picker at the top.
  2. Click Admin.
  3. In the property column, under Data collection and modification, click Data streams. Some Google help pages label this section Property settings; the Data streams item is the one you want either way.
  4. Select the Web tab and click the name of your website's stream.
  5. In Stream details, the Measurement ID is in the first row. Copy it rather than retyping it, because a single wrong character means the tag sends data to a property that does not exist.

On the same screen, under Google tag, there is an option labelled View tag instructions. That opens the installation page, with an Install manually option showing the full gtag.js snippet that already contains your ID.

If you do not see any web stream at all, the property has not been connected to a website yet. Create one from the same Data streams screen: click Web, enter your site URL and a stream name, choose whether to turn on enhanced measurement, and click Create stream. The new stream gets its own Measurement ID immediately.

Where the ID goes: gtag.js, Google Tag Manager and CMS plugins

Once you have the ID, put it in the one place your site reads it from. There are three common routes, and you should use only one of them per site so the same page view is not counted twice.

gtag.js in the page code

From View tag instructions, choose Install manually. The snippet starts with a "Google tag (gtag.js)" comment and ends with a closing script tag. Google's instructions are to paste it immediately after the opening head tag on every page of the site. The Measurement ID appears twice inside it: once in the script URL and once in the config line.

Google Tag Manager

In Tag Manager, open your container, go to Tags and click New. In Tag Configuration choose Google Analytics > Google Analytics, which Tag Manager Help marks as the recommended option (setting up a Google Tag is documented as the alternate method), paste the Measurement ID into the field labelled Tag ID, and set the trigger to Initialization - All Initialization Events. Save, test in Preview, then click Submit and publish a new version. Nothing reaches GA4 until the container version is published.

CMS and website builder plugins

Many CMS platforms and plugins have a single field for the GA4 ID. Paste the G- Measurement ID there, not the Stream ID and not a UA- value. If your builder has no such field, Google's instruction is to paste the full Google tag snippet using the platform's custom HTML or code injection feature.

A mistake to check for is using two routes at once: a plugin field and a Tag Manager tag, or a hard-coded snippet left behind by an old developer plus a new plugin. The symptom is page views that look roughly doubled. Pick one route and remove the others.

How to check the right ID is firing (Tag Assistant, DebugView)

Do not assume the tag works because the site loads. Check that data reaches the right stream.

  • Realtime report. Open your site in another tab, then check Reports > Realtime in GA4. Google notes that data can take up to 30 minutes to appear after installing the tag, so give a new install time before deciding it is broken.
  • Tag Assistant. Go to tagassistant.google.com, or click Preview in Tag Manager, which opens Tag Assistant in a new tab. Enter your site URL and click Connect. Tag Assistant shows which tag IDs load on the page, so you can confirm the G- value matches the one in your data stream. It also adds a parameter to the URL that turns on debug mode.
  • DebugView. In GA4 go to Admin, then under Data display click DebugView. With debug mode on, you see events arrive in real time: the seconds stream covers events logged in the last 60 seconds and the minutes stream shows archives from the last 30 minutes. If you use gtag.js, you can also turn debug mode on by adding a debug_mode parameter set to true in the config command; remove the parameter afterwards, because setting it to false does not switch it off.

One limit to know: if you use consent mode and the visitor has not consented to analytics cookies, their events will not appear in DebugView. When testing on a site with a cookie banner, accept analytics cookies first, or you may chase a problem that is not there.

One property, several streams: which ID to use

A single GA4 property can hold several data streams, and each web stream has its own Measurement ID.

  • One website, one stream. Use that stream's Measurement ID everywhere on the site. This is the simplest setup.
  • Two language versions on the same domain (for example a Thai and an English section of one site) normally share one web stream. Language is something you report on with a dimension, not a reason for a second ID.
  • Separate domains in one property. Each domain may have its own web stream. Check the stream URL on the details screen and use the ID of the stream whose URL matches the site you are tagging.
  • A test or staging site. Keep it on a separate stream or property so test traffic does not mix with real visitors.

When in doubt, open each stream in Admin > Data streams and read the URL shown in its details. The ID you need is the one next to the URL of the site you are working on.

What to do if you still see a UA- ID

If a UA- ID turns up in your site code, a plugin setting or an old Tag Manager container, deal with it in this order:

  1. Confirm a GA4 property exists and install its G- Measurement ID through one route (the Google tag, Tag Manager or a plugin field). Google notes that a GA4 property fed through UA tagging keeps collecting only while those UA tags remain, so the G- tag has to be live before the UA tag goes.
  2. Find every place the UA- ID lives: theme header files, plugin settings, Tag Manager tags and variables, and any hard-coded snippet in page templates.
  3. Remove the UA- tags once the G- tag is live. Standard Universal Analytics properties stopped processing in 2023, so a UA tag adds nothing once GA4 has its own Google tag.
  4. Check that GA4 still receives data in the Realtime report, then retest with Tag Assistant and DebugView.

Historical Universal Analytics data that was not exported before access ended in 2024 was deleted and cannot be recovered, and Looker Studio reports built on UA show no data because the API requests fail. If a dashboard still points at a UA property, rebuild it on the GA4 property.

What this means for businesses in Thailand

On a WordPress theme, plugin or website builder that asks for an "Analytics ID", two things are worth checking. First, whether a UA- field is still filled in next to a GA4 field, which would put both IDs in the page source. Second, on a bilingual site, whether the English version has its own GA4 stream or property, which would split reporting in two.

The quickest check is an inventory: open the page source of one Thai page and one English page, search for "G-" and "UA-", and compare what you find with the IDs listed in Admin > Data streams. That check tells you whether your reporting covers the whole site.

Frequently asked questions

Is the Measurement ID the same as the tracking ID?

No, the Measurement ID (G-) identifies a GA4 web data stream, while the tracking ID (UA-) identified a Universal Analytics property that no longer processes data. Wherever an old guide says tracking ID, use the G- Measurement ID for GA4.

Where is the Measurement ID in GA4?

It is in Admin, under Data collection and modification, in Data streams: select the Web tab, open your stream, and the Measurement ID is the first row of the stream details. Copy it rather than retyping it.

Why does my Google tag show a GT- or AW- ID instead of G-?

A Google tag can carry several tag IDs and send data to several destinations, so a tag first created for Google Ads may show an AW- or GT- ID while still sending data to your GA4 stream. Check the destinations listed for that tag to confirm your GA4 Measurement ID is one of them.

How do I check that my GA4 ID is working?

Open your site and check the Realtime report, then use Tag Assistant or DebugView to confirm the G- ID on the page matches your data stream. Allow up to 30 minutes for a new install, and accept analytics cookies first if your site uses consent mode.

Finding the ID is quick; making sure it is the only one on the site, fires once per page and feeds clean key events into your ad accounts takes more care. Our Google Analytics 4 service can check the setup end to end, and if the problem sits in the site itself, our web design and WordPress web design teams can clean up old tags in the theme. Accurate GA4 data also feeds Google Ads bidding, so it is worth getting right before you scale spend.

Antonio Fernandez

Antonio Fernandez

Founder and CEO of Relevant Audience. With over 15 years of experience in digital marketing strategy, he leads teams across southeast Asia in delivering exceptional results for clients through performance-focused digital solutions.

Share to:
Copy link:

Read us often? Add Relevant Audience as a preferred source so our articles surface more in your Google results.