Anchor to AnalyticsTargetCreatePayloadAnalytics
payloadAnalytics Target Create Payload
Return type for mutation.
Anchor to FieldsFields
- 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?
Anchor to Mutations with this payloadMutations with this payload
- analyticsTargetCreate (AnalyticsTargetCreatePayload)
- •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
inputargument. The target's currency is set to the shop's currency. A target is uniquely identified by the combination ofmetric,,, andfilters— attempting to create a duplicate returns a user error.- Anchor to inputinput•Analytics
Target Create Input! required The input fields for creating an analytics target.
Arguments
Was this section helpful?