How to Get Google Analytics 4 Measurement ID
Looking for your Google Analytics 4 Measurement ID? You're in the right place. This quick guide will show you exactly where to find it in seconds, what it is, and how to use it to get your website or app connected.
What is a Google Analytics 4 Measurement ID?
Think of your GA4 Measurement ID as a special mailing address for your data. When a user visits your website, this unique ID tells Google exactly which Analytics account and data stream their activity (like page views, clicks, and purchases) should be sent to. Without it, the data would get lost in the mail.
The ID always starts with "G-" followed by a series of letters and numbers (e.g., G-XYZ1234567). Each data stream in your Google Analytics property has its own unique Measurement ID.
A "data stream" is simply the source of data flowing into a property. You'll have a separate data stream - and a separate Measurement ID - for your website, your iOS app, and your Android app, even if they all belong to the same business and GA4 property.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Is a Measurement ID the Same as a Tracking ID?
If you've used the older version of Google Analytics (Universal Analytics or UA), you're probably familiar with the "Tracking ID," which started with "UA-". The Measurement ID ("G-") is the direct replacement for the Tracking ID in Google Analytics 4. While they serve the same fundamental purpose, the technology behind them is different, which is why GA4 offers more advanced event-based tracking features.
How to Find Your GA4 Measurement ID: A Step-by-Step Guide
For most people, grabbing this ID takes less than 30 seconds. Just follow these simple steps.
For an Existing GA4 Property and Data Stream
If you've already set up your GA4 property and just need to find the ID again, this is the path you'll take.
- Log in to Google Analytics: Head over to your analytics account home dashboard.
- Go to Admin: Click the gear icon labeled "Admin" in the bottom-left corner of your screen.
- Select the Right Property: In the second column ("Property"), make sure you have the correct GA4 property selected from the dropdown menu. Universal Analytics properties won't have the "Data Streams" option.
- Click on "Data Streams": Under the "Property" column, find and click on "Data Streams." This will show you the list of data sources for this property (e.g., "YourCompanyName Web").
- Select Your Web Data Stream: Click on the data stream for which you need the ID. It will likely be the one representing your website.
- Find Your Measurement ID: A new panel will open with all the details for that stream. You can't miss it – your Measurement ID will be displayed prominently in the top right corner. You can click the copy icon next to it to add it to your clipboard.
That's it! You now have your "G-" Measurement ID ready to use in your website builder, plugin, or Google Tag Manager.
What If You Don't Have a GA4 Property Yet?
Just getting started with Google Analytics 4? No problem. The process of creating a new GA4 property automatically generates your Measurement ID for you. Here’s how to do it with a fresh setup.
Step 1: Create a New Google Analytics 4 Property
- Navigate to the "Admin" section using the gear icon in the bottom-left corner.
- In the "Property" column, click the blue "+ Create Property" button.
- Enter a name for your property (e.g., "My Business Website").
- Select your reporting time zone and currency.
- Click "Next" to provide some basic details about your business.
- Click "Create" and accept the terms of service.
Step 2: Set Up Your First Data Stream
Immediately after creating a property, Google will prompt you to set up your first data stream. This is where you'll get your ID.
- On the "Start collecting data" screen, choose your platform. For a website, click "Web".
- Enter your website's URL (e.g., www.yourwebsite.com) and give the stream a name (e.g., "Main Website Stream").
- Leave "Enhanced measurement" turned on - it's one of the best features of GA4 and automatically tracks things like scrolls, outbound clicks, and video engagement without extra setup.
- Click the "Create stream" button.
As soon as you create the stream, you'll be taken to the "Web stream details" page. Just like in the previous section, your shiny new Measurement ID ("G-...") will be waiting for you in the upper-right corner.
Now That You Have Your ID, What's Next?
Your Measurement ID is the key to connecting your digital properties to Google Analytics. Here’s what you typically do with it:
- Content Management Systems (CMS) and Website Builders: Platforms like WordPress (with a plugin like Site Kit), Shopify, Wix, and Squarespace have a specific field in their settings where you just paste your Measurement ID. They handle the rest of the technical work behind the scenes.
- Google Tag Manager (GTM): For a more powerful and flexible setup, you'll use your Measurement ID to configure the <em>Google Tag</em> within Google Tag Manager. This tag is then responsible for sending all the data to GA4. GTM allows you to manage all your tracking tags in one place.
- Manual Installation (Hardcoded): If your site doesn't use a CMS or GTM, you can add the Google tag (gtag.js) script directly to the
<head>section of your website’s HTML. This script will contain your Measurement ID. GA provides this full code snippet on the stream details page under "VIEW TAG INSTRUCTIONS."
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
A Quick Note: Measurement ID vs. Property ID
It's easy to get these two mixed up.
- Your Measurement ID (G-XXXXXXXX) is what you use in your website's tracking code to send data to a specific data stream.
- Your Property ID (a string of numbers) is an internal identifier for the property as a whole within Google's systems. You'll rarely, if ever, need to use this for tracking setup on your website.
When a plugin or integration asks for an ID to set up tracking, it is almost always asking for the "G-" Measurement ID.
Final Thoughts
Finding your Google Analytics 4 Measurement ID is just a few clicks away in the Admin section under Data Streams. It's the unique "G-" code that acts as the address, ensuring all your website and app user data lands safely in the right GA4 property for analysis.
Of course, collecting data is only half the battle. The real goal is to get clear answers and reports without spending hours lost in GA4's interface. At Graphed, we believe data analysis should be as simple as asking a question. We designed Graphed to let you connect your sources like Google Analytics, Shopify, and your ad platforms in just a few clicks. Then, you can use natural language to create real-time dashboards by asking things like, “Show me my top 10 landing pages by sessions last month” or “Compare Facebook Ads revenue vs spend by campaign.” The reports build themselves, freeing you up to focus on strategy.
Related Articles
Facebook Ads for Home Cleaners: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for home cleaners in 2026. Discover the best ad formats, targeting strategies, and budgeting tips to generate more leads.
Facebook Ads for Pet Grooming: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for pet grooming businesses in 2025. Discover AI-powered creative scaling, pain point discovery strategies, and the new customer offer that works.
AI Marketing Apps: The 15 Best Tools to Scale Your Marketing in 2026
Discover the 15 best AI marketing apps in 2026, from content creation to workflow automation, organized by category with pricing and use cases.