---
title: Algorithms for widgets
slug: product-recommendations/docs/algorithms-for-widgets
docTags: 
createdAt: 2026-07-30T20:41:31.037Z
---

Algorithms determine which products a widget recommends. You can add up to 11 algorithms to a widget to support your recommendation strategy.

Each algorithm entry includes:

- **Description** – The predefined logic the algorithm uses to recommend products.
- **Compatible page types** – The pages where you can use the algorithm.

You can apply [quick filters](docId\:fEZs5N4mm0r7o_ToL839S) and [advanced filters](docId:-TfhXXLAeMfX0v3UQ5AI4) to any algorithm to further personalize its recommendations.

You should always have a fallback algorithm that is guaranteed to return recommendations when the other algorithms with more specific filters do not return a recommendation.

:::hint{type="warning"}
**Important**

You should always have a fallback algorithm that is guaranteed to return recommendations when the other algorithms with more specific filters do not return a recommendation.
:::

## Abandoned basket

- **Description** – Products abandoned in the user's basket.
- **Page types** – All

## Added to basket after viewing

- **Description** – Products added to the basket after viewing the current product.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Added to basket after viewing + smart score

- **Description** – Products with the highest score and likelihood to be added to the basket after viewing the current product.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Added to basket after viewing + smart filter

- **Description** – Products added to the basket after viewing the current product with the most statistically significant filter applied.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Added to basket from same category after viewing current product + smart filter

- **Description** – Products from the same category added to the basket after viewing the current product with the most statistically significant filter applied.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Added to basket after viewing by segment

- **Description&#x20;**– Products added to the basket after viewing the current product, broken down by customer segment. 
- **Page types&#x20;**– Product, Basket, Checkout, WishList, Order 

## Basketed together

- **Description** – Products added to the basket alongside the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Basketed together + smart filter

- **Description** – Products added to the basket alongside the product currently being viewed with the most statistically significant filter applied.
- **Page types** – Product, Basket, Checkout, WishList, Order

## Bestsellers by brand

- **Description** – Products that sold the most for the specified brand.
- **Page types** – All

## Bestsellers by units sold

- **Description** – Products with the most units sold.
- **Page types** – All

### Bestsellers by units sold in last 2 days

- **Description** – Products with the most units sold within the last 2 days.
- **Page types** – All

### Bestsellers by units sold in last 24 hours

- **Description** – Products with the most units sold within the last 24 hours.
- **Page types** – All

### Bestsellers by units sold in last 7 days

- **Description** – Products with the most units sold within the last 7 days.
- **Page types** – All

### Bestsellers by units sold + smart filter

- **Description** – Products with the most units sold with the most statistically significant filter applied.
- **Page types** – All

### Products in any category with most units sold

- **Description** – Products from any category that have the most units sold.
- **Page types** – All

### Bestseller by customer segments

- Description – Products with the most units sold, by customer segment.
- Page types – All
- Variants – Two segment-matching variants are available:
  - OR – Recommends products to shoppers who belong to any selected segment.
  - AND – Recommends products only to shoppers who belong to all selected segments.

:::hint{type="info"}
**Note**

As of version 1.4, a new field in the tracking request lets you handle your customers in the tracking requests. If you are using the Server-to-Server API integration for tracking, see [Common elements](docId\:d2LXrEmF9UnHTPEhEG-2R). Scroll down to the customer section to view the code and the definitions of customerID and segmentID. If you are using the JavaScript API integration, see [JSON variable tracking format](docId:5_o6uKBrNt9zvGzY-Yflb). Scroll down to the `customer` (optional) section.
:::

## Bestsellers from category previously purchased

- **Description** – Products with the most units sold from a category previously purchased with the most statistically significant filter applied.
- **Page types** – All

## Bought together

- **Description** – Products purchased alongside the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Bought together (B2B)

- **Description** – Products related to the user's industry purchased alongside the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Bought together + smart filter

- **Description** – Products purchased alongside the product currently being viewed with the most statistically significant filter applied.
- **Page types** – Product, Basket, Checkout, WishList, Order

## Discounted products previously purchased

- **Description** – Products the user previously purchased that are discounted.
- **Page types** – All

## Discounted products previously viewed

- **Description** – Products the user previously viewed that are discounted.
- **Page types** – All

## Discounted products related to previous purchases

- **Description** – Products related to previous purchases that are discounted.
- **Page types** – All

## Discounted products related to previously viewed

- **Description** – Products related to what the user previously viewed that are discounted.
- **Page types** – All

## Emerging new products

- **Description** – New products with the highest increase in sales.
- **Page types** – All

## Emerging products

- **Description** – Products with the highest increase in sales.
- **Page types** – All

## Emerging products related to previous purchases

- **Description** – Products that have the highest increase in sales related to previous purchases.
- **Page types** – All

## Emerging products related to previous views

- **Description** – Products that have the highest increase in sales related to what the user previously viewed.
- **Page types** – All

## Fallback recommendations

- **Description** – Recommendations from the most popular algorithms.
- **Page types** – All

## Highest converting products

- **Description** – Products with the highest conversion rate.
- **Page types** – All

### Highest converting products in the last 24 hours

- **Description** – Products with the highest conversion rate in the last 24 hours.
- **Page types** – All

## Highest converting products when viewed together

- **Description** – Products with the highest conversion rate that are typically viewed in the same session as the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order

