If Optimizely Product Recommendations were configured by Optimizely for a page being tracked, a list of product recommendations is returned in the message.
The contents are returned in the
smartRecs element at the root of the JSON response. The element contains product recommendations generated by the Optimizely recommendations engine. These product recommendations are grouped by widget.
The value of
smartRecs is a list of recommendation widget elements. These elements have the following properties.
|Name||Description and usage|
Name of the widget.
Use for information only; it may vary during A/B testing. To determine where to place a widget on the page, use the position attribute.
Alias of the widget.
Use for information only.
Name of the page position for this widget.
Use to determine the page position in which to show this widget.
|recs||A list of recommendations.|
URL of the product image.
URL to the item's product page.
Product reference code.
|prices||A map in which the key is the currency name (such as USD, GBP, and so on) and the value is a map with unitPrice and salePrice properties.|
The price per unit of the item.
The sale price of the item.
Optimizely recommendation ID.
|attributes||A list of attributes and their values.
Attributes required in the request. See Recommendations configuration.
To configure output details for the recommended product in the request, use the
recContent request parameter.
Updated 24 days ago