Test Recommendations

Magento Commerce only

The content on this page is for Magento Commerce only. Learn more

Before you deploy recommendations to your production environment, you should test on a non-production environment to ensure everything is working as expected.

When testing recommendations in a non-production environment, it is likely you will not have any behavioral data from shoppers. Therefore, the best recommendations to test are those that do not rely on any behavioral data or data that requires inputs.

The following recommendation types are listed in the recommended order when testing in a non-production environment:

  1. More like this - Does not require any input data. Uses a direct content similarity match.
  2. Most Viewed - Requires minimal input data. Testers need to view products.
  3. Viewed this, viewed that - Requires multiple testers to view multiple products.
  4. Bought this, bought that - Requires multiple testers to purchase multiple products.

Testing recommendations on a non-production environment

  1. Deploy the magento/product-recommendations module to a non-production environment where the catalog data is similar to your production catalog.

  2. Use one of the non-production SaaS Environment IDs for configuration in the Magento Admin.


  • The non-production SaaS Environment ID identifies an isolated environment in which the resulting product recommendations will be based entirely on the behavioral data generated on the associated storefront.

  • Because you will not have large amounts of behavioral data, input data for computing product associations is sparse. However, that data is still sent to Sensei to compute the machine learning models and provide recommendations based on data you generated within this environment.