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, men, 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 icon Analytics > Aggregates > Create aggregate.
  2. As the aggregate type, select Profile.
  3. Enter the name of the aggregate.
  4. Set Analyze profiles by to Count.
  5. Click Choose event.
  6. From the dropdown list, select page.visit.
  7. Click + where.
  8. Find the category parameter.
  9. From the logical operator dropdown list, select Equal.
  10. 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.
  11. As the time range, select Lifetime.
  12. Click Save.
    The construction of the first aggregate
    The construction of the first aggregate
  13. Repeat steps from 1 to 11. In step 8, replace women with men.
    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, men, 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 category is higher, return women.
    • If the above condition is not met:
      • If the number of page visits in the men category is higher, return men.
      • 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