Method: properties.calculatedMetrics.get

  • This document provides details on how to retrieve a single CalculatedMetric using an HTTP GET request.

  • The request uses a specific URL format including the property ID and calculated metric ID in the path.

  • The request body should be empty, and the response body contains an instance of the CalculatedMetric resource.

  • Authorization requires either the analytics.readonly or analytics.edit OAuth scopes.

Lookup for a single CalculatedMetric.

HTTP request

GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the CalculatedMetric to get. Format: properties/{property_id}/calculatedMetrics/{calculatedMetricId} Example: properties/1234/calculatedMetrics/Metric01

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of CalculatedMetric.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit