Where To Find Your GA4 Measurement ID (G-XXXXXXX)

Your GA4 measurement ID is the G-XXXXXXX string that links your website to the correct Google Analytics 4 data stream. You find it in the Admin panel under Data streams. This guide shows the exact steps to locate it, explains how it differs from other IDs, and tells you where to paste it for Google Tag Manager, WordPress, Shopify, and manual gtag.js setups.

The measurement ID is sometimes called the Google tag ID or destination ID. It replaced the Universal Analytics tracking ID (UA-XXXXX-Y) and is required for any GA4 implementation. If you have multiple websites, each needs its own data stream and its own measurement ID.

What Is A Measurement ID?

A measurement ID is a unique identifier for a web data stream in Google Analytics 4. The format is a capital 'G' followed by a dash and a combination of numbers and letters, like G-PSW1MY7HB4. Google's documentation says a measurement ID starts with G- or AW-. The measurement ID links your website to the GA4 property, so data from your site goes to the correct data stream.

In GA4, the measurement ID is the same as the destination ID. You will also see it referred to as the Google tag ID in many setup guides and CMS integrations. Without a valid measurement ID, your Google tag cannot route hits to your reports.

If you previously used Universal Analytics, you worked with a tracking ID that looked like UA-123456-1. GA4 replaces that with the measurement ID. Each web data stream gets its own measurement ID, so a property with three websites will have three separate IDs.

You need the measurement ID whenever you set up GA4 through Google Tag Manager, a CMS plugin, or the gtag.js snippet. It is not the same as your property ID (a numeric identifier for the property itself) or your account ID. Knowing where to find it and how to use it is the first step in any GA4 configuration.

How To Find It In Admin, Step By Step

You must be signed in to a Google Account with at least Editor role on the property to view the measurement ID. Follow these steps:

  1. Go to analytics.google.com and open your GA4 property. If you land on a Universal Analytics property, use the property selector (top of the Admin column) to switch.
  2. Click Admin (the gear icon) at the bottom left.
  3. In the Property column, under Data collection and modification, click Data streams.
  4. Click path: Admin then Data collection and modification then Data streamsAdminData collection and modificationData streams
    The Data streams list under Admin > Data collection and modification.
  5. Select the Web tab if you have multiple platform types.
  6. Click the name of your web data stream. If you see "Choose a platform" instead of a list, you need to add a data stream first.
  7. In the stream details screen, find the Measurement ID in the first row. It starts with "G-" or "AW-". Copy it to your clipboard.
  8. Click path: Admin then Data streams then Click a web stream then Stream detailsAdminData streamsClick a web streamStream details
    Measurement ID displayed in the stream details, starting with G-.

The Admin link in Google's help documentation opens the last property you accessed. If you manage multiple accounts, double-check that you are in the correct property before going to Data streams. The measurement ID is also visible in the Google tag section at the bottom of the stream details page, where you can click View tag instructions to get the full gtag.js snippet.

If you don't see the Data streams option under Property settings (some interfaces show it there), look under Data collection and modification. The exact placement can vary slightly depending on your GA4 interface version, but it is always within the Property column of Admin.

Short on time? Analytics Art can check this in your property for you.

Measurement ID Vs Property ID Vs Stream ID Vs Old UA-ID

GA4 uses several identifiers, and mixing them up can lead to configuration errors. The table below breaks down the most common ones.

IdentifierFormatWhere to findPurpose
Measurement IDG-XXXXXXXX or AW-XXXXXXXXAdmin > Data streams > click streamIdentifies a specific web data stream; used in the Google tag and GTM.
Property IDNumeric (e.g., 123456789)Admin > Property detailsIdentifies the GA4 property itself; used in API calls and some settings.
Stream IDNumeric (e.g., 1234567890)Shown in the stream details for your web data streamIdentifies the data stream itself; rarely needed for basic setup.
UA Tracking IDUA-XXXXX-YUniversal Analytics property settingsUsed in the previous version of Analytics; replaced by Measurement ID in GA4.

The measurement ID is the one you will use most often. The property ID is a numeric string that you can find by going to Admin > Property settings > Property details. It appears at the top of that page. You might need the property ID when linking Google Analytics to other tools or when using the GA4 API.

Click path: Admin then Property settings then Property detailsAdminProperty settingsProperty details
Property ID shown under Admin > Property details.

The stream ID is less visible. It is a separate numeric ID for the data stream, and for day-to-day tagging and reporting you can ignore it. The old UA tracking ID followed a different pattern and was tied to a view. The measurement ID is tied directly to the data stream.

Where To Paste It: GTM, WordPress, Shopify, Gtag.Js

Once you have the measurement ID, you need to add it to your website. The method depends on your platform.

Google Tag Manager

