Get all A/B tests in a data center.
https://api.insight.sitefinity.com/analytics/v1/ab-tests
The following request:
HTTP:
GET https://api.insight.sitefinity.com/analytics/v1/ab-tests
Headers:
Authorization: bearer token
x-dataintelligence-datacenterkey: c27aeeb7-d222-d848-d8bf-9792485dafa9
x-dataintelligence-skip: 1
x-dataintelligence-take: 2
x-dataintelligence-filter: {“BusinessStatus”: “Active”}
x-dataintelligence-sort: {“Name”: 1}
x-dataintelligence-count: true
https://api.insight.sitefinity.com/analytics/v1/ab-tests/{ab-test-id}
GET
ab-test-id
Authorization
x-dataintelligence-datacenterkey
GET https://api.insight.sitefinity.com/analytics/v1/ab-tests/1D0F8CFF-ED02-463B-A34A-F34579E52A50
JSON sample response:
https://api.insight.sitefinity.com/analytics/v1/ab-tests/{ab-test-id }/goals/{ab-test-goal-id}/statistics
ab-test-goal-id
x-dataintelligence-filter
{ "PropertyName": "PropertyValue" }
{ “items”: AbTestGoalStatistic[] }
For details, see A/B test goal statistics API data type.
GET https://api.insight.sitefinity.com/analytics/v1/ab-tests/4D0F8CFF-ED02-463B-A34A-F34579E52A50/goals/78F40E40-BA2D-42D7-BE91-B29C5296D22D/statistics
x-dataintelligence-filter: {"CreatedOn": "2018-02-06T00:01:00.000Z"}
https://api.insight.sitefinity.com/analytics/v1/ab-tests/dec-conversions
{ "items": Array }
Returns a collection of objects, containing the name and ID of the Sitefinity Insight-compatible goals, for example:
{
"items": [
"Id": 1,
"Name": "Purchase Product"
},
"Id": 52,
"Name": "Watch Webinar"
"Id": 53,
"Name": "Submit Contact Us Form"
}
]
GET https://api.insight.sitefinity.com/analytics/v1/ab-tests/dec-conversions
POST
AbTest
The created A/B test.
Variants
POST https://api.insight.sitefinity.com/analytics/v1/ab-tests
Body JSON:
PUT
id
PUT https://api.insight.sitefinity.com/analytics/v1/ab-tests/1d0f8cff-ed02-463b-a34a-f34579e52a50
https://api.insight.sitefinity.com/analytics/v1/ab-tests/{ab-test-id}/status
PUT https://api.insight.sitefinity.com/analytics/v1/ab-tests/1d0f8cff-ed02-463b-a34a-f34579e52a50/status
DELETE
DELETE https://api.insight.sitefinity.com/analytics/v1/ab-tests/1D0F8CFF-ED02-463B-A34A-F34579E52A50
{}
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important