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

125
Vistas
Why is my data layer firing extra events?

I'm implementing datalayer event pushes to the ecommerce I work, but I don't understand why or from where it is firing extra events.

Example:

I'm firing 'checkout' events on every step of the checkout with the following code:

export const pushCheckout = (devices: [any], step: any) => {
  console.log('got in');
  window.dataLayer.push({
    event: 'checkout',
    ecommerce: {
      currencyCode: 'USD',
      checkout: {
        actionField: {
          step: step.number,
          option: step.name,
        }
      },
      products: devices.map((device) => transformDetailedProductToFitDataLayerRequirements(device))
    }
  });
}

It works as expected, printing "got in" only once per step, but when I access the dataLayer object on console, I can see more 'checkout' events then the expected, but without my products and without the ecommerce.checkout.option field, even though that's not possible to happen in my code.

Is there something I'm missing in terms of how the data layer works? Is gtm adding this info by their side?

about 4 years ago · Santiago Gelvez
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