We're constantly trying to improve your support experience, and your feedback is extremely valuable to us.

Please take a moment to tell us about your experience today.
Sign up for future Help Center user research studies.

ScriptTag

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

Show definition
"""
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.
"""
type ScriptTag implements LegacyInteroperability & Node {
  """
  The date and time when the script tag was created.
  """
  createdAt: DateTime!
  """
  The page or pages on the online store that the script should be included.
  """
  displayScope: ScriptTagDisplayScope!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The ID of the corresponding resource in the REST Admin API.
  """
  legacyResourceId: UnsignedInt64!
  """
  The URL to the remote script.
  """
  src: URL!
  """
  The date and time when the script tag was last updated.
  """
  updatedAt: DateTime!
}

Implements

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.

Version 2019-07 (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

Show definition
"""
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.
"""
type ScriptTag implements LegacyInteroperability & Node {
  """
  The date and time when the script tag was created.
  """
  createdAt: DateTime!
  """
  The page or pages on the online store that the script should be included.
  """
  displayScope: ScriptTagDisplayScope!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The ID of the corresponding resource in the REST Admin API.
  """
  legacyResourceId: UnsignedInt64!
  """
  The URL to the remote script.
  """
  src: URL!
  """
  The date and time when the script tag was last updated.
  """
  updatedAt: DateTime!
}

Implements

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.

Version 2019-10 (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

Show definition
"""
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.
"""
type ScriptTag implements LegacyInteroperability & Node {
  """
  The date and time when the script tag was created.
  """
  createdAt: DateTime!
  """
  The page or pages on the online store that the script should be included.
  """
  displayScope: ScriptTagDisplayScope!
  """
  Globally unique identifier.
  """
  id: ID!
  """
  The ID of the corresponding resource in the REST Admin API.
  """
  legacyResourceId: UnsignedInt64!
  """
  The URL to the remote script.
  """
  src: URL!
  """
  The date and time when the script tag was last updated.
  """
  updatedAt: DateTime!
}

Implements

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.

Sign up for a Partner account to get started.

Sign up