Creates a new script tag

Creates a new script tag

kiranupadhyak
Shopify Partner
5 0 0

I have created a Shopify app using ` Shopify CLI tool by executing the below command(the server is up with ngrok). The folder structure is the same as https://github.com/Shopify/shopify-app-node

shopify app create node -n APP_NAME

 I wanted to add my JavaScript code to all the pages of a shop's storefront using https://shopify.dev/api/admin-rest/2022-01/resources/scripttag#[post]/admin/api/2022-01/script_tags...... In this example, src is set to `"src": "https://djavaskripped.org/fancy.js"`.

 

I have JavaScript code in the file `test`.js` file

 

My question is in which directory(https://github.com/Shopify/shopify-app-node) do I need to include `test.js` file ?. What is the value for `src`?

Replies 0 (0)