Skip to main content
Anchor to AnalyticsTargetCreateUserError

AnalyticsTargetCreateUserError

object

An error that occurs during the execution of AnalyticsTargetCreate.

•AnalyticsTargetCreateUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•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?


Was this section helpful?