Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!