Comparison Operators for Segments
The Segment Builder lets you compare and constrain values using selected operators. There are three categories of operators: Standard, Data Warehouse, and Distinct Count.
Depending on the operator you select:
- You can enter a value
- You can enter part of a value and select from a drop-down menu (if available).
- Immediately select a value from the drop-down menu(if available).
When you type a value for an operator that validates available values, like equals, and the value doesn’t match the values available for the component, you see a
Wildcards
The only supported wildcard character for operators that support wildcards is the asterisk: *
. If you need to search for the specific * character, you can escape it with a backslash, like \*
.
For example, you have a page name called My cool product.
- The segment rule Page name matches
* product
will match the above page name. - However, the rule Page name matches
My \* product
matches only the page name My * Product.
Standard operators
Search Results, Homepage
for the Page Name dimension with this operator would match Search Results and Homepage, and count as 2 items. The input field for this operator is comma-delimited.Search Results, Homepage
with this operator for the Page Name dimension would identify Search Results and Homepage and then exclude them from the returned items. This example would count as 2 items. The input field for this operator is comma-delimited.Search
, then this rule will match any page that has the substring Search
in it, including Search Results, Search, and Searching. The “contains” clause is not case sensitive in ۶Ƶ Analytics, but it is case sensitive in Customer Journey Analytics.Search
, then it will not match any page that has the substring Search
in it, including Search Results, Search, and Searching. These values will be excluded from the results.Search Results
with this operator for the Page Name dimension would match Search Results and Results of Search, but not Search or Results individually. The rule would match Search AND Results found together. The input field for this operator is space-delimited (100 words).Search Results
with this operator for the Page Name dimension would identify Search Results and Results of Search (but not Search or Results individually) and then exclude these items. The input field for this operator is space-delimited (100 words).Search Results
with this operator would match Search Results, Results of Search, Search, and Results. It would match either Search OR Results found together or independently. The input field for this operator is space-delimited (100 words).Search Results
for the Page Name dimension would match Search Result s, Results of Searc h*, Search, and Results where either Search or Result are found together or independently. It would then exclude items that contain these substrings. The input field for this operator is space-delimited (100 words).Returns items that match exactly based on a given numeric or string value. The matches clause is case sensitive in ۶Ƶ Analytics and in Customer Journey Analytics. Note: Use this operator when using wildcard (globbing) features. Examples of “globbing”:
a*e
would matchae
,abcde
,adobe
, anda whole sentence
adob*
would matchadobe
,adobe analytics
, andadobo recipe
*dobe
would matchdobe
,adobe
, andcute little dobe
Data Warehouse operators
Distinct Count operators
You can segment on a distinct count of items within a dimension. Examples: “Visitors who viewed more than 5 distinct products,” or “Visits where more than 5 distinct pages were seen.”
See