Skip to main content
Anchor to AnalyticsTargetCreatePayload

AnalyticsTargetCreatePayload

payload

Return type for analyticsTargetCreate mutation.

•AnalyticsTarget

The newly created analytics target.

•[AnalyticsTargetCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Creates an analytics target that defines a merchant's goal for a specific metric over a date range. For example, a merchant can set a target of $50,000 in total sales for a quarter, or 1,000 orders in a month.

Provide the target attributes through the input argument. The target's currency is set to the shop's currency. A target is uniquely identified by the combination of metric, startDate, endDate, and filters — attempting to create a duplicate returns a user error.

Use analyticsTargetUpdate to modify an existing target, or analyticsTargetsDelete to remove targets.

Arguments

•AnalyticsTargetCreateInput!
required

The input fields for creating an analytics target.



Was this section helpful?