Providing product recommendations

Product Recommendations provides personalized product recommendations to visitors of your Commerce website. The product recommendations are displayed in a widget for which Optimizely sets up individual strategies according to your KPIsStands for "key performance indicator" (also known as a conversion goal); the measurement of actions on web pages. The actions can be completed purchases, pages visited, time spent on site and so on. during the setup process. By using the Product Recommendations interface, you can refine Optimizely's algorithms, set up time-limited campaigns or overwrite strategies according to your needs.

This user scenario first gives you a rough overview of the installation process. Then it will provide you with four example scenarios on how to set up Product Recommendations campaigns in the Product Recommendations interface.

Installing Product Recommendations

The installation of Product Recommendations consists of the following steps:

  • Installing the Product Recommendations environment
  • Installing the native integration package via NuGet feed
  • Configuring a scheduled job to export your product catalog to Product Recommendations
  • Activating the widgets in your Commerce project
  • Setting up tracking

As a first step, Optimizely provides your developer or administrator with the Product Recommendations environment that is needed to receive tracking data and to deliver recommendations. You will also receive the required scripts, configuration keys and credentials to configure tracking for your project.

After the Product Recommendations environment is set up, you must install and configure the native integration package EPiServer.Personalization.Commerce that is available through the Optimizely NuGet feed. The package also contains the integration APIs for Commerce. For an overview of all available APIs, see Recommendations API overview. For detailed information on the available NuGet packages, see Install and configure personalization.

In a next step, Product Recommendations needs to import the products of your catalog. Select Export product feed in the CMS admin interface and set up an export job that runs every 24 hours to keep your Product Recommendations up-to-date. For more information, see Exporting your catalog to Optimizely Product Recommendations.

Image: Export product feed in the CMS admin interface

To deliver product recommendations to your website, a developer has to activate the product recommendation widgets. Your project might have several widgets with different strategies for different page types.

In addition, to provide matching recommendations, Product Recommendations needs to track your visitor's activities over time. Product Recommendations accomplishes this by assigning visitors a consolidated user ID (CUID), which is stored in a cookie. See Tracking and recommendations to learn how to set up tracking for Product Recommendations.

Example campaigns in the Product Recommendations interface

In the following four sample scenarios you want to set up individual time-limited campaigns:

  1. Recommendations on the home page and recommending a matching product set
  2. Recommending matching accessories for a product
  3. Excluding products
  4. Recommending only high rated products

All attribute and value names are freely configurable and may be named different in your solution.

Example 1: Recommending a product set

A new collection of women's bags hit your store. You would like to set up the following recommendation scenario:

  1. Recommending women's bags on the shop's home page
  2. Recommending a matching product set if a specific bag was added to the shopping cart

Step 1: Recommendations on the home page

  1. Go to the Product Recommendations interface and click the Configuration tab in the upper menu bar.

    Image: Configuration tab

  2. In the Campaigns view, click the Create a new campaign button.
  3. In the Details tab:
    1. Enter a significant name for the campaign, for example Home bags rec.
    2. In the Widget location drop-down list, select Home page.
    3. In the Widget position drop down list, select the widget that is to deliver the recommendations.

      By default, only one product recommendation widget is available.

  4. In the Recommendation rules tab select Category equals to Womens>Womens Handbags.

  5. Drag the rule onto one or more product positions, depending on the configuration in your widget.
  6. In the Activation and preview tab, add additional information like the time period and time when the recommendations are to be displayed.
  7. Click Save campaign.
  8. In the Campaigns management view, click the activation icon of your campaign.

    Image: Click the activation button

  9. Check your website. On the home page of our shop site, a collection of women's bags is displayed.

Step 2: Recommending a product set

In the next step, you want to recommend a matching product set if visitors click a bag of a certain brand and add it to the shopping cart. On the basket page, they will see recommendations for matching shoes, a light dress, a short sleeve and a pant.

  1. Go to the Product Recommendations interface and click the Configurations tab in the upper menu bar.
  2. In the Campaigns view, click the Create a new campaign button.
  3. In the Details tab:
    1. Enter a significant name for the campaign, for example [brand name] basket set, as this campaign is set up exclusively for the Sun N Sand brand in your store.
    2. In the Widget location drop-down list, select Basket page.
    3. In the Widget position drop down list, select the widget that is to display the recommendations. If you have only one product recommendation widget on your product pages, only one widget will be displayed in the drop-down list. 

    Image: Details tab in the basket page recommendations campaign

  4. As the product set should only be recommended if a certain criteria is met, you need to set up a master rule:
    1. Click the Master rules tab.
    2. Select Brand equals to [brand name]
    3. Click the + icon to add an expression.
    4. Select category equals to Womens handbag.
    5. Select the AND condition as both criteria must be met at the same time.

  5. Click the Recommendation rules tab and remove the default recommendation rule.
  6. Click Hand-pick rule and select Product set equals to Add new Product set.

    Alternatively, you can click Product set in the left menu pane and click Create a product set.

  7. In the Create a product set window, enter a name for the product set and add products by clicking into the field and typing a name. Alternatively, you can upload a CSV file. Then, click Save product set.

  8. Drag the rule onto one or more product positions, depending on the configuration in your widget.
  9. In the Activation and preview tab, add additional information like the time period and time when the recommendations are to be displayed.
  10. Click Save campaign.
  11. In the Campaigns management view, click the activation icon of your campaign.
  12. Check your basket page: If visitors add the women's bag that you configured in the master rule to their shopping cart and continue to the basket page, they will see the product set as shown on the image:

    Image: Product set on the basket page

Example 2: Recommending matching accessories for a product

If you sell printers in your store, you might want to recommend matching printer cartridges on the printer's product page. Or, if you sell e-bikes, you might want to recommend e-bike batteries on the e bike page.

  1. Go to the Product Recommendations interface and click the Configuration tab in the upper menu bar.
  2. In the Campaigns view, click the Create a new campaign button.
  3. In the Details tab:
    1. Enter a significant name for the campaign, for example ebike rec.
    2. In the Widget location drop-down list, select Product page.
    3. In the Widget position drop down list, select the widget that is to display the recommendations. If you have only one product recommendation widget on your product pages, only one widget will be displayed in the drop-down list. 
  4. In the Master rules tab, select category equals to ebikes.
  5. In the Recommendation rules tab select term equals to ebike batteries.
  6. Drag the rule onto one or more product positions, depending on the configuration in your widget.
  7. In the Activation and preview tab, add additional information like the time period and time when the recommendations are to be displayed.
  8. Click Save campaign.
  9. In the Campaigns management view, click the activation icon of your campaign.

Example 3: Excluding products

You have a new kids section on your website and do not want to recommend beverages on these pages as they bare the potential to contain alcohol.

  1. Go to the Product Recommendations interface and click the Configuration tab in the upper menu bar.
  2. In the Campaigns view, click the Create a new campaign button.
  3. In the Details tab:
    1. Enter a significant name for the campaign, for example no beverages rec.
    2. In the Widget location drop-down list, select Product page.
    3. In the Widget position drop down list, select the widget that is to display the recommendations. If you have only one product recommendation widget on your product pages, only one widget will be displayed in the drop-down list. 
  4. In the Master rules tab, select category equals to Kids. If you have multiple kids sites such as kids shoes and kids shirts, add expressions by clicking the + icon. Use the OR condition to ensure that only one of the configured rules must be met.
  5. In the Recommendation rules tab select r.type1 NOT equals to beverages.
  6. Drag the rule onto a product position.
  7. In the Activation and preview tab, add additional information like the time period and time when the recommendations are to be displayed.
  8. Click Save campaign.
  9. In the Campaigns management view, click the activation icon of your campaign.

Example 4: Recommending only high rated products

Your store supports customer reviews on product pages with the highest ranking being five stars. You can set up a rule to only recommend products with a minimum rating of four stars.

As this is a general rule for which no condition must be met, you do not need to set up a master rule.

  1. Go to the Product Recommendations interface and click the Configuration tab in the upper menu bar.
  2. In the Campaigns view, click Create a new campaign.
  3. In the Details tab:
    1. Enter a significant name for the campaign, for example high rates rec.
    2. In the Widget location drop-down list, select Product page.
    3. In the Widget position drop down list, select the widget that is to display the recommendations. If you have only one product recommendation widget on your product pages, only one widget will be displayed in the drop-down list. 
  4. In the Recommendation rules tab select customerrates greater than 3.
  5. Drag the rule onto a product position.
  6. Add additional information like the time period in the Activation and preview tab.
  7. Click Save campaign.
  8. In the Campaigns management view, click the activation icon of your campaign.