Requiresscript_tagsaccess scope.
Script Tag Properties
| Field | Type | Desc | Example |
|---|---|---|---|
| id | string | ||
| display_scope | string | Display scope. Pages where the script should be injected. Supports multiple values separated by ,. Default is all. | index |
| src | string | Java Script file URL, must be valid and accessible. maximum 200 characters. | https://shoplazza.com/x.js |
| event_type | string | Script tag category identifier. Used to distinguish scripts by source or purpose. Recommended to use your app name (e.g., myapp) as the value. | myapp |
| created_at | string | Creation time | 2024-04-24T07:26:53Z |
| updated_at | string | Update time | 2024-04-24T07:26:53Z |
Display Scope
| Display Scope | Desc | URL |
|---|---|---|
| online | All pages except checkout page | |
| index | Home | / |
| products | Product list page | |
| product | Product detail page | |
| collections | Collection list page | |
| collection | Collection detail page | |
| cart | Cart | /cart |
| order | Order detail page | |
| order_verify | Order verification page | |
| flashsaleCollection | Flash sale | |
| couponCollection | Coupon | |
| rebateCollection | Rebate | |
| couponsCollection | Coupons | |
| automaticCollection | Automatic discount | |
| search | Search | /search |
| order_lookup | Order lookup page | /account/order_lookup |
| 404 | 404 | /404 |
| page | Custom page | |
| article | Article | |
| blog | Blog | |
| theme_page | Theme custom page | |
| password | Password access restriction | /password |
| customers/account | Account center | /account |
| customers/login | Login page | /account/login |
| customers/register | Registration page | /account/register |
| customers/reset_password | Reset password | /account/resetpw |
| customers/reset_success | Reset password success | /account/resetrs |
| customers/addresses | Address book | /account/addresses |
| customers/order | Order in account center | /account/order |
| customers/track | Track order | /account/track |
| customers/coupon | Customer coupon | /account/coupon |
| customers/points | Customer points | /account/points |
| customers/point_detail | Customer points detail | /account/points/history |
Example
{
"id": "f50950fa-40ec-441f-b98d-e1869050dbf2",
"display_scope": "index",
"event_type": "myapp",
"src": "https://shoplazza.com/x.js",
"created_at": "2024-04-29T03:22:50Z",
"updated_at": "2024-04-29T03:22:50Z"
}