1. Home
  2. Docs
  3. Core concepts
  4. Protocol
  5. Examples

Examples

We provide specific experiment types to get started quickly. These have some setting already pre-selected in order to make life easier. Here are the ones we have on the portal and how they are implemented in a Json format.

A/B Test

Elements/icon/abtest A B
{
    "options": {
        "inherits": "default"
    },
    "stimulus": {
    "type": "section",
    "randomize": true,
    "stimuli": [
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000
             }
         ]}
}

The A/B test assumes simple image comparisons and the example experiment type contains only two images. Each image is shown for just 10 seconds (displayTime). The fixationTime is always fixed to 2 seconds. As soon as a stimulus is added in the experiment builder, the stimulus_uuid is updated accordingly. The presentation order of the stimuli is also set to random.

Show just one

The same example but with randomly showing just one of the two options. Here we make use of the “sample” setting of the section.

{
    "options": {
        "inherits": "default"
    },
    "stimulus": {
    "type": "section",
    "randomize": true,
    "sample": 1,
    "stimuli": [
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000
             }
         ]}
}

Flow

Elements/icon/funnel
{
    "options": {
        "inherits": "default"
    },
    "stimulus": {
    "type": "section",
    "stimuli": [
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             }
         ]}
}

The flow example is used for a funnel test. Here a specific order of the stimuli is necessary. It also assumes that website templates are being used. For that reason we use a fit of “fill-horizontal”. This allows the prototype image to be scrollable and feel like a real website.


Webdesign

Elements/icon/screen
{
    "options": {
        "inherits": "default"
    },
    "stimulus": {
    "type": "section",
    "randomize": true,
    "stimuli": [
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             },
             {
                 "type": "image",
                 "stimulus_uuid": "",
                 "displayTime": 10000,
                 "fixationTime": 2000,
                 "fit": "fill-horizontal"
             }
         ]}
}

Webdesign is like the A/B test but now it assumes actual scrollable website image prototypes. Here, no particular order is required and that’s why randomization is enabled.


Single Video

Elements/icon/video
{
    "options": {
        "inherits": "default"
    },
    "stimulus": {
    "type": "section",
    "randomize": true,
    "stimuli": [
             {
                 "type": "video",
                 "stimulus_uuid": "",
                 "fixationTime": 2000
             }
         ]}
}

The only difference to the protocol for images and video is the “type”. Randomization is here enabled by default in case additional videos will be added in the experiment designer.