What problem does it solve?
Managing custom JavaScript injected into a storefront can be error-prone and harmful to performance or security if scripts are added incorrectly, placed in the wrong location, or use insecure URLs. This Skill centralizes CRUD operations for external scripts so developers can reliably list, add, update, activate/deactivate, and remove injected scripts while following best practices.
Core Features & Use Cases
- List and Inspect: Retrieve all external scripts and their metadata to audit injected code.
- Create and Update: Register new external JavaScript snippets or modify existing ones with explicit location (head, body, footer) and activation flags.
- Activate/Deactivate and Delete: Toggle script activation without deleting, or remove scripts entirely.
- Use Case: Inject analytics (GTM), marketing pixels, or custom storefront features via HTTPS-hosted scripts placed in the footer for performance.
Quick Start
Add a footer script using the Tray API with URL https://cdn.example.com/gtm.js and set active to 1 using the Script wrapper and your access_token.