## Highest revenue generating products

- **Description** – Products with the most revenue generated.
- **Page types** – All

### Highest revenue generating products in last 24 hours

- **Description** – Products with the most revenue generated in the last 24 hours.
- **Page types** – All

### Highest revenue generating products in last 30 days

- **Description** – Products with the most revenue generated in the last 30 days.
- **Page types** – All

## Highest revenue generating products per view

- **Description** – Products with the most revenue generated per view.
- **Page types** – All

## Manual recommendations from CSV file

- **Description** – Manually recommend products defined by a CSV file.
- **Page types** – All

## Most likely to be purchased

- **Description** – Products the user is most likely to purchase.
- **Page types** – All

## Most ordered products

- **Description** – Products that are ordered the most.
- **Page types** – All

### Most ordered products in last 30 days

- **Description** – Products that were ordered the most in the last 30 days.
- **Page types** – All

### Most ordered products in last 7 days

- **Description** – Products that were ordered the most in the last 7 days.
- **Page types** – All

## Most viewed products

- **Description** – Products that are viewed the most.
- **Page types** – All

## New products

- **Description** – Products recently added to the product catalog.
- **Page types** – All

## New products related to previous purchases

- **Description** – New products that are related to previous purchases.
- **Page types** – All

## New products related to previously viewed

- **Description** – New products that are related to what the user previously viewed.
- **Page types** – All

## Popular products added to basket

- **Description** – Products frequently added to the basket.
- **Page types** – All

### Popular products added to basket + smart filter

- **Description** – Products frequently added to the basket with the most statistically significant filter applied.
- **Page types** – All

## Popular with previously basketed products

- **Description** – Popular products related to what the user previously added to the basket.
- **Page types** – All

## Popular with previously purchased products

- **Description** – Popular products related to what the user previously purchased.
- **Page types** – All

## Popular with previously viewed products

- **Description** – Popular products related to what the user previously viewed.
- **Page types** – All

## Popular with previously viewed products + attribute boost

- **Description** – Popular products related to what the user previously viewed, boosted by attributes (brand, color, discount, term, type).
- **Page types** – All

## Purchased after viewing

- **Description** – Products typically purchased after viewing the current product.
- **Page types** – Product, Basket, Checkout, WishList, Order

## Purchased after viewing by segment

- **Description** – Products commonly purchased after viewing by customers belonging to the same segment.
- **Page types&#x20;**– Product, Basket, Checkout, WishList, Orde&#x72;**&#xA0;**

## Purchased by similar users

- **Description** – Products a user is most likely to purchase based on purchases of similar users.
- **Page types** – All

## Purchased with recently basketed

- **Description** – Products purchased alongside the products the user previously added to the basket.
- **Page types** – All

## Purchased with recently purchased

- **Description** – Products purchased alongside the products the user previously purchased.
- **Page types** – All

## Random products with same brand as product viewed

- **Description** – Products randomly selected that have the same brand as the product currently viewed.
- **Page types** – Product, Basket, Attribute, Brand

## Random products with same category as product viewed

- **Description** – Products randomly selected from the same category as the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order, Category

## Random products with same type as product viewed

- **Description** – Products randomly selected with the same type attribute as the product currently being viewed.
- **Page types** – Product, Basket, Attribute

## Random products with similar attributes as product viewed

- **Description** – Products randomly selected with the same attributes as the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order

## Recently published 

- **Description** – Products published based on the date you specify.
- **Page types** – All

### Recently published + newly published only filter

- **Description** – Products published earlier than the specified number of days ago. The default is 60 days.
- **Page types** – All

## Recently purchased

- **Description** – Products the user recently purchased.
- **Page types** – All

### Recently purchased + filters

- **Description** – Products the user recently purchased prioritized by quantity purchased.
- **Page types** – All

## Recently viewed

- **Description** – Products the user recently viewed.
- **Page types** – All

## Recently viewed + optional filters

- **Description** – Products the user recently viewed with the option to determine how far back the data looks and how many views are required before recommending.
- **Page types** – All

## Related to search term

- **Description** – Products related to a search term the user entered.
- **Page types** – All

## Viewed together

- **Description** – Products viewed alongside the product currently being viewed.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Viewed together + smart filter

- **Description** – Products viewed alongside the product currently being viewed with the most statistically significant filter applied.
- **Page types** – Product, Basket, Checkout, WishList, Order

### Viewed together by segment

- **Description** – Products commonly viewed together by shoppers in the same segment. Recommendations use viewing behavior from the shopper's own segment only.
- **Page types** – Product, Basket, Checkout, WishList, Order
- **Variants** – Two segment-matching variants are available:
  - **OR** – Recommends products to shoppers who belong to any selected segment.
  - **AND** – Recommends products only to shoppers who belong to all selected segments.

## Bestsellers by units sold with the same category in last 7 days

- **Description** – Products in the same category with the most units sold within the last 7 days with the most statistically significant filter applied.
- **Page types** – All

## Bestsellers by units sold with the same category + smart filter

- **Description** – Products in the same category with the most units sold and the most statistically significant filter applied.
- **Page types** – Product, Basket, Checkout, WishList, Order, Category

## Random

- **Description** – Random products from the product catalog that can be filtered and sorted.
- **Page types** – All

## Product Catalog

- **Description** – Random products from the product catalog.
- **Page types** – All
