Custom JavaScript (block)
Insert JavaScript into a page via the Custom code section.
Last updated 27 days 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.