Method: organizations.sites.site.analytics

Updates the custom analytics script for a portal.

HTTP request

POST https://apigee.googleapis.com/v1/{parent=organizations/*/sites/*}/site/analytics

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the portal. Use the following structure in your request: organizations/{org}/sites/{site}

Request body

The request body contains an instance of AnalyticsUpdatePayload.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

AnalyticsUpdatePayload

JSON representation
{
  "analyticsTrackingId": string,
  "analyticsScript": string
}
Fields
analyticsTrackingId

string

ID of the custom analytics script.

analyticsScript

string

Details of the custom analytics script.