In GTM, the Google tag type asks for your tag ID, which is your measurement ID. Steps:

  1. Open your GTM container and go to Tags > New.
  2. Click Tag Configuration and choose the Google tag type.
  3. In the Tag ID field, paste your measurement ID (the G- or AW- string).
  4. Under Triggering, select Initialization - All Initialization Events.
  5. Save, then Submit and publish the container.

For more advanced setups, you can use configuration settings variables to reuse parameters across tags. Verify your implementation with Google Tag Assistant.

WordPress

Two common methods: the Site Kit by Google plugin (official) or the MonsterInsights plugin. If you prefer a manual approach, you can copy the full Google tag snippet (View tag instructions in the stream details) and paste it immediately after the opening <head> tag on each page, for example in your theme's header template. Many other WordPress plugins also provide a field for the measurement ID.

Shopify

Shopify uses the Google & YouTube sales channel. Install the channel from the Shopify App Store if you haven't already. Follow the instructions in the Google & YouTube channel settings to connect your Google Analytics. Refer to Shopify's GA4 migration guide for detailed steps.

gtag.js (Manual)

For any website where you control the HTML, you can add the Google tag directly. In your GA4 property, go to Admin > Data streams > click your stream > View tag instructions > Install manually. Copy the entire snippet, which starts with <!-- Google tag (gtag.js) --> and ends with </script>. Paste it immediately after the opening <head> tag on every page. The snippet already includes your measurement ID. After pasting, wait up to 30 minutes and check the Realtime report to confirm data collection.

Many other CMS platforms (HubSpot, Squarespace, Wix, Drupal, etc.) offer a dedicated field where you can simply paste the measurement ID. Check your CMS's analytics settings or integration guide.

Measurement ID Not Working? Quick Checks

If you have added the measurement ID but see no data in GA4, run through these verification steps.

  • Check the Realtime report. In your GA4 property, open Reports > Realtime. If the tag is firing, you should see activity there. Data collection may take up to 30 minutes to begin, and many reports and explorations can take 24 to 48 hours to process data.
  • Use Tag Assistant. Go to tagassistant.google.com, add your domain, and click Connect. A green or blue icon next to your measurement ID means the tag is found and working. If Tag Assistant does not recognize your tag, check the Tag Manager help center for debug tips. Our Tag Assistant guide walks through debugging.
  • Inspect network requests. Open Chrome DevTools (View > Developer > Developer Tools), go to the Network tab, and refresh the page. Look for requests to googletagmanager.com or analytics.google.com. If you see them, the tag is firing. If not, the snippet may be missing or blocked.
  • Verify the ID format. Make sure you copied the measurement ID exactly, including the G- or AW- prefix. The measurement ID always starts with a letter.
  • Confirm you have Editor role. If you cannot see the measurement ID in the Admin panel, your Google Account might lack the necessary permissions. You need at least the Editor role on the property.
  • Check for blockers. Browser extensions that block trackers can prevent GA4 from sending data. Test in an incognito window with extensions disabled.
  • Review the data stream. If your Admin panel shows "Choose a platform" instead of a list of streams, you have not created a web data stream yet. Follow the steps in Set up data collection to add one.
  • Wait for processing. Many reports and explorations can take 24 to 48 hours to process data. Use Realtime and DebugView for immediate feedback. If data appears but shows (not set) values, read our explanation of (not set) in GA4.

If you recently changed the property time zone, you might see a temporary flat spot or spike in reports, but that does not indicate a problem with the measurement ID itself.

Frequently Asked Questions

What Is My GA4 Measurement ID?

Your GA4 measurement ID is the unique identifier for your web data stream, formatted as G-XXXXXXX (or AW-XXXXXXX). You can find it by going to Admin > Data streams, clicking your web stream, and looking in the first row of the stream details. You need at least Editor role on the property to view it.

How Do I Get A GA4 Property ID?

The property ID is a numeric identifier (e.g., 123456789) for your GA4 property. Find it under Admin > Property settings > Property details. It is different from the measurement ID and is used mainly for API calls and account linking.

What Is GA4 Enhanced Measurement?

Enhanced measurement is a feature that automatically tracks page views and other events without additional code. You can enable it when creating a web data stream and later disable individual events from the stream settings.

How Do I Verify My GA4 Measurement ID Is Working?

Use the Realtime report in GA4 to see live data (collection may take up to 30 minutes to begin). Alternatively, use Tag Assistant at tagassistant.google.com to check if the tag fires correctly. You can also look for network requests to googletagmanager.com in your browser's DevTools.

Where Can I Get A GA Code?

The GA code, also called the Google tag, is a JavaScript snippet that includes your measurement ID. In GA4, go to Admin > Data streams > click your stream > View tag instructions > Install manually. Copy the entire snippet and paste it into your website's HTML.

What Is Replacing Google Analytics?

Google Analytics 4 (GA4) is the current version, replacing Universal Analytics. GA4 uses a measurement ID (G-XXXXX) instead of the UA tracking ID (UA-XXXXX-Y).