Area: Optimizely Product Recommendations
Applies to versions: 1.4 and higher (JavaScript API)
Other versions:

PeeriusCallbacks variable

Recommended reading 

The PeeriusCallbacks JavaScript variable must be present before the Optimizely Personalization script (detailed in JSON tracking) is loaded. This variable contains JSON data related to the page impression and methods to render recommendations.

// this should be included in all pages
var PeeriusCallbacks=
    track      : { 
    	           //tracking JSON her e
    smartRecs  : function(jsonData) { 
	  	                      // your recommendation rendering code here
    info       : function(jsonData) {
  		                      // can be used for A/B test information
    apiVersion : "v1_4"	
Do you find this information helpful? Please log in to provide feedback.

Last updated: Nov 06, 2017

Recommended reading