HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

PeeriusCallbacks variable

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 Recommendations 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 here        
       
        }, 
        "smartRecs"  : function(jsonData) { // your recommendation rendering code here },
        "info"       : function(jsonData) { // can be used for A/B test information    },
        "apiVersion" : "v1_4"	
      }