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

179
Visualizações
Dynamically Firing A gTag Event with Google Tag Manager

I have a script that fires a dynamic gTag.js adwords conversion based on various user interactions taken on that page. This worked fine when I had gTag.js installed. However I recently upgraded to Google Tag Manager and now my code:

gtag('event', 'conversion', {'send_to':'Dynamic Bits Here'});

Is throwing an error. How can I convert this to be picked up by Google Tag Manager? I've tried pushing to the dataLayer directly with:

 window.dataLayer.push('event','conversion', {'send_to':'Dynamic Bits Here'});

However Adwords does not pick that up as a conversion. What I don't want to do is have to install a adwords conversion tracker in tag manager for every conversion as there are a ton of them.

Should I just keep gTag.js installed alongside tag manager???

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If gtag is already installed and works fine for you, then you can just leave it, especially if you use only Google tags - gtag is build to deploy all kinds of Google tracking, and running both gtag and GTM is a lot of Javascript for essentially the same purpose.

GTM does not by itself send data to Google Ads without a respective tag.

However there is usually no need to install multiple Google Ads tags in GTM. What you usually would do is to create variables in GTM that pick up the dynamic bits, and then plop the variables into the Google Ads tag. So instead of having one tag for every conversion, you have a single tag that is dynamically configured depending on the values pushed to the datalayer.

about 4 years ago · Juan Pablo Isaza 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