---
title: PeeriusCallbacks variable
slug: product-recommendations/docs/peeriuscallbacks-variable
docTags: 
createdAt: 2026-07-30T20:41:31.415Z
---

The `PeeriusCallbacks` JavaScript variable must be present before the Optimizely Recommendations script (detailed in [JSON tracking](docId\:H3st8DQdjd5RP1k3ff41j) is loaded. This variable contains JSON data related to the page impression and methods to render recommendations.

```javascript
// 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"	
      }
```
