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.
{
"$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"
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.