---
title: "ScriptTag"
description: "ScriptTag"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/online-store/objects/script-tag'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/online-store/objects/script-tag.md'
---
# ScriptTag

ScriptTag

- **Required Scopes:** `read_script_tags`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`ScriptTag`

## Fields

* `createdAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Script tag creation date and time.
  
  

* `displayScope`

  [ScriptTagDisplayScope](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/enums/script-tag-display-scope.md)

  Script tag should be included on one or more pages in the online store.

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Unique global identifier.

* `src`

  [URL](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/url.md)

  The web address of the remote script.

* `updatedAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  Date and time when the script tag was last modified.

## Schema Definition

```graphql
type ScriptTag { 
	createdAt: Date
	displayScope: ScriptTagDisplayScope
	id: ID
	src: URL
	updatedAt: Date 
}
```

## Field from

* [ScriptTagUpdatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/objects/script-tag-update-payload.md).scriptTag

  Updated script tag.

* [ScriptTagCreatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/objects/script-tag-create-payload.md).scriptTag

  The script tag that was created.

* [ScriptTagEdge](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/objects/script-tag-edge.md).node

  The last entry in the ScriptTagEdge.

* [Query](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/queries/script-tag.md).scriptTag

  通过ID查找脚本标记资源。

* [ScriptTagConnection](https://developer.shopline.com/docs/admin-graph-ql-api/online-store/objects/script-tag-connection.md).nodes

  Nodes list within ScriptTagEdge

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

