ScriptTags
Contains storefront script tag definitions for embedding custom JavaScript from approved sources.
Table-Specific Information
Select
The connector uses the Shopify API to process WHERE clause conditions built with the following columns and operators. The connector processes other filters client-side within the connector.
- 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 identifier for the script tag record. | |
| LegacyResourceId | String | True |
The identifier of the corresponding script tag resource in the REST Admin API, used for backward compatibility. | |
| Cache | Bool | False |
Indicates whether the Shopify CDN is allowed to cache and serve the script tag. If true, the script is cached and served for up to 15 minutes after retrieval; if false, the script is fetched directly from the source on each request. | |
| Src | String | False |
The URL location of the remote JavaScript file to be embedded in the storefront. | |
| DisplayScope | String | False |
Specifies where the script tag is applied on the online store, such as all pages, the home page, or product pages. The allowed values are ONLINE_STORE. | |
| CreatedAt | Datetime | True |
The date and time when the script tag was initially created in the store. | |
| UpdatedAt | Datetime | True |
The date and time when the script tag was last modified or updated. |