HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


If the Optimizely Product Recommendations product was enabled for the current page, you can request that additional product attributes (such as star ratings) are supplied in the `smartRecs` callback.

(Script tags will be stripped)




For example, on a product page tracking request, to show all attributes for the recommended products, send the following.





If you want the callback to contain only the attribute "starrating", for each recommended product, send the following.





Additional attributes in product recommendations


This topic shows how to request additional attributes when product recommendations are enabled.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.