Google Analytics Admin V1alpha Client - Class GlobalSiteTag (0.10.0)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class GlobalSiteTag.

Read-only resource with the tag for sending data from a website to a DataStream. Only present for web DataStream resources.

Generated from protobuf message google.analytics.admin.v1alpha.GlobalSiteTag

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

↳ snippet string

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

getName

Output only. Resource name for this GlobalSiteTag resource.

Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

Returns
TypeDescription
string

setName

Output only. Resource name for this GlobalSiteTag resource.

Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnippet

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

Returns
TypeDescription
string

setSnippet

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

Parameter
NameDescription
var string
Returns
TypeDescription
$this