---
schema_version: "1"
id: 480c9560fdf07ab39f8b55df2485a9149e87e059d5669b7dac83beecf6560d1a
title: B2C Commerce Einstein Recommender Strategies
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_recommender_strategies.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_recommender_strategies.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fef5dea6b35619a6e2273ce74edb6e7134a03de6b5976f0b572b4c6a5e8cf29b
description: After determining which recommenders you plan to use, specify recommendation strategies.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# B2C Commerce Einstein Recommender Strategies

After determining which recommenders you plan to use, specify recommendation strategies.

_Strategies_ represent different approaches―different algorithms―for generating lists of recommendations (product IDs). When generating a list of recommended product IDs, B2C Commerce Einstein employs one or more of the strategies listed in the table.

The best practice is to select at least a primary strategy and a secondary (fallback) strategy. But select up to three strategies. Strategies apply in the order that you select them. In the rare case the first strategy doesn't return recommendations or has insufficient data to produce high-quality results, the second strategy backfills to send recommendations to the page.

The order of strategies matters. The first strategy listed takes priority over the second strategy, which the system uses only if the first strategy fails to generate enough recommendations. The second strategy takes priority over the third strategy, and so on.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note Configuring too many restrictive rules can constrain the recommender results.

This table lists the supported strategies, a brief description, and the recommender type for which the strategy is available.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d230423e54">Strategy</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d230423e57">Description</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d230423e60">Available for recommender types</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Customer recently viewed items</td>

          <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e57 ">
            <p style="margin-bottom:0;">Generates recommendations based on items that the customer recently
              viewed.</p>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 ">Recently viewed</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Customers who viewed also viewed</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p style="margin-bottom:0;">Generates recommendations by analyzing the viewing behavior of other
              customers who viewed the same product.</p>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 ">Product to Product</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Customers who viewed ultimately bought</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p style="margin-bottom:0;">Generates recommendations by analyzing the purchasing behavior of other
              customers who viewed the same product.</p>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 ">Product to Product</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Customers who bought also bought</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p style="margin-bottom:0;">Generates recommendations by analyzing the purchasing behavior of other
              customers who bought the same product.</p>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 ">Product to Product</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Recent top sellers</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p>Generates recommendations by analyzing the revenue for products recently
              purchased by other customers.</p>
            <p>This strategy provides a selectable timespan with the following options:</p><a name="b2c_recommender_strategies__ul_jpp_yky_cmb"><!-- --></a>
            <ul id="b2c_recommender_strategies__ul_jpp_yky_cmb">
              <li>Realtime: Identical to the pre-existing Recent Top-Selling Products
                strategy model, this strategy provides real-time approximation for top
                revenue-producing products, aggregated by user geographical location and
                device. It uses a dynamically calculated time window (on average, a
                rolling 7 days) to ensure sufficient data to produce quality
                recommendations.</li>

              <li>7 Days: This strategy uses a rolling, 7-day time window that updates
                daily to return recommendations that are similar to top revenue-producing
                products found in your weekly sales reporting. </li>

              <li>30 Days: This strategy uses a rolling, 30-day time window that updates
                daily to return recommendations that are similar to top revenue-producing
                products found in your weekly sales reporting.</li>

            </ul>
            <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
              <div class="slds-media slds-media_responsive">
                <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png" alt="Note"></span></div>
                <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> For categories with low sales, some situations can result in
                  recommendations not showing when using either the 7-Day or 30-Day
                  options.</div>
              </div>
            </div>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 "><a name="b2c_recommender_strategies__ul_kpp_yky_cmb"><!-- --></a>
            <ul id="b2c_recommender_strategies__ul_kpp_yky_cmb">
              <li>Products in a category</li>

              <li>Products in all categories</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Recent most viewed</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p>Generates recommendations by analyzing which products other customers
              recently viewed.</p>
            <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
              <div class="slds-media slds-media_responsive">
                <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png" alt="Note"></span></div>
                <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> The maximum number of recent most-viewed products is 10.</div>
              </div>
            </div>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 "><a name="b2c_recommender_strategies__ul_lpp_yky_cmb"><!-- --></a>
            <ul id="b2c_recommender_strategies__ul_lpp_yky_cmb">
              <li>Products in a category</li>

              <li>Products in all categories</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Product affinity algorithm</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p style="margin-bottom:0;">Generates recommendations by analyzing the product's similarity to other
              products.</p>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 ">Product to Product</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d230423e54 ">Real-time personalized</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e57 ">
            <p style="margin-bottom:0;">Generates recommendations by analyzing the customer's current and past
              viewing and purchasing behavior.</p>
          </td>

          <td data-label="Available for recommender types" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e60 "><a name="b2c_recommender_strategies__ul_mpp_yky_cmb"><!-- --></a>
            <ul id="b2c_recommender_strategies__ul_mpp_yky_cmb">
              <li>Products to Product</li>

              <li>Products in a category</li>

              <li>Products in all categories</li>

            </ul>
          </td>

        </tr>
      </tbody>
    </table>

Salesforce recommends that you specify at least two strategies, so that if the first strategy fails to return enough recommendations, the system can use the second strategy. Specifying at least two strategies is best practice. However, the _Recently viewed_ recommender type is an exception, as it applies only one strategy.

We recommend using the first strategy based on an individual’s real-time behavior. This table shows strategies that use individual customer experience and history blended with the entire customer base of your site.

  
| Strategy | Anchor Expected | Result |
| --- | --- | --- |
| Product affinity algorithm | product-id | Einstein uses model-generated affinity recommendations based on the purchase history of the entire customer base. |
| Real-time personalized | None | Einstein returns the highest ranked products for a specific user based on the user’s recent browsing history. The most recent four products that the user is most likely to be interested in viewing next appear. |

When choosing a second strategy, choose one that applies to your site's entire customer base. Then use other strategies based on an individual's history. Using multiple strategies provides a more personalized experience for both new and existing customers.

This table shows strategies that use the entire customer base of your site.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:20.37783909997877%">
        <col style="width:17.173636170664402%">
        <col style="width:62.448524729356826%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d230423e326">Strategy</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d230423e329">Anchor Expected</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d230423e332">Result</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e326 ">Customers who viewed also viewed</td>

          <td data-label="Anchor Expected" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e329 ">product-id</td>

          <td data-label="Result" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e332 ">View-to-view correlations</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e326 ">Customers who viewed ultimately bought</td>

          <td data-label="Anchor Expected" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e329 ">product-id</td>

          <td data-label="Result" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e332 ">View-to-buy correlations</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e326 ">Customers who bought also bought</td>

          <td data-label="Anchor Expected" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e329 ">product-id</td>

          <td data-label="Result" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e332 ">Buy-to-buy correlations</td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e326 ">Recent top sellers</td>

          <td data-label="Anchor Expected" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e329 ">category-id or none</td>

          <td data-label="Result" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e332 ">
            <p>Selectable timespan for the products-in-all-categories and
              products-in-a-category recommender types. Choose from the following options:</p><a name="b2c_recommender_strategies__ul_qtk_tdy_cmb"><!-- --></a>
            <ul id="b2c_recommender_strategies__ul_qtk_tdy_cmb">
              <li>Realtime: Identical to the pre-existing Recent Top-Selling Products
                strategy model, this strategy provides real-time approximation for top
                revenue-producing products, aggregated by user geographical location and
                device. It uses a dynamically calculated time window (on average, a
                rolling 7 days) to ensure sufficient data to produce quality
                recommendations.</li>

              <li>7 Days: This strategy uses a rolling, 7-day time window that updates
                daily to return recommendations that are similar to top revenue-producing
                products found in your weekly sales reporting. </li>

              <li>30 Days: This strategy uses a rolling, 30-day time window that updates
                daily to return recommendations that are similar to top revenue-producing
                products found in your weekly sales reporting.</li>

            </ul>
            <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
              <div class="slds-media slds-media_responsive">
                <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png" alt="Note"></span></div>
                <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> For categories with low sales, some situations can result in
                  recommendations not displaying when using either the 7-Day or 30-Day
                  options.</div>
              </div>
            </div>
          </td>

        </tr>
        <tr class="">
          <td data-label="Strategy" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e326 ">Recent most viewed</td>

          <td data-label="Anchor Expected" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e329 ">category-id / none</td>

          <td data-label="Result" class="slds-cell-wrap" style="vertical-align:top;" headers="d230423e332 ">
            <p>Einstein recommends the most viewed products&nbsp;within a specified category or
              from all categories when a category isn’t specified.</p>
            <p style="margin-bottom:0;">Maximum number of recent
              most-viewed products is 10.</p>
          </td>

        </tr>
      </tbody>
    </table>