Google Analytics Admin V1alpha Client - Class GlobalSiteTag (0.25.2)

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

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

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

↳ snippetstring

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
varstring
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
varstring
Returns
TypeDescription
$this