Loading...
Area: Episerver Product Recommendations
Applies to versions: 1.0 and higher (JavaScript API)

A/B testing notes

Recommendations [hide]

Consider the case where an A/B test is set up to compare Episerver recommendations with your existing recommendations. In this case, set the abTestContent attribute in the tracking request to full, and define implementations for the info and smartRecs callback functions.

The smartRecs callback is called whenever a visitor is a member of the test group set up to show Episerver product recommendations. If the visitor is a member of the test group that is set up to show your own product recommendations, the smartRecs callback is not called.

The info callback is called regardless of the test group to which the visitor belongs. If the configs attribute contains a configuration for the test group reported in the group property, Episerver product recommendations are shown to this visitor, and no further action needs to be taken. If the group property does not match one of the configurations, no Episerver product recommendations are shown. Instead, you should execute JavaScript code to show your own product recommendations.

Do not rely on the group property alone to decide when your own product recommendations should be shown. For example, you write your info callback to show your product recommendations whenever the visitor's group is set to A. When the current A/B test ends and another begins which compares two competing Episerver configurations, your site displays both Episerver and your own product recommendations to visitors in the A group.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Nov 06, 2017

Recommendations [hide]