Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
How to get Script Tag to render?

I'm trying to get a test-script to load on my development shopify store using GraphQL (Graphiql test app). The Script Tag is successfully created. However, the test-script, which should be injected into the shopify store, does not display. I believe the issue stems from my misunderstanding of the ScriptTagInput.src field from the GraphQL docs.

I'm not sure where to place the test-script.js file in order to access it as a URL in the mutation.

test-script.js

console.log('this is coming from the test script api');

GraphQL Mutation:

mutation scriptTagCreate($input: ScriptTagInput!) {
    scriptTagCreate(input: $input) {
      scriptTag {
        id
      }
      userErrors {
        field
        message
      }
    }
  }


{
  "input": {
    "src": "https://d74c-12-216-7-134.ngrok.io/test-script.js",
    "displayScope": "ALL"
  }
}

Current File Structure:

enter image description here

This is the repo I cloned using the Shopify CLI. It has removed the use of Next.js.

How do I get the test-script.js script URL so that I can have it loaded in my Shopify development store?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!