--- title: analyticsTargetUpdate - GraphQL Admin description: Updates an analytics target. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/analyticsTargetUpdate md: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/analyticsTargetUpdate.md --- # analytics​Target​Update mutation Requires `write_reports` access scope. Updates an analytics target. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) required The ID of the analytics target to update. * input [Analytics​Target​Update​Input](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/AnalyticsTargetUpdateInput) The input fields for updating an analytics target. ### Deprecated arguments * currency​Code [Currency​Code](https://shopify.dev/docs/api/admin-graphql/unstable/enums/CurrencyCode) Deprecated * end​Date [Date](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Date) Deprecated * expected​Value [Decimal](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Decimal) Deprecated * filters [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) Deprecated * metric [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) Deprecated * name [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) Deprecated * start​Date [Date](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Date) Deprecated *** ## Analytics​Target​Update​Payload returns * analytics​Target [Analytics​Target](https://shopify.dev/docs/api/admin-graphql/unstable/objects/AnalyticsTarget) The updated analytics target. * user​Errors [\[Analytics​Target​Update​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/AnalyticsTargetUpdateUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### analyticsTargetUpdate reference