Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda