Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Peerius tracking tag

Describes how to configure tracking for recommendations content.

For Optimizely servers to supply personalized content to your site, you need to include a link to the Optimizely Recommendations 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 page and Order page :

UAT domains

Replace <sitename> with your site name.

Standalone clients

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

Native clients

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

📘

Note

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

Production domains

  • United Kingdom (UK) cluster – .eu2.productrecs.optimizely.com/tracker/peerius.page
  • Sweden (SE) cluster – <sitename>.peerius.episerver.net/tracker/peerius.page
  • United States West (US) cluster – <sitename>.uswe01.productrecs.episerver.net/tracker/peerius.page

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

<script type="text/JavaScript" 
        src="//sitename.peerius.episerver.net/tracker/peerius.page" 
        charset="UTF-8">
</script>

The sitename 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.