Tạo thẻ trang web đã kết nối cho tài sản Universal Analytics. Bạn có thể tạo tối đa 20 thẻ trang web đã kết nối cho mỗi tài sản. Lưu ý: Bạn không thể sử dụng API này trên các tài sản GA4.
Yêu cầu HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:createConnectedSiteTag
Tài sản Universal Analytics để tạo thẻ trang web đã kết nối. API này không hỗ trợ các tài sản GA4. Định dạng: thuộc tính/{universalAnalyticsPropertyId} Ví dụ: thuộc tính/1234
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]