Google Analytics Data V1alpha Client - Class ConversionSpec (0.24.0)

Reference documentation and code samples for the Google Analytics Data V1alpha Client class ConversionSpec.

Controls conversion reporting.

Generated from protobuf message google.analytics.data.v1alpha.ConversionSpec

Namespace

Google \ Analytics \ Data \ V1alpha

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ conversion_actions
string[]

The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the conversion_action field within the conversions list in the response of the GetMetadata method. For example, 'conversionActions/1234'.

↳ attribution_model
int

The attribution model to use in the Conversion Report. If unspecified, DATA_DRIVEN is used.

getConversionActions

The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the conversion_action field within the conversions list in the response of the GetMetadata method. For example, 'conversionActions/1234'.

Returns
Type
Description

setConversionActions

The conversion action IDs to include in the report. If empty, all conversions are included. Valid conversion action IDs can be retrieved from the conversion_action field within the conversions list in the response of the GetMetadata method. For example, 'conversionActions/1234'.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getAttributionModel

The attribution model to use in the Conversion Report. If unspecified, DATA_DRIVEN is used.

Returns
Type
Description
int
Enum of type AttributionModel .

setAttributionModel

The attribution model to use in the Conversion Report. If unspecified, DATA_DRIVEN is used.

Parameter
Name
Description
var
int

Enum of type AttributionModel .

Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: