Google Analytics Admin V1alpha Client - Class GlobalSiteTag (0.24.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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getSnippet

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

Returns
Type Description
string

setSnippet

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

Parameter
Name Description
var string
Returns
Type Description
$this