Skip to main content

abTestResultCounts

Returns totals and ordered per-variant metrics for one non-deleted test and a goal on its site. Use abTestResultDetail for structure or abTestDistribution for time buckets; variants default to name ascending. Missing tests or goals are errors. Requires A/B testing view access; shared access is also supported.

abTestResultCounts(
id: Int!
goalId: Int!
startDate: Int
endDate: Int
order: AbTestVariantOrder
): AbTestResultCounts!

Arguments​

abTestResultCounts.id ● Int! non-null scalar​

Test id from abTestList or abTestRefList; deleted tests are excluded.

abTestResultCounts.goalId ● Int! non-null scalar​

Goal id from goalRefList for the test site; a missing or different-site goal is an error.

abTestResultCounts.startDate ● Int scalar​

Inclusive metrics start in Unix seconds (UTC); omit for no lower date filter.

abTestResultCounts.endDate ● Int scalar​

Inclusive metrics end in Unix seconds (UTC); omit for no upper date filter.

abTestResultCounts.order ● AbTestVariantOrder input​

Per-variant sort settings; defaults to variant name ascending.

Type​

AbTestResultCounts object​

Goal/date-scoped totals and ordered variant metrics returned by abTestResultCounts.