Skip to main content

The ScriptTag resource (legacy)

Deprecated

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.


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 ScriptTag

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.

Caution

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.


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.



Was this page helpful?