Adding a product to a shopping cart (Label item.name
references the name property of the product added):
ga('send', 'event', 'Cart', 'Add', product.name);
This lets you see what people are adding to the shopping cart, even if they never complete the order, allowing more insight into where users are abandoning their session:
Removing an item from a shopping cart:
ga('send', 'event', 'Shopping', 'Removed', product.name);
Emptying a shopping cart:
ga('send', 'event', 'Cart', 'Emptied', 'empty');