An experiment and its results
const url = 'https://digize.com/api/v1/analytics/experiments/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/analytics/experiments/example \ --header 'x-api-key: <x-api-key>'One A/B test and its results so far: per variant the visitors who saw it, how many converted, the rate, revenue, its lift over the control with a 95% interval, its chance of being best, and the outcomes and devices; the day-by-day rates; whether the split is broken; a verdict (too early, a winner, no difference, keep going) with how many visitors it needs; and revenue, revenue per visitor’s own verdict with each variant’s chance of earning the most a visitor.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The experiment’s id, from analytics.experiments.list.
Responses
Section titled “Responses”Done
object
object
The site’s address, its own domain first.
object
object
Opens this variant of the first page for whoever follows it, counting nothing.
object
Ended with its winner shown to every visitor, until the change is in the site’s code.
object
The run is longer than 90 days; these are its first 90.
object
Converted of visitors, 0 to 1.
From orders paid after the visitor saw it, in minor units.
Its rate over the control’s, relative: 0.12 is 12% better.
The 95% interval of the lift, low end.
Its chance of the best rate, over the visitors since the newest variant joined.
object
object
object
object
Visitors seen in more than one variant, left out.
The split is off the weights by more than luck explains: something is broken, so don’t trust the results.
The results in words.
Revenue per visitor’s own verdict, apart from the goal’s: each visitor’s chance of buying times what a buyer spends, from orders paid after they saw the test.
object
Which variant earns the most a visitor: too early until 7 days, 100 visitors and minBuyers buyers in each variant, then a winner once one is 95% likely to earn the most.
Visitors in every variant who bought.
object
Its visitors who bought after seeing it.
What they paid, in minor units.
In minor units.
Its revenue per visitor over the control’s, relative: 0.12 is 12% more.
The 95% interval of the lift, low end.
Its chance of earning the most a visitor, over the visitors since the newest variant joined.
Example
{ "experiment": { "kind": "content", "variants": [ { "key": "a", "swaps": [ { "op": "text" } ] } ], "goal": { "kind": "lead" }, "status": "draft", "winner": "a" }, "results": { "unavailable": { "reason": "token" }, "variants": [ { "key": "a", "devices": [ { "device": "phone" } ] } ], "daily": [ { "variants": [ { "key": "a" } ] } ], "verdict": "not_started", "leader": "a", "revenue": { "verdict": "not_started", "leader": "a", "variants": [ { "key": "a" } ] } }}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}