Google Analytics · JSON Structure

Admin Api Measurement Protocol Secret Structure

A secret value used for sending hits to Measurement Protocol.

Type: object Properties: 3
AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

MeasurementProtocolSecret is a JSON Structure definition published by Google Analytics, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

displayName name secretValue

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/json-structure/admin-api-measurement-protocol-secret-structure.json",
  "name": "MeasurementProtocolSecret",
  "description": "A secret value used for sending hits to Measurement Protocol.",
  "type": "object",
  "properties": {
    "displayName": {
      "description": "Required. Human-readable display name for this secret.",
      "type": "string"
    },
    "name": {
      "description": "Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}",
      "readOnly": true,
      "type": "string"
    },
    "secretValue": {
      "description": "Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.",
      "readOnly": true,
      "type": "string"
    }
  }
}