This article will show you how to setup the following analytic events.
Add to cart
Remove from cart
View items
π Important: If you haven't already setup Google Analytics & Tag Manager, then you need to do that first. Check out our Start Here article.
About the events
The first two events are fairly straight forward. When a customer clicks the "add to cart" button, the event will fire that products basic details to Google Analytics. If the customer click to remove the item from the cart, the "remove_from_cart" event will fire with the basic product details.
The View item event will fire when someone views the product details page. This shows that they are, more than likely, interested in this particular product. This is a good metric to follow as it will show you what products people are viewing but maybe not purchasing.
Footer block script
Copy and paste into the Footer Block (See the video)
<script async="" src="https://us.evocdn.io/assets/g_analytics_v1.js"></script>
Event names
Event | Event name |
Add to cart | add_to_cart |
Remove from cart | remove_from_cart |
View product | view_item |
Setup Video
π That's it have a great day!!