The short version: your Google Analytics tracking ID lives in Admin, under Data Streams, inside your GA4 property, and it now looks like G-XXXXXXXXXX rather than the old UA-XXXXXXX-X format. If you’re still hunting for something starting with “UA”, stop, because that version of Analytics was switched off in July 2023 and it no longer collects data, no matter how correctly you paste it in.
What “tracking ID” means now
This is the bit that trips up almost everyone who searches for this, and I say that having watched it happen with real clients. For years, “tracking ID” meant a code that looked like UA-12345678-1. You’d paste that into your website header, or into a plugin field, and Universal Analytics would start recording visits. Half the tutorials still online, including some ranking on page one right now, still show you that exact format.
Google retired Universal Analytics on 1 July 2023. If you go digging in an old property and find a UA number, it’s a fossil. It won’t break anything if you leave it on your site, but it also won’t collect a single visit. What you need today is called a Measurement ID, and it lives inside GA4 (Google Analytics 4). It looks like G-ABC1234DEF, always starting with a capital G and a hyphen. Most people typing “where to find my Google Analytics tracking ID” into Google are looking for this, they just don’t know the name has changed.
I mention this because I had a client last year, a small events business in Manchester, whose developer had spent an afternoon “fixing” their tracking by re-pasting an old UA code they’d found in an email from 2021. Nothing showed up in reports for six weeks. The fix took four minutes once we found the actual GA4 Measurement ID sitting one menu away from where they’d been looking.
Step by step: finding your ID inside Google Analytics
Here’s the exact path, as of the current GA4 interface:
- Log into analytics.google.com with the account that owns your property.
- Click the gear icon labelled Admin in the bottom left corner.
- Make sure you’re in the correct Property (the middle column), not the Account column, since one Google account can hold several properties.
- Click Data Streams, then click on your web stream, usually named after your domain.
- Your Measurement ID sits at the top right of that screen, in the format G-XXXXXXXXXX. It’s also visible in a small box under Stream Details.
That’s five clicks from login to ID, and it takes most people under a minute once they know where the Admin gear lives, since a lot of the interface has moved around since Google’s last big redesign.
If you manage more than one site, or you’re helping a client, this is exactly the moment to double check you’re inside the right property. I’ve seen agencies confidently hand over a Measurement ID that belonged to a test site, not the live one, purely because the account had four properties with near-identical names. If you’re unsure how many properties you should even have, it’s worth reading how many Google Analytics accounts you can set up before you go further, because a messy account structure is usually the real reason people can’t find the right ID in the first place.
Finding it without logging into Analytics at all
Sometimes you don’t have login access, maybe a client fired their old agency and nobody handed over credentials, which happens more often than anyone likes to admit. You can still find the Measurement ID by looking at the site’s own code.
- Open the website in a browser, right click anywhere on the page, and choose “View Page Source” (or press Ctrl+U on Windows, Cmd+Option+U on a Mac).
- Use Ctrl+F (or Cmd+F) to search the page for “G-“.
- You should find a snippet of JavaScript containing gtag(‘config’, ‘G-XXXXXXXXXX’), and that string is your Measurement ID.
This works because GA4 tracking code is dropped directly into the page’s HTML, either manually or through a plugin, and it has to be visible to run, so it’s never truly hidden even if nobody can log you into the account. If the site was built after 2022, you’ll almost always find a G- string this way within thirty seconds.
If your site uses Google Tag Manager instead
A lot of businesses don’t put the GA4 code directly on their site anymore, they run it through Google Tag Manager (GTM) instead, which is a separate free tool that manages all your tracking snippets in one place. If that’s how your site is set up, viewing the page source won’t show you a G- string at all, it’ll show you a GTM container ID, something like GTM-ABC1234, which is a different thing entirely and won’t help you.
In that case, you need to log into tagmanager.google.com, open the container for your site, and look for a tag named something like “GA4 Configuration” under the Tags menu. Click it and the Measurement ID will be sitting in the Configuration Tag ID field. This is a common setup for anyone whose site was built by an agency or a developer who also handles ads and conversion tracking, since GTM makes it far easier to add or remove tracking without touching the site’s code every time.
The uncomfortable bit nobody puts in these guides
Here’s what most articles on this topic won’t tell you plainly: finding your tracking ID is the easy five minutes. The part that matters, and the part almost nobody checks, is whether that ID is even connected to a property that’s set up sensibly. I’ve opened GA4 accounts for new clients where the Measurement ID was correctly installed, data was flowing, and it was still practically useless because nobody had ever configured a single conversion event. You can have a perfectly working tracking ID sitting on your site for two years and still have no real answer to the question “did that campaign make us money,” because the ID alone tells Analytics to collect page views, nothing more.
So finding the ID is step one of about six, and I’d rather tell you that now than let you think the job’s done once it’s pasted in. If you’re setting this up brand new and wondering whether it’s even worth the effort at your stage of business, it’s worth reading when you should start using Google Analytics, because the honest answer depends on whether you have enough traffic yet to make any of this data meaningful.
Common mistakes I still see people make
- Pasting the Measurement ID into a plugin field meant for a Google Tag Manager container ID, or vice versa. They look similar but they are not interchangeable.
- Copying an ID from a screenshot in an old email, which sometimes has extra spaces or a missing character that breaks the whole snippet.
- Installing the code twice, once manually and once through a plugin like Site Kit or a theme setting, which causes GA4 to double count every visit. I’ve seen a client’s traffic look like it doubled overnight purely from this, and it took a fresh set of eyes to spot two identical config tags running side by side.
- Assuming the tracking ID and the Property ID are the same thing. They’re not. The Property ID is a plain number, like 123456789, used mainly for API access and Search Console linking. The Measurement ID is the G-XXXXXXXXXX string used for actual tracking code.
Once you’ve got the ID, what next
Getting the code installed correctly is only useful if you look at what it collects. Once your tracking is confirmed live, the next practical step most businesses skip is working out where to find your website conversion rate, since that’s the number that turns raw visitor counts into something you can act on. It’s also worth linking your GA4 property to Search Console while you’re in there, and if you haven’t looked at that dashboard yet, this guide on reading your Google Search Console dashboard without getting it wrong is a good next stop, because the two tools answer different questions and most people only ever check one of them.
If all of this feels like more admin than you have hours for, that’s a fair reaction, and it’s exactly why some businesses bring in outside help just to get the setup right once rather than half-right for two years. I’ve written before about what that kind of hands-on help for a small business costs and what it should include, if you’d rather hand the technical setup to someone else and just look at the reports.
Frequently asked questions
Is my Google Analytics tracking ID the same as my Measurement ID?
Only if you’re using GA4, which almost everyone now is. In the old Universal Analytics system, the tracking ID looked like UA-12345678-1, but that system stopped collecting data on 1 July 2023. Today, what you need is the Measurement ID, formatted as G-XXXXXXXXXX, and you’ll find it under Admin, Data Streams, inside your web stream.
Why can’t I find any code starting with “UA” on my site anymore?
Because it’s gone, and that’s correct. Universal Analytics was fully switched off by Google, so any UA-format code you find is dead and safe to remove. If you’re setting up tracking for the first time in 2026, you should never need to see a UA code at all, you’ll only ever be looking for the G- format Measurement ID.
Can I find my tracking ID without logging into Google Analytics?
Yes, view the page source of your website (right click, View Page Source, or Ctrl+U) and search for “G-” using Ctrl+F. If the code is installed directly on the site, you’ll see a gtag snippet containing the Measurement ID. If the site runs on Google Tag Manager instead, you’ll need to log into Tag Manager separately to find it.
What’s the difference between a Property ID and a Measurement ID?
The Property ID is a plain number, such as 123456789, and it’s mainly used for connecting GA4 to other tools like Search Console or the API. The Measurement ID is the G-XXXXXXXXXX string used to install tracking code on your website. People often confuse the two because both live on the same Admin screen.