seg_then | R Documentation |
This function creates a then list object which restricts the time constraint of a segment to be added to a sequence segment.
seg_then(limit = "within", count = 1, unit = "year")
limit |
The limitation of the restriction. Either |
count |
How many of the units should be used. |
unit |
A unit of time. Valid values are |
seg_then
argumentsIn the UI you can add 'after' and 'within' statements to create a more complex time restriction.
The same can be accomplished using this function by listing the limits, counts, and units in a c()
function. This would look like: limit = c('within', 'after'), count = c(5, 1), unit = c('hit', 'visit')
seg_then
function callTime restrictions can only be combined using 'within' first before 'after'. The function will automatically align these to be in the correct list item order.
Currently pageviews
and dimensions
are not supported unit values.
a structured list of time restrictions to be used to build the sequential segment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.