---
title: AnalyticsTargetCreateInput - GraphQL Admin
description: >-
  The input fields for creating an [analytics
  target](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTarget)

  that tracks a merchant's goal for a specific metric over a date range.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/AnalyticsTargetCreateInput
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/AnalyticsTargetCreateInput.md
api_name: admin
api_type: graphql
type: input-object
---

# Analytics​Target​Create​Input

input\_object

The input fields for creating an [analytics target](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTarget) that tracks a merchant's goal for a specific metric over a date range.

## Fields

* end​Date

  [Date!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Date)

  non-null

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

* expected​Value

  [Decimal!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/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.

* filters

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

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

* metric

  [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  non-null

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

* name

  [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  non-null

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

* start​Date

  [Date!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Date)

  non-null

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

***

## Mutations using this input

* [analytics​Target​Create.input](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetCreate#arguments-input)

  ARGUMENT

***

## Map

### Mutations using this input

* [analytics​Target​Create.input](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetCreate#arguments-input)
