Google Analytics Admin V1alpha Client - Class EnhancedMeasurementSettings (0.17.0)

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

Singleton resource under a web DataStream, configuring measurement of additional site interactions and content.

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

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

↳ stream_enabled bool

Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream. Changing this value does not affect the settings themselves, but determines whether they are respected.

↳ scrolls_enabled bool

If enabled, capture scroll events each time a visitor gets to the bottom of a page.

↳ outbound_clicks_enabled bool

If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.

↳ site_search_enabled bool

If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).

↳ video_engagement_enabled bool

If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.

↳ file_downloads_enabled bool

If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

↳ page_changes_enabled bool

If enabled, capture a page view event each time the website changes the browser history state.

↳ form_interactions_enabled bool

If enabled, capture a form interaction event each time a visitor interacts with a form on your website. False by default.

↳ search_query_parameter string

Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.

↳ uri_query_parameter string

Additional URL query parameters. Max length is 1024 characters.

getName

Output only. Resource name of the Enhanced Measurement Settings.

Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

Returns
TypeDescription
string

setName

Output only. Resource name of the Enhanced Measurement Settings.

Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStreamEnabled

Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream.

Changing this value does not affect the settings themselves, but determines whether they are respected.

Returns
TypeDescription
bool

setStreamEnabled

Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream.

Changing this value does not affect the settings themselves, but determines whether they are respected.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getScrollsEnabled

If enabled, capture scroll events each time a visitor gets to the bottom of a page.

Returns
TypeDescription
bool

setScrollsEnabled

If enabled, capture scroll events each time a visitor gets to the bottom of a page.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getOutboundClicksEnabled

If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.

Returns
TypeDescription
bool

setOutboundClicksEnabled

If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getSiteSearchEnabled

If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).

Returns
TypeDescription
bool

setSiteSearchEnabled

If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getVideoEngagementEnabled

If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.

Returns
TypeDescription
bool

setVideoEngagementEnabled

If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getFileDownloadsEnabled

If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

Returns
TypeDescription
bool

setFileDownloadsEnabled

If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPageChangesEnabled

If enabled, capture a page view event each time the website changes the browser history state.

Returns
TypeDescription
bool

setPageChangesEnabled

If enabled, capture a page view event each time the website changes the browser history state.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getFormInteractionsEnabled

If enabled, capture a form interaction event each time a visitor interacts with a form on your website.

False by default.

Returns
TypeDescription
bool

setFormInteractionsEnabled

If enabled, capture a form interaction event each time a visitor interacts with a form on your website.

False by default.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getSearchQueryParameter

Required. URL query parameters to interpret as site search parameters.

Max length is 1024 characters. Must not be empty.

Returns
TypeDescription
string

setSearchQueryParameter

Required. URL query parameters to interpret as site search parameters.

Max length is 1024 characters. Must not be empty.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUriQueryParameter

Additional URL query parameters.

Max length is 1024 characters.

Returns
TypeDescription
string

setUriQueryParameter

Additional URL query parameters.

Max length is 1024 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this