---
title: AnalyticsTargetUpdateUserErrorCode - GraphQL Admin
description: Possible error codes that can be returned by `AnalyticsTargetUpdateUserError`.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/AnalyticsTargetUpdateUserErrorCode
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/AnalyticsTargetUpdateUserErrorCode.md
api_name: admin
api_type: graphql
type: enum
---

# Analytics​Target​Update​User​Error​Code

enum

Possible error codes that can be returned by `AnalyticsTargetUpdateUserError`.

## Valid values

* INVALID

  The input value is invalid.

* INVALID\_​METRIC

  The provided metric is not valid for analytics targets.

* NOT\_​FOUND

  The analytics target was not found.

* SHOPIFY\_​EMPLOYEE\_​IMPERSONATING

  Shopify employees are not permitted to perform this action.

* TAKEN

  The input value is already taken.

***

## Fields

* [Analytics​Target​Update​User​Error.code](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetUpdateUserError#field-AnalyticsTargetUpdateUserError.fields.code)

  OBJECT

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

***

## Map

### Fields with this enum

* [Analytics​Target​Update​User​Error.code](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetUpdateUserError#field-AnalyticsTargetUpdateUserError.fields.code)
