ganalytics (version 0.10.7)

PerSession: PerSession

Description

Set the scope of a .gaSegmentFilter or gaMetExpr object to session-level.

Usage

PerSession(object, ..., negation)

# S4 method for ANY PerSession(object, ..., negation)

# S4 method for gaSegmentSequenceStep PerSession(object, ..., negation)

# S4 method for gaSegmentSequenceFilter PerSession(object, ..., negation)

# S4 method for gaMetExpr PerSession(object, ..., negation)

# S4 method for formula PerSession(object, ..., negation)

Arguments

object

A .gaSegmentFilter or gaMetExpr object to coerce to session-level. Alternatively, an dimension expression or segment filter to coerce into a session scoped gaDynSegment.

...

Other filters to include in the gaDynSegment.

negation

Boolean value indicating whether to negate the condition.

Value

A gaMetExpr, .gaSegmentFilter or gaDynSegment.

Methods (by class)

  • ANY: Create a session level segment filter list from the supplied expressions, interpreted as condition filters.

  • gaSegmentSequenceStep: Create a session-level segment sequence filter from the supplied sequence expression.

  • gaSegmentSequenceFilter: Create a session-level segment sequence filter from the supplied sequence expression.

  • gaMetExpr: Set the scope of the supplied metric condition to session-level.

  • formula: Set the scope of the supplied non-standard-evaluation metric condition to session-level.

See Also

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

Examples

Run this code
# NOT RUN {
spent_more_than_100_in_a_session <- PerSession(Expr(~transactionRevenue > 100))

# }

Run the code above in your browser using DataCamp Workspace