---
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'
---
# ScriptTag
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.
* createdAt
[DateTime!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/DateTime)
non-null
The date and time when the script tag was created.
* displayScope
[ScriptTagDisplayScope!](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.
* legacyResourceId
[UnsignedInt64!](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.
* updatedAt
[DateTime!](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
* [scriptTag](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.
* [scriptTags](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
* \>[scriptTag](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/ScriptTag)
* \>[scriptTags](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/ScriptTagConnection)
***
## Mutations
* [scriptTagCreate](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.
* [scriptTagUpdate](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
* <\~>[scriptTagCreate](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/scriptTagCreate)
* <\~>[scriptTagUpdate](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/scriptTagUpdate)
***
## Interfaces
* * [LegacyInteroperability](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
* ||-[LegacyInteroperability](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/LegacyInteroperability)
* ||-[Node](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/Node)