Custom JavaScript (block)
Insert JavaScript into a page via the Custom code section.
Last updated About 2 hours ago
Available in: Custom code section
Add a Custom JavaScript block to the Custom code section and paste your script into Code without <script> tags — the theme adds them automatically.
Use this for embedded widgets, tracking snippets, or small interactions that belong on specific templates only.
📝 Note: Place the Custom code section where you need the script to load. Invalid JavaScript can break page functionality — test on a duplicate theme first.
Other settings
For external script files, use a Custom asset block instead and include the full <script src="..."> tag. Site-wide scripts belong in theme files or Shopify's checkout/order status settings, not scattered blocks.