The Google Analytics Data API v1 produces reports for Google Analytics 4
API requests are required to specify a numeric Google Analytics 4
property identifier. The documentation and sample code of the Data API refer to
this Id as
All Data API methods require the Google Analytics 4 property identifier to be
specified inside a URL request path in the form of
If you are using one of the Data API client libraries, there
is no need to manipulate the request URL path manually. Most API clients
property parameter that expects a string in the form of
properties/GA4_PROPERTY_ID. See Quick start guide
for examples of using the client libraries.
What is my property Id?
You can use the Data API if you have configured analytics reports in either of the following products:
Google Analytics has multiple types of Properties. To use the Data API, a property must be a Google Analytics 4 property, as opposed to Universal Analytics. Universal Analytics is an older version of Google Analytics and is not supported by the Data API.
To determine a Google Analytics 4 property Id:
- Visit Google Analytics at https://analytics.google.com/.
- Select Admin.
- Select the Property.
- Select Property Settings.
If the Property Settings shows a numeric "PROPERTY ID" such as "123...", this is the numeric Id of your Google Analytics 4 property.
If you have linked Google Analytics to Firebase, you will see analytics data for your project in Firebase. To learn more about linking, see Link Google Analytics to Firebase.
To determine the GA4 property for a Firebase project:
- Visit the Firebase console at https://console.firebase.google.com/.
- Select your project.
- Select Project settings.
- Select Integrations.
- Select your Google Analytics Integration.
The Google Analytics Integration page will show a numeric "Property ID" such as "123...". This is the numeric Id of your Google Analytics 4 property.
If you have enabled user metrics and linked your apps to Firebase in AdMob, you will see user metrics in AdMob for your app.
To determine the Google Analytics 4 property for an AdMob app:
- Visit AdMob at https://apps.admob.com/.
- Select your app.
- Select App Overview.
- Select "FIREBASE DASHBOARD".
- Follow the above Firebase instructions starting with "Select Project settings."