AI-generated Key Takeaways
-
Archives a specified CustomMetric associated with a Google Analytics 4 property.
-
Requires an HTTP POST request to a specific endpoint with the CustomMetric's resource name.
-
The request body should be empty, and upon success, the response body will also be empty.
-
To authorize, you need the
https://www.googleapis.com/auth/analytics.edit
OAuth scope.
Archives a CustomMetric on a property.
HTTP request
POST https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}:archive
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit