Reference documentation and code samples for the Google Analytics Data V1alpha Client class SessionSegmentExclusion.
Specifies which sessions are excluded in this segment.
Generated from protobuf message google.analytics.data.v1alpha.SessionSegmentExclusion
Namespace
Google \ Analytics \ Data \ V1alphaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ session_exclusion_duration |
int
Specifies how long an exclusion will last if a session matches the |
↳ session_exclusion_criteria |
SessionSegmentCriteria
If a session meets this condition, the session is excluded from membership in the segment for the |
getSessionExclusionDuration
Specifies how long an exclusion will last if a session matches the
sessionExclusionCriteria.
Optional. If unspecified, a sessionExclusionDuration of
SESSION_EXCLUSION_TEMPORARY is used.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type SessionExclusionDuration. |
setSessionExclusionDuration
Specifies how long an exclusion will last if a session matches the
sessionExclusionCriteria.
Optional. If unspecified, a sessionExclusionDuration of
SESSION_EXCLUSION_TEMPORARY is used.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type SessionExclusionDuration. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSessionExclusionCriteria
If a session meets this condition, the session is excluded from
membership in the segment for the sessionExclusionDuration.
| Returns | |
|---|---|
| Type | Description |
SessionSegmentCriteria|null |
|
hasSessionExclusionCriteria
clearSessionExclusionCriteria
setSessionExclusionCriteria
If a session meets this condition, the session is excluded from
membership in the segment for the sessionExclusionDuration.
| Parameter | |
|---|---|
| Name | Description |
var |
SessionSegmentCriteria
|
| Returns | |
|---|---|
| Type | Description |
$this |
|