Analyze customer’s preferred item category
You can use expressions to examine the most frequently visited category of items for every customer. This expression can be used later in an analytical dashboard to monitor the results for the expression.
Prerequisites
- Implement tracking code on your website.
Process
In this use case, you will go through the following steps:
- Create aggregates that count the number of page visits of items in two specific categories - each aggregate calculates page visits to one category.
- Create an expression that returns values:
women
,men
, andunknown
depending on the number of page visits in the categories selected in the aggregates. - Create an analytical dashboard.
Create aggregates
In this part of the process, create two aggregates that count the number of page visits of items in two specific categories - each aggregate calculates page visits to one category.
- Go to Analytics > Aggregates > Create aggregate.
- As the aggregate type, select Profile.
- Enter the name of the aggregate.
- Set Analyze profiles by to Count.
- Click Choose event.
- From the dropdown list, select page.visit.
- Click + where.
- Find the category parameter.
- From the logical operator dropdown list, select Equal.
- In the text field, enter
women
.
Important: Modify this name of the parameter according to the actual values of the category parameter you send to Synerise. - As the time range, select Lifetime.
- Click Save.
- Repeat steps from 1 to 11. In step 8, replace
women
withmen
.
Create an expression
In this part of the process, create an expression that returns values: women
, men
, and unknown
depending on the number of page visits in the categories selected in the aggregates.
- Go to Analytics > Expressions > New expression.
- Enter the name of the expression.
- Leave the selection of the Expression for option at default (Attribute).
- Create the following formula:
Explanation of the expression logic
The expression creates the following logic:
- If the number of page visits in the
women
category is higher, returnwomen
. - If the above condition is not met:
- If the number of page visits in the
men
category is higher, returnmen
. - If the above condition is not met, return
unknown
.
- If the number of page visits in the
- If the number of page visits in the
- To complete the expression, click Save.
- To check the result of the expression for individual customers, click the Preview tab. In the search box, enter the email of a customer.
Create an analytical dashboard
You can add this expression to the analytical dashboard and monitor the result of the expression for individual customers.
- Go to Analytics > Dashboards > New dashboard.
- Click the icon on the dashboard.
- Double-click the expression added to the dashboard.
- On the right side, from the dropdown list, select the expression you created.
- Click the icon.
- Enter the ID of a customer.
- Click Apply.
Check the use case set up on the Synerise Demo workspace
Check the configuration of analyses created in this expressions on Synerise Demo workspace:
- Aggregate that returns the number of page visits to women’s category.
- Aggregate that returns the number of page visits to men’s category.
- Expression that returns preferred item category.
- Analytical dashboard that uses the expression.
If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.