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

148
Visualizações
How to add a script tag to shopify directly to the html source?

This plugin for shopify: https://apps.shopify.com/custom-js

It used to allow you to add a full script tag to the html.

But today a client was complaining saying it did not work for them, when i dug into the issue the plugin appears to have stopped doing that and only allow you to add actual javascript code.

They don't want to use google tag manager, but we need a simple way (that they can understand in the future when i am not there) to be able to inject custom script tags.

EG:

<script src="https://some-review-service.com/loader.js"></script>

Any help would be hugely helpful as I am by no means a shopify guru :)

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

Use this code in theme.liquid if you are using third party js file:

{{ 'https://some-review-service.com/loader.js' | script_tag }}

Otherwise, upload loader.js file in the assets folder. and add the below code in your theme.liquid head section:

{{ 'loader.js' | asset_url | script_tag }}
about 4 years ago · Santiago Gelvez Relatório
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