HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

PeeriusCallbacks variable

This topic describes the PeeriusCallbacks variable, which contains JSON data related to the page impression and methods to render recommendations.

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" 
      }

What’s Next
Did this page help you?