ScriptTag object

Version 2020-01 (Release candidate)

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

scriptTagCreate

Creates a new script tag.

scriptTagDelete

Deletes a script tag.

scriptTagUpdate

Updates a script tag.

Implements

Version 2019-10 (Latest)

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

scriptTagCreate

Creates a new script tag.

scriptTagDelete

Deletes a script tag.

scriptTagUpdate

Updates a script tag.

Implements

Version 2019-07

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

scriptTagCreate

Creates a new script tag.

scriptTagDelete

Deletes a script tag.

scriptTagUpdate

Updates a script tag.

Implements

Version 2019-04

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

scriptTagCreate

Creates a new script tag.

scriptTagDelete

Deletes a script tag.

scriptTagUpdate

Updates a script tag.

Implements

Sign up for a Partner account to get started.

Sign up