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

195
Views
How Google Analytics remove from cart action should work?

In my Nuxt.js project I have GA connected. I have a code, which is supposed to remove products from cart (I mean, for Google Analytics).

Here it is:

  await this.$ga.ecommerce.addProduct({
    'id': id,
    'name': productName[0].name
  });
  await this.$ga.ecommerce.setAction('remove', {
    'list': productName[0].name.split(' ')[0]
  });
  await this.$ga.event({
    eventCategory: 'remove from cart',
    eventAction: 'removeFromCart',
    eventLabel: 'Product removed to cart',
    eventValue: 3
  })

This code doesn't work, but I have other question. On GA page just there is no section Removal from Cart, but there is code implementation in documentation:

enter image description here

So, I have 2 questions.

  1. How to make function which will remove products from cart? (that code doesn't work)
  2. How this is gonna look like on Google Analytics page?
about 4 years ago · Juan Pablo Isaza
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!