مطلوب. اسم علامة الموقع الإلكتروني المطلوب البحث عنها. تجدر الإشارة إلى أنّ علامات المواقع الإلكترونية هي علامات فردية وليس لها معرّفات فريدة. التنسيق: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
مورد للقراءة فقط مع علامة لإرسال البيانات من موقع إلكتروني إلى DataStream. لا تتوفّر هذه الميزة إلا لموارد DataStream على الويب.
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
تمثيل JSON
{"name": string,"snippet": string}
الحقول
name
string
النتائج فقط. اسم المورد لمورد GlobalSiteTag هذا. التنسيق: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag مثال: " properties/123/dataStreams/456/globalSiteTag"
snippet
string
غير قابل للتغيير. مقتطف رمز JavaScript الذي سيتم لصقه كأول عنصر في علامة Head لكل صفحة ويب لقياسها.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eRetrieves the Site Tag, an immutable singleton, associated with a specific web stream.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP GET request with the format \u003ccode\u003eGET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\u003c/code\u003e to fetch the tag.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the web stream's name using the path parameter \u003ccode\u003ename\u003c/code\u003e in the format \u003ccode\u003eproperties/{property_id}/dataStreams/{stream_id}/globalSiteTag\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eReturns a JSON response containing the site tag's name and the JavaScript snippet for website implementation.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with either \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.readonly\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.edit\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["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"],null,[]]