Property ID

The Google Analytics Data API v1 produces reports for Google Analytics properties. API requests are required to specify a numeric Google Analytics property identifier. The documentation and sample code of the Data API refer to this ID as GA_PROPERTY_ID.

Usage

All Data API methods require the Google Analytics property identifier to be specified inside a URL request path in the form of properties/GA_PROPERTY_ID, such as:

  POST https://analyticsdata.googleapis.com/v1beta/properties/GA_PROPERTY_ID:runReport

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 provide a property parameter that expects a string in the form of properties/GA_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

Google Analytics has multiple types of Properties. To use the Data API, a property must be a Google Analytics 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 property ID:

  1. Visit Google Analytics at https://analytics.google.com/.
  2. Select Admin.
  3. Select the Property.
  4. Select Property Settings.

If the Property Settings shows a numeric "PROPERTY ID" such as "123...", this is the numeric ID of your Google Analytics property.

Firebase

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 Google Analytics property for a Firebase project:

  1. Visit the Firebase console at https://console.firebase.google.com/.
  2. Select your project.
  3. Select Project settings.
  4. Select Integrations.
  5. 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 property.

AdMob

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 property for an AdMob app:

  1. Visit AdMob at https://apps.admob.com/.
  2. Select your app.
  3. Select App Overview.
  4. Select "FIREBASE DASHBOARD".
  5. Follow the above Firebase instructions starting with "Select Project settings."