Anchor to analyticsTargetCreateanalytics
mutationanalytics Target Create
Requires access scope.
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, ,
, and filters — attempting to create a duplicate returns a user error.
Anchor to Arguments
Arguments
- input (AnalyticsTargetCreateInput!)
- Anchor to inputinput•Analytics
Target Create Input! required The input fields for creating an analytics target.
Was this section helpful?
- analyticsTarget (AnalyticsTarget)
- userErrors ([AnalyticsTargetCreateUserError!]!)
- Anchor to analyticsTargetanalytics•Analytics
Target Target The newly created analytics target.
- Anchor to userErrorsuser•[Analytics
Errors Target Create User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?