Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
HTTP request
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Read-only resource with the tag for sending data from a website to a WebDataStream.
JSON representation | |
---|---|
{ "name": string, "snippet": string } |
Fields | |
---|---|
name |
Output only. Resource name for this GlobalSiteTag resource. Format: properties/{propertyId}/globalSiteTag |
snippet |
Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure. |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit