When you configure a SaaS data space for Recommendations, the SaaS data space collects catalog data and storefront-behavioral data. Adobe Sensei analyzes that data and computes product associations used to serve Product Recommendations.
Non-production environments for testing or staging usually don’t have the quantity or quality of storefront behavioral data to serve realistic product recommendations. Actual shopper behavior at scale can be captured only in a production environment. To solve this problem, Adobe Commerce allows you to use product recommendations from your production environment with other, non-production SaaS data spaces. Using actual storefront data in a non-production environment allows you to preview the recommendations your shoppers see and experiment with different recommendation types and placement locations. Recommendations from a different SaaS data space can be previewed by shoppers, but not clicked.
Staging orders are recorded using the staging
environmentId. It does not affect production data. The production data is retrieved using the
When using Product Recommendations through REST, the
alternateEnvironmentId parameter can be used to specify other dataspaces. When using Product Recommendations through GraphQL, this parameter is not available.
To change the source of your product recommendations data, choose the SaaS data space with the behavioral data that you want to use. Before you begin, make sure that:
Log in to the Admin of your non-production Adobe Commerce environment.
On the Admin sidebar, go to Marketing > Promotions > Product Recommendations.
In the Recommendations source section, enable the Fetch recommendations from a different SaaS data space option. The Recommendations source section only appears in a non-production environment.
A list of Available SaaS Data Spaces appears.
Select the SaaS data space that has shopper data you want to use.
Click Save changes.
Adobe Commerce now fetches recommendations from the selected data space.
While you can view recommendations fetched from another SaaS data space on the non-production storefront, you cannot click the recommendations.
In the Recommendations source section, click Edit Configuration.
Follow the instructions to configure a new Commerce service.
In the Visual Recommendations section, set Enable Visual Recommendations to the active position.