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

121
Visualizações
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 à 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