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

170
Vistas
GTM Custom HTML Tag and Javascript Variables

I have 2 custom javascript variables (fx_geoLatitude, fx_geoLongitude) that capture latitude and longitude of the user when the page loads on their first session. Firing these variables within a custom HTML tag to populate the console.log is easy enough. I want to populate 2 variables in the data layer with these values, but those variables (latitude, longitude) don't currently exist in our data layer. Is it possible to do this, or do I need to have our dev team update our data layer with these new variables? Also, what would the dataLayer.push in the custom HTML tag look like to do this? Would it be as simple as

(function() {
  var latitude={{fx_geoLatitude}};
  var longitude={{fx_geoLongitude}};
  dataLayer.push({
         'latitude' : latitude,
         'longitude' : longitude
  });
})();
about 4 years ago · Juan Pablo Isaza
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