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

Peerius tracking tag

Recommended reading 

For Optimizely servers to supply personalized content to your site, you need to include a link to the Optimizely Personalization JavaScript integration code in all pages of your UAT and live websites.

When you first configure your site to use JSON, include the following tag on all pages of your UAT site (including checkout and order confirmation pages):

<script type="text/JavaScript" src="//uat.peerius.com/tracker/peerius.page" charset="UTF-8"></script>

Note: Ensure that the UAT script is placed on your UAT site.

You need to add the production version of the script to your live site in the same way:

<script type="text/JavaScript" src="//clientname.peerius.com/tracker/peerius.page" charset="UTF-8"></script>

The clientname element is provided by Optimizely.

Note: Do not add the above script inside <div> tags, because it may cause Internet Explorer to crash.

Position this tag just above the </body> tag, before any Google Analytics scripts or slow-loading social media tags.

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

Last updated: Nov 06, 2017

Recommended reading