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

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Show full info

Shows how to configure full information for an A/B test.

To request full A/B test information, set the abTestContent attribute in the tracking request to full.

track={ type : "home", lang : "en-gb", channel : "web", abTestContent : 'full' }

This results in the info callback being called with the following JSON data passed in.

Name Description and usage
abtest An array of A/B test product records.
  <productname> The product name where <productname> is smartRecs.
       

name

[String]

A/B test name.
    group [String]

The group assigned to the current visitor.
    configs A list of all Optimizely A/B test configurations that deliver product recommendations.

Note: If the current A/B group does not appear in this list, no Optimizely product recommendations are configured to be served for the current visitor.

      <group> An array of configurations to be shown for this test group where <group> is the test group letter, such as “A” or “B”.
        name [String]

The name of the widget, creative or listing that is shown if the test group letter matches the group assigned to the current visitor.
        position [String]

Describes the page position where the item will be shown.

For example:

{ "abtest" : [ { "smartRecs" : [ { "name" : "a/b test", "group" : "A", "configs" : { "B" : [ { "name" : "home", "position" : "homejson" } ] } } ] } ] }

Did this page help you?