---
title: AnalyticsTargetCreateUserError - GraphQL Admin
description: An error that occurs during the execution of `AnalyticsTargetCreate`.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetCreateUserError
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetCreateUserError.md
api_name: admin
api_type: graphql
type: object
---

# Analytics​Target​Create​User​Error

object

An error that occurs during the execution of `AnalyticsTargetCreate`.

## Fields

* code

  [Analytics​Target​Create​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/AnalyticsTargetCreateUserErrorCode)

  The error code.

* field

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

  The path to the input field that caused the error.

* message

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

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

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

  mutation

  Creates an [analytics target](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTarget) 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`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetUpdate) to modify an existing target, or [`analyticsTargetsDelete`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetsDelete) to remove targets.

  * input

    [Analytics​Target​Create​Input!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/AnalyticsTargetCreateInput)

    required

    ### Arguments

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

  ***

***

## AnalyticsTargetCreateUserError Mutations

### Mutated by

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

***

## Interfaces

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)

  interface

***

## AnalyticsTargetCreateUserError Implements

### Implements

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)
