PerHit: PerHit

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

Description

Set the scope of a gaMetExpr object to hit-level, or transforms a condition filter to a sequence filter of length one (i.e. a combination of conditions for matching a single hit).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PerHit(object, ..., negation)

## S4 method for signature '.compoundExpr'
PerHit(object, ..., negation)

## S4 method for signature 'gaMetExpr'
PerHit(object, ..., negation)

## S4 method for signature 'formula'
PerHit(object, ..., negation)

Arguments

object

A gaMetExpr object to coerce to hit-level or if multiple expressions are provided, then the first expression to combine into a single step sequence filter.

...

Further expressions to be included in the filter definition if defining a sequence filter of length one.

negation

Boolean value indicating whether to negate the condition.

Value

A gaMetExpr or gaSegmentSequenceFilter.

Methods (by class)

See Also

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

Examples

1
2
3
4
5
6
spent_more_than_100_in_a_transaction <- PerHit(Expr(~transactionRevenue > 100))
played_intro_video <- PerHit(
  Expr(~eventCategory == "Video") &
  Expr(~eventAction == "Play") &
  Expr(~eventLabel == "Intro")
)

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