Method: projects.removeAnalytics

Unlinks the specified FirebaseProject from its Google Analytics account.

This call removes the association of the specified FirebaseProject with its current Google Analytics property. However, this call does not delete the Google Analytics resources, such as the Google Analytics property or any data streams.

These resources may be re-associated later to the FirebaseProject by calling projects.addGoogleAnalytics and specifying the same analyticsPropertyId. For Android Apps and iOS Apps, this call re-links data streams with their corresponding apps. However, for Web Apps, this call provisions a new data stream for each Web App.

To call projects.removeAnalytics, a project member must be an Owner for the FirebaseProject.

HTTP request

POST https://firebase.googleapis.com/v1beta1/{parent=projects/*}:removeAnalytics

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The resource name of the FirebaseProject to unlink from its Google Analytics account, in the format:

projects/PROJECT_IDENTIFIER

Refer to the FirebaseProject name field for details about PROJECT_IDENTIFIER values.

Request body

The request body contains data with the following structure:

JSON representation
{
  "analyticsPropertyId": string
}
Fields
analyticsPropertyId

string

Optional. The ID of the Google Analytics property associated with the specified FirebaseProject.

  • If not set, then the Google Analytics property that is currently associated with the specified FirebaseProject is removed.
  • If set, and the specified FirebaseProject is currently associated with a different Google Analytics property, then the response is a 412 Precondition Failed error.

Response body

If successful, the response body is empty.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/firebase

For more information, see the Authentication Overview.