ScriptTags
Lists script tags that inject JavaScript into storefront pages.
Table-Specific Information
Select
The driver uses the Shopify API to process WHERE clause conditions built with the following columns and operators. The driver processes other filters client-side within the driver.
- Id supports the '=, IN' comparison operators.
- Src supports the '=' comparison operator.
For example, the following queries are processed server-side:
SELECT * FROM ScriptTags WHERE Id = 'Val1'
SELECT * FROM ScriptTags WHERE Src = 'Val1'
Insert
The following columns can be used to create a new record:
Cache, Src, DisplayScope
Update
The following columns can be updated:
Cache, Src, DisplayScope
Delete
You can delete entries by specifying the following column:
Id
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
A globally unique Id for the script tag. | |
| LegacyResourceId | String | True |
The Id of the corresponding resource in the REST Admin API. | |
| Cache | Bool | False |
Whether the Shopify CDN can cache and serve the script tag. If true, the script is cached and served by the CDN for up to 15 minutes after being returned. If false, the script is served directly without caching. | |
| Src | String | False |
The URL of the remote script. | |
| DisplayScope | String | False |
The page or pages of the online store where the script tag should be included. The allowed values are ONLINE_STORE. | |
| CreatedAt | Datetime | True |
The date and time when the script tag was created. | |
| UpdatedAt | Datetime | True |
The date and time when the script tag was last updated. |