Zorunlu. Aranacak site etiketinin adı. Site etiketlerinin tekil tanımlayıcılar olduğunu ve benzersiz kimliklerine sahip olmadığını unutmayın. Biçim: mülkler/{property_id}/dataStreams/{stream_id}/globalSiteTag
Bir web sitesinden DataStream'e veri göndermeye yarayan etikete sahip salt okunur kaynak. Yalnızca web DataStream kaynakları için mevcut.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi
{"name": string,"snippet": string}
Alanlar
name
string
Yalnızca çıkış. Bu GlobalSiteTag kaynağının kaynak adı. Biçim: mülkler/{property_id}/dataStreams/{stream_id}/globalSiteTag Örnek: "properties/123/dataStreams/456/globalSiteTag"
snippet
string
Sabit. Ölçülecek her web sayfasının "head" etiketine ilk öğe olarak yapıştırılacak JavaScript kod snippet'i.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]