Event parameter operators
Events are connected with customer behavior and activities on your website or mobile application. A good example of such event is a page visit or adding a product to a cart.
As each event consists of parameters, you can measure events in terms of various aspects. When it comes to the analysis of the event, you need to define the details of event parameters and you can do it by means of five operators. An operator can take form of a date, string of numbers or text, etc.
Operators can be found in the whole Analytics
in which you can select events for analysis:
Date
This operator is connected with time. If you want to analyze an event in terms of time, choose this parameter and you will be able to pick a date or dates it refers to. Available options:
-
Date - Choose this option to pick one date on a calendar.
-
Custom - Choose start and end date. The chosen period will be analyzed.
-
Current date - This option lets you choose particular elements from the current date (the system takes into consideration the date of saving the analytics).
- Matches current hour - The system considers only the hour of saving the analytics. For example, the current hour is 2 P.M., the chosen period for analysis covers last 30 days, then the system will measure the event result for last 30 days at 2 P.M.
- Matches current day - The system considers only the number of the day of the month. For example, the current day is the 3rd of April, the chosen period for analysis covers last 3 months. In such case the system will measure the event results for the third day of the month for 3 previous months.
- Matches current month - The system considers only the number of the month. For example, May is the current month, the chosen period for analysis covers three years backwards. In such case the system will measure the event results only for the fifth month during previous 3 years.
- Matches current year - The system considers only the number of the year. For example, the current year is 2019 and the chosen period for analysis covers last 4 years. In such case, the system will measure the results for year 2019.
Example: Use the options Matches current day and Matches current month to create a segment of customers who have birthday today. In order to do so create two rules and join them with AND element.
Descriptions of the aforementioned options mention the chosen period. In each analytics (funnels, segmentations, metrics, etc.) you can choose the general period to be analyzed. The options above just narrow the scope of dates considered in the general period.
Number
This operator refers to numerical values. The logic behind the options available in this operator mocks the logic of the mathematical operators. Available options:
- Equal - Choose this option if you want to consider elements that are equal to the string of numbers you paste.
- Less than & more than - Choose this option if you want to consider the elements which are lesser or bigger than the string of numbers you paste.
- Less or equal to - Choose this option if you want to consider the elements which are lesser or equal to the string of numbers you paste.
- More or equal to - Choose this option if you want to consider the elements which are equal or bigger than the string of numbers you paste.
Example of use: You can count how many products of a particular price have been added to cart last month.
String
This operator refers to sequence of characters (letters, numbers, special characters). Available options:
- Equal & not equal - Choose this option to check if the parameter value is/isn’t an exact match to the provided string.
- Contain & not contain - Choose these options if you want to either include or exclude from results items that contain or don’t contain string of characters.
- Starts with & ends with - Choose these options if you want to either include in the results items that start or end with a particular string of characters.
- Regular expression - Use this function if you want to extract information from any text. Extracting these information involves searching for matches by using a specific sequence of ASCII or unicode characters. For example, you can check if the URL address contains
/shoes
or/skirts
. - In & not in - When you choose this option, you can provide a comma-separated list of strings. The filter checks for the attribute’s existence in the list and acts according to the selected logic (is in/is not in).
Boolean
You may use this operator to define if a specific event exists or use it as an exclusion. Available options: is true, is false
Array
If the array is an array of objects, it must be converted into a string and analyzed as a string.
The recommended way of doing this is to create an expression that transforms the array-type parameter into a string, and then analyze the result of that expression.
You can describe the parameter value as an array (many values of one parameter separated by commas).
- Equal & not equal - Choose these options if you want to check if the array contains/doesn’t contain at least one exact match of the provided string.
- Contain & not contain - Choose these options if you want to check if at least one item in the array contains/doesn’t contain a partial match of the provided string.
- Starts with & ends with - Choose these options if you want to check if at least one item in the array starts/ends with the provided string.
- Regular expression - Use this function if you want to extract information from any text. Extracting these information involves searching for matches by using a specific sequence of ASCII or unicode characters. For example, you can check if the URL address contains
/shoes
or/skirts
.
Object
If you want to analyze an object in the event parameters, that object must be converted into a string and analyzed as a string.
The recommended way of doing this is to create an expression that transforms the object-type parameter into a string, and then analyze the result of that expression.