improved

Extended statistics for A/B test results endpoint

Get AB Test Campaign Results has been extended and it's now possible to retrieve statistics and clickedLinks fields in the response.

The clickedLinks field will be returned only in case of a content based AB test campaign.

Sample response

{
    "winningVersion": "A",
    "winningSubjectLine": "SubjectLineA",
    "winningCriteria": "Open",
    "openRate": "70%",
    "clickRate": "40%",
    "winningVersionRate": "55%",
    "statistics":{
      "openers": {
        "Version A": "0%",
        "Version B":"33.33%"
      },          
      "clicks": {
        "Version A": "0%",
        "Version B":"33.33%"
      },          
      "unsubscribed": {
        "Version A": "0%",
        "Version B":"0%"
      },          
      "softBounces": {
        "Version A": "100%",
        "Version B":"0%"
      },          
      "hardBounces": {
        "Version A": "0%",
        "Version B":"0%"
      },          
      "complaints": {
        "Version A": "0%",
        "Version B":"0%"
      }
    },
    "clickedLinks":{          
      "Version A": [
        {
          "link":"https://facbook.com/versionA",
          "clicksCount": 3,
          "clickRate": "10%"
        },                  
        {
          "link":"https://youtube.com/versionA",
          "clicksCount": 13,
          "clickRate": "22%"
        }          
      ],              
      "Version B": [
        {
          "link":"https://facbook.com/versionB",
          "clicksCount": 23,
          "clickRate": "40%"
        },                 
        {
          "link":"https://youtube.com/versionB",
          "clicksCount": 53,
          "clickRate": "62%"
        },                  
        {
          "link":"https://instagram.com/versionB",
          "clicksCount": 35,
          "clickRate": "%"
        }
      ]
    }
  }