Google Analytics Admin V1alpha Client - Class EnhancedMeasurementSettings (0.10.0)

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

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Resource name of this Data Stream. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/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.

↳ page_views_enabled bool

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

↳ 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_loads_enabled bool

Output only. If enabled, capture a page view event each time a page loads.

↳ page_changes_enabled bool

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

↳ 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 this Data Stream.

Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"

Returns
TypeDescription
string

setName

Output only. Resource name of this Data Stream.

Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/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

getPageViewsEnabled

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

Returns
TypeDescription
bool

setPageViewsEnabled

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

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

getPageLoadsEnabled

Output only. If enabled, capture a page view event each time a page loads.

Returns
TypeDescription
bool

setPageLoadsEnabled

Output only. If enabled, capture a page view event each time a page loads.

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

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