Segmentation based on interests
You can use aggregates and expressions to determine minimum and maximum values of certain types of events. These analyses are also helpful with establishing the relations between these events. By using them in segmentations, you can make the customer analysis more complex.
Examples of use
You can use these analyses to create a segmentation that points out:
- Most/least frequently visited category
- Most/least frequently purchased category
- Most frequently visited category without a purchase
Use case: You have four product categories in your store.
Goal: Get to know which category a user visits most frequently.
This procedure consists of three stages:
- Create 4 aggregates that count visits to each of four product categories.
- Create an expression that returns the highest result for every category.
- Create a segmentation that compares the aggregates with the maximum number of page visits.
- Go to Analytics > Aggregates > New aggregate.
- Enter the name of the aggregate (in this example, the name of the aggregate will be the same as the category name).
- By clicking the button, set Count as the type of the aggregate result.
- From the Choose event dropdown list, select the
- Click the Where button and from the Choose parameter dropdown list, select
- Select the Contain logical operator.
- In the text field, next to the logical operator, enter the name of the product category.
- Save the aggregate.
- Create three more aggregates for their respective categories. Repeat the steps 1-8.
Result: The aggregates will count visits of individual users to the product category. The aggregates are available in Analytics > Aggregates.
- Go to Analytics > Expressions > New expression.
- Enter the name of the expression.
- From the dropdown list, select Attribute.
- To start creating the formula of the expression, click the Select button.
- Create the formula as presented on the video below:
The formula of the expression:
The final form of the expression:
- Save the expression by clicking Save. Result: The expression returns the highest values for every category. It is available on the list of expressions: Analytics > Expressions.
- Go to Analytics > Segmentations > New segmentation.
- Enter the name of the segmentation.
- Click Choose filter.
- Select the Clients tab.
- Select Expressions.
- Find the expression created in the previous steps.
- Choose the Equal operator.
- Click the icon next to the logic operator and keep clicking until you get .
- From the Choose value dropdown list, click the icon, and then select Aggregates.
- Find the aggregate for the first product category.
- Create the next sub-segmentations for the remaining product categories by clicking the icon.
- To save the segmentation, click Save.
- To preview the visual form of the segmentation, click Preview analyze.