Analyze customer’s preferred item category

Published November 08, 2021
Modules
Difficulty

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


Process


In this use case, you will go through the following steps:

  1. Create aggregates that count the number of page visits of items in two specific categories - each aggregate calculates page visits to one category.
  2. Create an expression that returns values: women's, men's, and unknown depending on the number of page visits in the categories selected in the aggregates.
  3. 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.

  1. Go to Analytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. Select the Count option.
  4. Click Choose event.
  5. From the dropdown list, select page.visit.
  6. Click + where.
  7. Find the category parameter.
  8. From the logical operator dropdown list, select Equal.
  9. In the text field, enter women's.
    Important: Modify this name of the parameter according to the actual values of the category parameter you send to Synerise.
  10. As the time range, select Lifetime.
  11. Click Save.
    The construction of the first aggregate
    The construction of the first aggregate
  12. Repeat steps from 1 to 11. In step 8, replace women's with men's.
    The construction of the second aggregate
    The construction of the second aggregate

Create an expression


In this part of the process, create an expression that returns values: women's, men's, and unknown depending on the number of page visits in the categories selected in the aggregates.

  1. Go to Analytics > Expressions > New expression.
  2. Enter the name of the expression.
  3. Leave the selection of the Expression for option at default (Attribute).
  4. Create the following formula:
    The construction of the expression
    The construction of the expression
    Explanation of the expression logic

    The expression creates the following logic:

    • If the number of page visits in the women's category is higher, return women's.
    • If the above condition is not met:
      • If the number of page visits in the men's category is higher, return men's.
      • If the above condition is not met, return unknown.

  5. To complete the expression, click Save.
  6. 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.

  1. Go to Analytics > Dashboards > New dashboard.
  2. Click the Expression icon icon on the dashboard.
  3. Double-click the expression added to the dashboard.
  4. On the right side, from the dropdown list, select the expression you created.
  5. Click the Dynamic key icon icon.
  6. Enter the ID of a customer.
  7. Click Apply.
    The result of the expression in the analytical dashboard for an example customer
    The result of the expression in the analytical dashboard for an example customer

Check the use case set up on the Synerise Demo workspace


Check the configuration of analyses created in this expressions on Synerise Demo workspace:

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.

Read more


😕

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.

Close modal icon Placeholder alt for modal to satisfy link checker