Use the Google tag ID for Google Analytics 4 properties (vs. the Tracking ID for Universal Analytics properties).
A Google tag ID is a series of letters and numbers that usually starts with "G-". You need a Google tag ID to set up a Google Analytics 4 property for your website using Google Tag Manager and many content management systems (CMSes).
A Google tag is a piece of code that you place on your website. If you don't use Google Tag Manager or a CMS with an integration for the tag ID, you need a Google tag to set up a Google Analytics 4 property for your website.
Google tag ID vs. Tracking ID
Google Analytics 4 has replaced Universal Analytics. Universal Analytics properties used a Tracking ID (which starts with "UA-"), but Google Analytics 4 properties use a Google tag ID (which usually starts with "G-").
To set up a new Google Analytics property, you do not need a Tracking ID.
To set up a new Google Analytics property, you do not need a Tracking ID.
- If you're new to Google Analytics, learn how to set up Google Analytics for the first time.
- If you're using Universal Analytics, learn how to migrate to Google Analytics 4.
Find your Google tag ID
A Google tag ID is a series of letters and numbers that usually starts with "G-".
To find your Google tag ID , do the following:
- Sign in to your Google Analytics account.
- In Admin, under Property settings expand Data collection and modification.
- Click Data streams.
- Click the name of your data stream.
If you don't see any data streams and see "Choose a platform," you must add a data stream first. Go to Add a data stream.
- In the Google tag section at the bottom of the Web stream details page, click Configure tag settings.
- In the Your Google tag section on the Google tag page, copy the ID that starts with "G-" or "AW-".
Find your Google tag
A Google tag is a piece of code that starts with <!-- Global tag (gtag.js) -->
.
To find your Google tag, do the following:
- Sign in to your Google Analytics account.
- In Admin, under Property settings expand Data collection and modification.
- Click Data streams.
- Click the name of your data stream.
If you don't see any data streams and see "Choose a platform," you must add a data stream first. Go to Add a data stream.
- In the Google tag section at the bottom of the Web stream details page, click View tag instructions.
- On the Installation instructions page, click Install manually.
- Copy the entire section of code beginning with:
<!-- Global tag (gtag.js) -->
and ending with
</script>
Find your "UA-" ID
You do not need a Tracking ID ("UA-" ID) to set up a new GA4 property. Only (legacy) Universal Analytics properties have a "UA-" ID.
- Click Admin in your Universal Analytics property.
- In the Property column, click Property Settings.
- Your "UA-" ID appears at the top of the Property Settings page.