Google Analytics Data V1alpha Client - Class FunnelStep (0.14.0)

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

Steps define the user journey you want to measure. Steps contain one or more conditions that your users must meet to be included in that step of the funnel journey.

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

Namespace

Google \ Analytics \ Data \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The distinctive name for this step. If unspecified, steps will be named by a 1 based indexed name (for example "0. ", "1. ", etc.). This name defines string value returned by the funnelStepName dimension. For example, specifying name = Purchase in the request's third funnel step will produce 3. Purchase in the funnel report response.

↳ is_directly_followed_by bool

If true, this step must directly follow the previous step. If false, there can be events between the previous step and this step. If unspecified, isDirectlyFollowedBy is treated as false.

↳ within_duration_from_prior_step Google\Protobuf\Duration

If specified, this step must complete within this duration of the completion of the prior step. withinDurationFromPriorStep is inclusive of the endpoint at the microsecond granularity. For example a duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond. withinDurationFromPriorStep is optional, and if unspecified, steps may be separated by any time duration.

↳ filter_expression Google\Analytics\Data\V1alpha\FunnelFilterExpression

The condition that your users must meet to be included in this step of the funnel journey.

getName

The distinctive name for this step. If unspecified, steps will be named by a 1 based indexed name (for example "0. ", "1. ", etc.). This name defines string value returned by the funnelStepName dimension. For example, specifying name = Purchase in the request's third funnel step will produce 3. Purchase in the funnel report response.

Returns
TypeDescription
string

setName

The distinctive name for this step. If unspecified, steps will be named by a 1 based indexed name (for example "0. ", "1. ", etc.). This name defines string value returned by the funnelStepName dimension. For example, specifying name = Purchase in the request's third funnel step will produce 3. Purchase in the funnel report response.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIsDirectlyFollowedBy

If true, this step must directly follow the previous step. If false, there can be events between the previous step and this step. If unspecified, isDirectlyFollowedBy is treated as false.

Returns
TypeDescription
bool

setIsDirectlyFollowedBy

If true, this step must directly follow the previous step. If false, there can be events between the previous step and this step. If unspecified, isDirectlyFollowedBy is treated as false.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getWithinDurationFromPriorStep

If specified, this step must complete within this duration of the completion of the prior step. withinDurationFromPriorStep is inclusive of the endpoint at the microsecond granularity. For example a duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond.

withinDurationFromPriorStep is optional, and if unspecified, steps may be separated by any time duration.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasWithinDurationFromPriorStep

clearWithinDurationFromPriorStep

setWithinDurationFromPriorStep

If specified, this step must complete within this duration of the completion of the prior step. withinDurationFromPriorStep is inclusive of the endpoint at the microsecond granularity. For example a duration of 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 microsecond.

withinDurationFromPriorStep is optional, and if unspecified, steps may be separated by any time duration.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getFilterExpression

The condition that your users must meet to be included in this step of the funnel journey.

Returns
TypeDescription
Google\Analytics\Data\V1alpha\FunnelFilterExpression|null

hasFilterExpression

clearFilterExpression

setFilterExpression

The condition that your users must meet to be included in this step of the funnel journey.

Parameter
NameDescription
var Google\Analytics\Data\V1alpha\FunnelFilterExpression
Returns
TypeDescription
$this