abTestChangeGoal
Sets the primary goal of a DRAFT or RUNNING test; the goal must belong to the test's site and have triggers. Passing
the current goal returns the test unchanged in any status. Use abTestResultCounts to view results for another goal
without changing the test. Request only stored fields such as id, name, and status in the response. Requires
A/B testing edit access.
abTestChangeGoal(
id: Int!
goalId: Int!
): AbTest!
Arguments
abTestChangeGoal.id ● Int! non-null scalar
Test id from abTestList, abTestRefList, or abTestCreate.
abTestChangeGoal.goalId ● Int! non-null scalar
Goal id from goalRefList for the test site; a new goal must already have triggers.
Type
AbTest object
A/B test settings and lifecycle returned by test lists, detail queries, and create/update operations.
Metrics are populated by list queries; use abTestResultCounts for goal/date-scoped results.