SegmentConditionFilter: SegmentConditionFilter

Description Usage Arguments Value Methods (by class) See Also Examples

Description

Create a new gaSegmentConditionFilter object

Usage

1
2
3
4
SegmentConditionFilter(object, ..., negation, scope)

## S4 method for signature 'ANY'
SegmentConditionFilter(object, ..., negation, scope)

Arguments

object

An expression to be used as a non-sequential segment condition.

...

Other expressions to be Anded to the first expression provided.

negation

Optional logical TRUE or FALSE to match segments where this condition has not been met. Default is FALSE, i.e. inclusive filter.

scope

Optional scope, "users" or "sessions" (default).

Value

A gaSegmentConditionFilter object.

Methods (by class)

See Also

Other dynamic segment functions: DynSegment, Exclude, Include, IsNegated, PerHit, PerProduct, PerSession, PerUser, ScopeLevel, Segments, Segment

Examples

1
2
3
4
5
bounced_sessions <- SegmentConditionFilter(Expr(~bounces > 0))
return_shoppers <- SegmentConditionFilter(
  Expr(~transactions > 1, metricScope = "perUser"),
  scope = "users"
)

jdeboer/ganalytics documentation built on May 18, 2019, 11:30 p.m.