Predictive Sort

Predictive Sort enables you to deliver tailored and relevant search results to shoppers via the predictive intelligence powered by Commerce Cloud Einstein.

This capability is available for the following types of search:

Predictive Sort combines the existing Commerce Cloud B2C Commerce Sorting Rule approach with Einstein to calculate the affinity of an individual customer to your products via the following three data sources:

How Predictive Sort Works

The B2C Commerce Activity Tracking tracks shoppers. Based on a shopper's behavior and affinity to products, a cookie is saved on their device that includes their assignment to specific products. This assignment can change within a session and works for both registered and anonymous users. As data is collected, Predictive Sort learns about each shopper and increases the personalized sorting experience for them.

See Configure Predictive Sort.

Performance Considerations

Personalization services can impact your page performance, but it does not affect the performance of the search-show pipeline. Predictive Sort however, has caching considerations for the rendering templates and search requests.

Important: B2C Commerce strongly recommends that you follow the Performance Best Practices.

Rendering Templates

Because every shopper sees a personalized sort of their search result set (search hits), caching the position of the search-hits on the product grid isn't possible. B2C Commerce automatically overrides the related caching tag defined in the rendering template. There is no need for you to modify the caching setup in the rendering temples.

The caching of search hit positions in the grid is disabled by default only if requests include a sorting rule that includes the Predictive Sort sorting attribute. This means that non-personalized sorting still uses the default caching configuration.

For example, if you assign the Predictive Sorting Rule as the default sorting rule to only the Sales Category, only caching for the Sales Category Product Listing Page is disabled. If you configure an A/B test with 5% traffic to the Predictive Sorting Rule, caching is only disabled for these 5% of requests.

Search Requests

To use Predictive Sort, you must modify your ISML templates to use the iscache if attribute. By changing the template, search requests using a sorting rule with Predictive Sort are no longer cached.

A/B Testing

Refer to Setting A/B Test Preferences.

Configure Predictive Sort

Predictive Sort delivers more tailored and relevant search results to shoppers via the predictive intelligence powered by Commerce Cloud Einstein.

Important: The Predictive Sort attribute is exposed on all Primary Instance Groups. However, to use personalized product sorting, you must take extra configuration steps. Contact your Commerce Cloud B2C Commerce Customer Success Manager (CSM) to request access to Predictive Sort.
  1. Determine if you already use B2C Commerce Predictive products.
    • If you already use Predictive Recommendations, no further configuration is required.
    • If you don't use Predictive products, you must activate Predictive Sort on your instances via B2C Commerce Support and then perform a one-time export of the necessary data to Predictive Intelligence.
  2. Modify your application for caching.

    See Predictive Sort Performance Considerations.

    Developer documentation and reference materials are available in English only.

    Refer to the English-language Infocenter https://documentation.b2c.commercecloud.salesforce.com to access this information.

  3. Use the Predictive Sort attribute in standard sorting rules.
    1. To add a new sorting rule, go to site > Merchant Tools > Search > Sorting Rules and click New.
    2. Click Add in the new sorting rule.
    3. Click the entry field down arrow.
    4. Select Predictive Sort in the Standard attributes section.
    5. Select Text Relevancy: Yes or No.
    6. Select the sorting direction: Descending.
    7. Click Apply.
  4. Use the Predictive Sort attribute in a dynamic sorting rule.
    1. Go to site > Merchant Tools > Search > Sorting Rules, and click the Dynamic Attributes icon.
    2. On the Dynamic Attributes window, click New to add a new dynamic attribute, or select an attribute from the top section to edit.
    3. Click Add.
    4. Click the entry field down arrow.
    5. Select Predictive Sort in the Standard attributes section.
    6. Select the sorting direction: Descending.
    7. Select Minimum as the default value.
    8. Click Apply.