The script tags are not being loaded in the store even though the configuration seems to be correct.

New Member
1 0 0

Hi everyone, how are you? I'm having some issues related to Script Tag.


I've been following the instructions in but it's not working. My current shopify configuration is: 

ShopifyApp.configure do |config|
  config.application_name = ENV['NAME']
  config.api_key = ENV['SHOPIFY_API_KEY']
  config.secret = ENV['SHOPIFY_API_SECRET']
  config.scope = "write_products, write_script_tags"
  config.embedded_app = true
  config.after_authenticate_job = false
  config.api_version = "2019-10"
  config.session_repository = Shop
  config.scripttags = [
    {event: 'onload', src: ""}

When I install the application everything seems to be working correctly. I am also able to get the newly created script tags by using:


scripttags = @shop.with_shopify_session do

The variable scripttags contains:



But I'm not seeing the `hello.js` file being loaded in the store.



I've tried creating the script_tag manually by using:

ShopifyAPI::ScriptTag.create(event: "onload", src: "")


and I'm having the same result.


Some extra information:

I will be immensely grateful for any help/suggestion.




Shopify Partner
1348 156 239

That is odd. Can you share a preview URL to your store?

Sergiu Svinarciuc | CTO @
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to or our blog