Bắt buộc. Tên của thẻ trang web cần tra cứu. Xin lưu ý rằng thẻ trang web là singleton và không có mã nhận dạng duy nhất. Định dạng: Properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
Tài nguyên chỉ có thể đọc có thẻ để gửi dữ liệu từ một trang web đến DataStream. Chỉ xuất hiện đối với tài nguyên DataStream trên web.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON
{"name": string,"snippet": string}
Trường
name
string
Chỉ có đầu ra. Tên tài nguyên cho tài nguyên GlobalSiteTag này. Định dạng: thuộc tính/{property_id}/dataStreams/{stream_id}/globalSiteTag Ví dụ: "properties/123/dataStreams/456/globalSiteTag"
snippet
string
Bất biến. Đoạn mã JavaScript cần dán làm mục đầu tiên vào thẻ head của mỗi trang web cần đo lường.
[[["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: 2024-08-22 UTC."],[[["Retrieves the Site Tag, an immutable singleton, associated with a specific web stream."],["Utilizes an HTTP GET request with the format `GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}` to fetch the tag."],["Requires providing the web stream's name using the path parameter `name` in the format `properties/{property_id}/dataStreams/{stream_id}/globalSiteTag`."],["Returns a JSON response containing the site tag's name and the JavaScript snippet for website implementation."],["Needs authorization with either `https://www.googleapis.com/auth/analytics.readonly` or `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This outlines retrieving a web stream's Site Tag via a `GET` request to a specified URL. The required `name` parameter, formatted as `properties/{property_id}/dataStreams/{stream_id}/globalSiteTag`, identifies the Site Tag. The request body must be empty. The successful response, in JSON format, provides a `name` (resource identifier) and an immutable `snippet` (JavaScript code) for website data measurement. This can be achieved through authorization with either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]