ScriptTag object
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.
Required access
read_script_tags
access scope.
Fields
-
cache (
Boolean!
)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. Iffalse
, then the script will be served as is. -
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
cache (
Boolean!
)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. Iffalse
, then the script will be served as is. -
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.
Implements
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.
Required access
read_script_tags
access scope.
Fields
-
createdAt (
DateTime!
)The date and time when the script tag was created.
-
displayScope (
ScriptTagDisplayScope!
)The page or pages on the online store that the script should be included.
-
id (
ID!
)Globally unique identifier.
-
legacyResourceId (
UnsignedInt64!
)The ID of the corresponding resource in the REST Admin API.
-
src (
URL!
)The URL to the remote script.
-
updatedAt (
DateTime!
)The date and time when the script tag was last updated.
Types that return ScriptTag
Mutations for ScriptTag
-
Creates a new script tag.
-
Deletes a script tag.
-
Updates a script tag.