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

Image presents a list of date operators.

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:

  1. Date - Choose this option to pick one date on a calendar.

  2. Custom - Choose start and end date. The chosen period will be analyzed.

  3. 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.

description

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.

Note:

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.

Image presents the settings of an event and the general period chosen for the analysis of the event.


Number

Image presents the list of numerical operators

This operator refers to numerical values. The logic behind the options available in this operator mocks the logic of the mathematical operators. Available options:

  1. Equal - Choose this option if you want to consider elements that are equal to the string of numbers you paste.
  2. 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.
  3. 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.
  4. 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

Image presents list of string operators

This operator refers to sequence of characters (letters, numbers, special characters). Available options:

  1. Equal & not equal - Choose this option to check if the parameter value is/isn’t an exact match to the provided string.
  2. 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.
  3. 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.
  4. 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.
  5. 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

Image presents list of boolean operators

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

Image presents list of array operators

Important:

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).

  1. 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.
  2. 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.
  3. 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.
  4. 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.

😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.