Skip to main content
Anchor to AnalyticsTargetCreateInput

AnalyticsTargetCreateInput

input_object

The input fields for creating an analytics target that tracks a merchant's goal for a specific metric over a date range.

•Date!
non-null

The end date of the period over which progress toward the target is measured.

•Decimal!
non-null

The goal value that the merchant aims to reach for the tracked metric within the target period. Must be greater than 0.

•String

An optional filter expression to narrow the data evaluated against this target. For example, shipping_country = 'US'.

•String!
non-null

The identifier of the analytics metric that this target tracks, such as total_sales or orders.

•String!
non-null

A human-readable label for the target, such as Q1 Sales Target.

•Date!
non-null

The start date of the period over which progress toward the target is measured.


Was this section helpful?

Anchor to Mutations using this inputMutations using this input


Was this section helpful?