Description Usage Arguments Value Methods (by class) See Also Examples
Get or set the scope level of a .gaSegmentFilter
or gaMetExpr
.
Set the scope level of a .gaSegmentFilter
or a gaMetExpr
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ScopeLevel(object, value)
ScopeLevel(object) <- value
## S4 method for signature 'gaSegMetExpr,missing'
ScopeLevel(object)
## S4 method for signature 'gaSegMetExpr,character'
ScopeLevel(object, value)
## S4 replacement method for signature 'gaMetExpr,character'
ScopeLevel(object) <- value
## S4 method for signature '.gaSegmentFilter,missing'
ScopeLevel(object)
## S4 method for signature '.gaSegmentFilter,character'
ScopeLevel(object, value)
## S4 replacement method for signature '.gaSegmentFilter,character'
ScopeLevel(object) <- value
## S4 replacement method for signature 'gaDynSegment,character'
ScopeLevel(object) <- value
|
object |
A |
value |
Optional new scope level to return an updated copy of the object
with the new scope applied. For |
The scope level as a character string, or returns a
.gaSegmentFilter
or gaMetExpr
object with the newly set
scope.
object = gaSegMetExpr,value = missing
: Return the scope of the supplied metric used within a
segment definition.
object = gaSegMetExpr,value = character
: Set the scope, as described by a character value, to
be applied to the supplied metric condition for use within a segment
expression.
object = gaMetExpr,value = character
: Set the scope, as described by a character value, to
be applied to the supplied metric condition for use within a segment
expression.
object = .gaSegmentFilter,value = missing
: Returns the scope of the supplied .gaSegmentFilter.
object = .gaSegmentFilter,value = character
: Set the scope level of a .gaSegmentFilter to either
"user" or "session" level.
object = .gaSegmentFilter,value = character
: Set the scope level of a .gaSegmentFilter to either
"user" or "session" level.
object = gaDynSegment,value = character
: Set the scope level of a gaDynSegment to either
"user" or "session" level.
Other dynamic segment functions: DynSegment
,
Exclude
, Include
,
IsNegated
, PerHit
,
PerProduct
, PerSession
,
PerUser
,
SegmentConditionFilter
,
Segments
, Segment
Other dynamic segment functions: DynSegment
,
Exclude
, Include
,
IsNegated
, PerHit
,
PerProduct
, PerSession
,
PerUser
,
SegmentConditionFilter
,
Segments
, Segment
1 2 3 4 5 | sessions_with_value <- Expr(~eventValue > 0, metricScope = "perSession")
ScopeLevel(sessions_with_value)
users_with_value_sessions <- Include(sessions_with_value)
ScopeLevel(users_with_value_sessions) <- "users"
sessions_with_value_segment <- ScopeLevel(users_with_value_sessions, "sessions")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.