Why isn't my Shopify App script added in the header?

Why isn't my Shopify App script added in the header?

Het12
Shopify Partner
6 0 0

I have added const scriptTag = await shopify.scriptTag.create({ event: "onload", src: "https://example.com/script.js" }); this script in App.js in useEffect using Immediately invoke function and I have installed the app but the script is not added in the header why?

 

Het12_0-1713183004597.png

 

Replies 0 (0)