Make a segment element
segment_element
is the lowest hierarchy of segment creation, for which you will also need:
segment_define : AND combination of segmentFilters
segment_element that are combined in OR lists for segment_vectors_*
segment_element( name, operator = c("REGEXP", "BEGINS_WITH", "ENDS_WITH", "PARTIAL", "EXACT", "IN_LIST", "NUMERIC_LESS_THAN", "NUMERIC_GREATER_THAN", "NUMERIC_BETWEEN", "LESS_THAN", "GREATER_THAN", "EQUAL", "BETWEEN"), type = c("METRIC", "DIMENSION"), not = FALSE, expressions = NULL, caseSensitive = NULL, minComparisonValue = NULL, maxComparisonValue = NULL, scope = c("SESSION", "USER", "HIT", "PRODUCT"), comparisonValue = NULL, matchType = c("PRECEDES", "IMMEDIATELY_PRECEDES") )
name |
Name of the GA metric or dimension to segment on |
operator |
How name shall operate on expression or comparisonValue |
type |
A metric or dimension based segment element |
not |
Should the element be the negation of what is defined |
expressions |
|
caseSensitive |
|
minComparisonValue |
|
maxComparisonValue |
Max comparison value for BETWEEN operator |
scope |
|
comparisonValue |
|
matchType |
If used in sequence segment, what behaviour |
A SegmentFilterClause object
Other v4 segment functions:
segment_define()
,
segment_ga4
,
segment_vector_sequence()
,
segment_vector_simple()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.