Method: properties.createConnectedSiteTag
Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.
HTTP request
POST https://analyticsadmin.googleapis.com/v1alpha/properties:createConnectedSiteTag
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
{
"property": string,
"connectedSiteTag": {
object (ConnectedSiteTag )
}
} |
Fields |
property |
string
The Universal Analytics property to create connected site tags for. This API does not support GA4 properties. Format: properties/{universalAnalyticsPropertyId} Example: properties/1234
|
connectedSiteTag |
object (ConnectedSiteTag )
Required. The tag to add to the Universal Analytics property
|
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-02 UTC.
[null,null,["Last updated 2025-04-02 UTC."],[[["Creates a connected site tag for a Universal Analytics property, with a limit of 20 tags per property."],["This API is exclusively for Universal Analytics properties and cannot be used with GA4 properties."],["The request body requires specifying the Universal Analytics property and the connected site tag details."],["Successful execution results in an empty response body."],["Requires authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document details how to create a connected site tag for a Universal Analytics property via API. The process involves a `POST` request to `https://analyticsadmin.googleapis.com/v1alpha/properties:createConnectedSiteTag` with a JSON request body. The request body includes the Universal Analytics `property` and the `connectedSiteTag`. Successful requests result in an empty response, and up to 20 site tags can be created per property. GA4 properties are unsupported. Authorization requires the `analytics.edit` scope.\n"]]