Skip to main content

Goal

Full goal returned by goalDetail, including triggers, value settings, and A/B test counts.

type Goal {
id: Int!
siteId: Int!
name: String
autoName: String
thumbnailUrl: String
triggers: [GoalTriggers!]
createdAt: Int
abTestsCount: Int
abTestsCountActive: Int
deletedAt: Int
syncValues: Boolean
hasValue: Boolean
createdBy: User
}

Fields​

Goal.id ● Int! non-null scalar​

Goal.siteId ● Int! non-null scalar​

Id of the site the goal belongs to.

Goal.name ● String scalar​

Goal.autoName ● String scalar​

Fallback display label; null when unset.

Goal.thumbnailUrl ● String scalar​

Signed URL of the goal's page screenshot, captured in the background after create and edit; the image may not exist yet.

Goal.triggers ● [GoalTriggers!] list object​

All triggers, soft-deleted ones included; send only those with null deletedAt to goalEdit.

Goal.createdAt ● Int scalar​

Creation time in Unix seconds.

Goal.abTestsCount ● Int scalar​

A/B tests ever linked to the goal, including drafts and deleted tests; null when there are none.

Goal.abTestsCountActive ● Int scalar​

Linked A/B tests that are neither drafts nor deleted; null when the goal never had an A/B test.

Goal.deletedAt ● Int scalar​

Soft-deletion time in Unix seconds; null while the goal is active.

Goal.syncValues ● Boolean scalar​

Editor preference for copying the first trigger's value settings to all triggers; null if unset.

Goal.hasValue ● Boolean scalar​

True when any trigger, soft-deleted ones included, has a value source or every trigger is an api or ecommerce_event trigger; false when the goal has no triggers.

Goal.createdBy ● User object​

Resolves creator identity lazily from denormalized creator fields when present, falling back to the owning user lookup otherwise.

Returned By​

goalDetail query