No matter if you need it to track your Youtube videos, Shopify store or WordPress site, the Google Analytics property tracking ID plays a critical role in your site’s tracking. That’s why in this article, we’ll explore what is the Google Analytics tracking ID and where to find it.
- What is the property tracking ID
- How to find it in web properties
- How to find it in App + Web properties
What is Google Analytics property tracking ID
Google Analytics Tracking ID (aka Property ID) is the unique identifier of a GA property. It allows Analytics and other apps to distinguish your property from other properties. This allows data to be sent specifically to your property, which can be later viewed in your Analytics account.
That is why when sending data to a GA web property, you need to specify the property ID. However, this is not the case when using App + Web properties, but more on this in the sections below.
The GA tracking ID is made up of 3 elements: Google Analytics version, account ID and property index number.
Each element is separated by a dash. Google Analytics version, which is the first element of the property ID, usually has a value of UA. UA stands for Universal Analytics and is the current version of GA.
The account ID is the second element of the tracking ID while property index is the third element.
Since an account can have up to 50 properties, the index can only be from 1 to 50.
How to find the tracking ID of web properties
In a web property, the tracking ID is located on the “Property Settings” page. To access it, go to Admin and from the Property column, click on “Property Settings”.
You can also get the property ID from the “Tracking Code” page located in Admin -> Property Column -> Tracking Info -> Tracking Code.
Beside it, you can also get the Global Site Tag from that page, allowing you to install the basic pageview tracking.
How to find the tracking ID of App + Web properties
It might surprise you but App + Web properties do not have property IDs. At least not for Android and iOS Data Streams.
That is because data collection principles of App + Web properties are a little bit different than that of web properties.
And these differences also bring new options and terminologies, like Data Streams.
A Data Stream is a data connection created specifically to track an app or a website. App + Web properties do not have views like regular web properties so they use Data Streams instead.
Depending what you want to track, you can add an Android app, iOS app and Web based Data Streams.
Android and iOS app Data Streams do not have property IDs as they get the data from Firebase instead of GA libraries (ga.js, analytics.js, gtag.js).
Because of this, Android and iOS Data Streams from App + Web properties do not need a tracking ID to work, as all their data comes from the Firebase SDK.
So to have the data available in a App + Web property, you need to add Firebase to your app and link it to Analytics.
After this the App + Web property will start getting data. And all of this without a tracking (property) ID.
For App + Web properties using Web based Data Streams, the data collection principles are the same as for web properties, as they use the gtag.js library. Because of this, Web Data Streams also have property IDs, however they are called “Measurement IDs”.
To get the Measurement ID, from the property column of your App + Web property, go to Data Streams and click on a Web based Data Stream of your choice. If you don’t have a Web based Data Stream, you need to add one first.
On the next screen you should see the Measurement ID in the top right corner.
Now you can install the tracking for this Data Stream using the Global Site Tag (gtag.js) script available on that page or via Google Tag Manager using the “App + Web Configuration” tag type.