# Google Analytics Data V1alpha Client - Class FunnelStep (0.24.0)

0.24.0 (latest) 0.23.3 0.22.3 0.21.1 0.20.1 0.19.0 0.18.0 0.17.1 0.16.4 0.14.0 0.13.0 0.12.0 0.11.2 0.10.1 0.9.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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** ||
|---|---|
| **Name** | **Description** |
| `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` | `https://protobuf.dev/reference/php/api-docs/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` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/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** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFilterExpression

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1alpha.FunnelFilterExpression|null` |   |

### hasFilterExpression

### clearFilterExpression

### setFilterExpression

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-data/latest/V1alpha.FunnelFilterExpression` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |