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:
So, I have 2 questions.