Skip to main content

GoalSummary

Goal returned by goalListSummary, with conversions for the last seven UTC days, including today.

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

Fields​

GoalSummary.id ● Int! non-null scalar​

GoalSummary.siteId ● Int! non-null scalar​

Id of the site the goal belongs to.

GoalSummary.name ● String scalar​

GoalSummary.autoName ● String scalar​

Fallback display label; null when unset.

GoalSummary.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.

GoalSummary.triggers ● [GoalTriggers!] list object​

All triggers, soft-deleted ones included; check deletedAt.

GoalSummary.createdAt ● Int scalar​

Creation time in Unix seconds.

GoalSummary.abTestsCount ● Int scalar​

A/B tests ever linked to the goal, including drafts and deleted tests.

GoalSummary.abTestsCountActive ● Int scalar​

Linked A/B tests that are neither drafts nor deleted, such as running and stopped tests.

GoalSummary.recentConversionsCount ● Int scalar​

Conversions in the last seven UTC days, including today; 0 when there are none.

GoalSummary.deletedAt ● Int scalar​

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

GoalSummary.syncValues ● Boolean scalar​

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

GoalSummary.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.

GoalSummary.createdBy ● User object​

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

Show deprecated

GoalSummary.sessionsCount ● Int deprecated scalar​

DEPRECATED

The Goals dashboard no longer displays recordings counts

Recent conversion events that carry a session id; 0 when there are none.

Member Of​

GoalSummaryListMeta object