Method: properties.dataStreams.getEnhancedMeasurementSettings

  • Retrieves the enhanced measurement settings for a specified data stream, enabling detailed data collection and analysis.

  • Utilizes an HTTP GET request with the resource name identifying the specific data stream's settings within Google Analytics.

  • An empty request body is required, while the response provides the comprehensive EnhancedMeasurementSettings object containing configuration details.

  • Authentication is necessary using OAuth scopes, granting either read-only or edit access to the analytics data.

Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the settings to lookup. Format: properties/{property}/dataStreams/{dataStream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires one of the following OAuth scopes:

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