DynSegment: DynSegment

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

Description

Combine one or more segment condition filters and/or sequence filters into a gaDynSegment that is scoped to either 'user' or 'session' level.

Usage

1
2
3
4
5
6
7
DynSegment(object, ..., name = character(0))

## S4 method for signature 'ANY'
DynSegment(object, ..., name = character(0))

## S4 method for signature 'gaDynSegment'
DynSegment(object)

Arguments

object

The first filter to include in the segment definition.

...

Additional filters to include in the segment definition, if needed.

name

An optional name given to the dynamic segment.

Details

Segment filter are either sequential or non-sequential conditions. Sequential and non-sequential conditions can be combined using this function.

Value

A gaDynSegment object.

Methods (by class)

See Also

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

Examples

1
2
3
4
5
6
7
8
return_shoppers <- SegmentConditionFilter(
  Expr(~transactions > 1, metricScope = "perUser"),
  scope = "users"
)
watched_video_then_purchased <- Sequence(
  Expr(~eventCategory == "video") & Expr(~eventAction == "play"),
  Later(Expr(~transactions > 0))
)

ganalytics documentation built on May 2, 2019, 8:34 a.m.