--- title: ScriptTag - GraphQL Admin description: >-

Theme app extensions

If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.

Script tag deprecation

Script tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.

A script tag represents remote JavaScript code that is loaded into the pages of a shop's storefront or the **Order status** page of checkout. api_version: 2024-10 api_name: admin type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/2024-10/objects/ScriptTag' md: 'https://shopify.dev/docs/api/admin-graphql/2024-10/objects/ScriptTag.txt' --- # Script​Tag object Requires `read_script_tags` access scope. Theme app extensions If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. [Learn more](https://shopify.dev/apps/online-store#what-integration-method-should-i-use). Script tag deprecation Script tags will be sunset for the **Order status** page on August 28, 2025. [Upgrade to Checkout Extensibility](https://www.shopify.com/plus/upgrading-to-checkout-extensibility) before this date. [Shopify Scripts](https://shopify.dev/docs/api/liquid/objects#script) will continue to work alongside Checkout Extensibility until August 28, 2025. A script tag represents remote JavaScript code that is loaded into the pages of a shop's storefront or the **Order status** page of checkout. ## Fields * cache [Boolean!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/Boolean) non-null Whether the Shopify CDN can cache and serve the script tag. If `true`, then the script will be cached and served by the CDN. The cache expires 15 minutes after the script tag is successfully returned. If `false`, then the script will be served as is. * created​At [Date​Time!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/DateTime) non-null The date and time when the script tag was created. * display​Scope [Script​Tag​Display​Scope!](https://shopify.dev/docs/api/admin-graphql/2024-10/enums/ScriptTagDisplayScope) non-null The page or pages on the online store that the script should be included. * id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) non-null A globally-unique ID. * legacy​Resource​Id [Unsigned​Int64!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/UnsignedInt64) non-null The ID of the corresponding resource in the REST Admin API. * src [URL!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/URL) non-null The URL to the remote script. * updated​At [Date​Time!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/DateTime) non-null The date and time when the script tag was last updated. *** ## Map ### Fields and connections with this object * <->[ScriptTagConnection.nodes](https://shopify.dev/docs/api/admin-graphql/2024-10/connections/ScriptTagConnection#field-nodes) * {}[ScriptTagEdge.node](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/ScriptTagEdge#field-node) *** ## Queries * [script​Tag](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/scriptTag) query Theme app extensions If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. [Learn more](https://shopify.dev/apps/online-store#what-integration-method-should-i-use). Script tag deprecation Script tags will be sunset for the **Order status** page on August 28, 2025. [Upgrade to Checkout Extensibility](https://www.shopify.com/plus/upgrading-to-checkout-extensibility) before this date. [Shopify Scripts](https://shopify.dev/docs/api/liquid/objects#script) will continue to work alongside Checkout Extensibility until August 28, 2025. Returns a `ScriptTag` resource by ID. * [script​Tags](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/scriptTags) query Theme app extensions If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. [Learn more](https://shopify.dev/apps/online-store#what-integration-method-should-i-use). Script tag deprecation Script tags will be sunset for the **Order status** page on August 28, 2025. [Upgrade to Checkout Extensibility](https://www.shopify.com/plus/upgrading-to-checkout-extensibility) before this date. [Shopify Scripts](https://shopify.dev/docs/api/liquid/objects#script) will continue to work alongside Checkout Extensibility until August 28, 2025. A list of script tags. *** ## \ScriptTag Queries ### Queried by * \[script​Tag](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/ScriptTag) * \[script​Tags](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/ScriptTagConnection) *** ## Mutations * [script​Tag​Create](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/scriptTagCreate) mutation Theme app extensions If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. [Learn more](https://shopify.dev/apps/online-store#what-integration-method-should-i-use). Script tag deprecation Script tags will be sunset for the **Order status** page on August 28, 2025. [Upgrade to Checkout Extensibility](https://www.shopify.com/plus/upgrading-to-checkout-extensibility) before this date. [Shopify Scripts](https://shopify.dev/docs/api/liquid/objects#script) will continue to work alongside Checkout Extensibility until August 28, 2025. Creates a new script tag. * [script​Tag​Update](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/scriptTagUpdate) mutation Theme app extensions If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. [Learn more](https://shopify.dev/apps/online-store#what-integration-method-should-i-use). Script tag deprecation Script tags will be sunset for the **Order status** page on August 28, 2025. [Upgrade to Checkout Extensibility](https://www.shopify.com/plus/upgrading-to-checkout-extensibility) before this date. [Shopify Scripts](https://shopify.dev/docs/api/liquid/objects#script) will continue to work alongside Checkout Extensibility until August 28, 2025. Updates a script tag. *** ## <\~> ScriptTag Mutations ### Mutated by * <\~>[script​Tag​Create](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/scriptTagCreate) * <\~>[script​Tag​Update](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/scriptTagUpdate) *** ## Interfaces * * [Legacy​Interoperability](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/LegacyInteroperability) interface * [Node](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/Node) interface *** ## ||-ScriptTag Implements ### Implements * ||-[Legacy​Interoperability](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/LegacyInteroperability) * ||-[Node](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/Node)