Erforderlich. Der Name des Website-Tags, nach dem gesucht werden soll. Beachten Sie, dass Site-Tags Singleton-Elemente sind und keine eindeutigen IDs haben. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
Schreibgeschützte Ressource mit dem Tag zum Senden von Daten von einer Website an einen DataStream. Nur für Web-DataStream-Ressourcen vorhanden.
Bei Erfolg enthält der Antworttext Daten mit der folgenden Struktur:
JSON-Darstellung
{"name": string,"snippet": string}
Felder
name
string
Nur Ausgabe. Ressourcenname für diese GlobalSiteTag-Ressource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Beispiel: „properties/123/dataStreams/456/globalSiteTag“
snippet
string
Nicht veränderbar. JavaScript-Code-Snippet, das als erstes Element in das „head“-Tag jeder zu messenden Webseite eingefügt wird
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]