The Script Tag resource (legacy)
Script tags are deprecated. They stopped running on the Order status page on August 28, 2025 for Plus stores, and will stop running there on August 26, 2026 for all other stores. You can't create or update script tags after October 1, 2026, and Shopify will stop adding them to storefronts on March 1, 2027. Refer to Script tag deprecation and Order status script tags.
Script tags are deprecated. They stopped running on the Order status page on August 28, 2025 for Plus stores, and will stop running there on August 26, 2026 for all other stores. You can't create or update script tags after October 1, 2026, and Shopify will stop adding them to storefronts on March 1, 2027. Refer to Script tag deprecation and Order status script tags.
Anchor to OverviewOverview
The ScriptTag resource adds JavaScript to a store's storefront without any changes to the theme's code.
Anchor to When to use ScriptTagWhen to use Script Tag
Don't use ScriptTag in a new app. You can't create or update script tags after October 1, 2026, and existing script tags will stop running on March 1, 2027.
Use an app embed block instead, which is part of a theme app extension. App embed blocks work on both vintage and Online Store 2.0 themes. If your script collects analytics or tracks conversions, then use a web pixel.
To move an existing app off script tags, refer to Migrate to theme app extensions.
If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions.
If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions.
Anchor to How ScriptTag worksHow Script Tag works
ScriptTag loads JavaScript from a remote server into a theme section each time a page is viewed. Each script tag is tied to the app that created it. When an app user uninstalls your app, Shopify automatically removes all script tags associated with that app.
Anchor to Next stepsNext steps
- Migrate to theme app extensions to replace your script tags.
- Review the key dates in Script tag deprecation.
- Audit and delete your existing script tags with the ScriptTag GraphQL Admin API or the ScriptTag REST Admin API.