Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

129
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda