In this article, we will go over setting up Ecommerce Tracking in Google Analytics 4. Ecommerce tracking allows us to track the performance of the online store. When eCommerce tracking is properly implemented, the data will begin to show in the Google Analytics 4 Monetization reports.
Proper implementation requires using eCommerce recommended events along with certain required parameters. This article will cover all those events and parameters and provide a snapshot of what these events are and what they are used for.
The events' names indicate what that event is supposed to do. View_item event needs to be triggered when a user views an item on the site.
Many times users view a list of items on one single page. In that case, trigger the view_Item_list event to track how many times that list has been viewed. Select_item needs to be tracked when a user selects an item from a list. View_cart needs to be triggered when a user views the shopping cart.
Add_to_cart needs to be triggered when a user adds an item to the shopping cart. Remove_from_cart needs to be triggered when the user removes the items from the shopping cart. Begin_checkout needs to be triggered when the user is done adding items to the cart and clicks on the checkout button.
Add_payment_info event should be triggered when a user submits the payment information. Add_shipping_info event should be triggered when a user submits the shipping information. The purchase event should be triggered when a user completes a purchase, and the Refund event needs to be triggered when the refund is issued. These are the events that will be used commonly in eCommerce tracking.
In addition to these events, there are other events as well that you can use for eCommerce tracking. These events are select_promotion that needs to be triggered when a user selects a promotion. View_promotion triggers the event when a promotion is shown to a user. Add_to_wishlist needs to be triggered when a user adds an item to a wish list. And finally, there is the generate_lead event. This event needs to be triggered when users submit their contact information such as email, phone, etc. Even though this event is not directly tied to eCommerce, Google recommends using this event when generating leads on the eCommerce site.
These are the complete list of events for eCommerce. This list might change in the future when Google Analytics 4 adds new features. Keep in mind when tracking these events, use the names exactly how it is listed above. The event will be tracked even if there is a mistake in the name of an event.
However, it won't be tracked as an eCommerce event. In addition to these event names, certain parameters must be passed along with these events. If the required parameters are not passed, still the events will be tracked. However, they won't be tracked as eCommerce events.
Google Analytics 4 help and support
We are here to help you with all your Google Analytics needs. Our team can get you up and running in no time and also train you and your team to save you a lot of time so that you can focus on driving the business outcomes rather than configuring Google Analytics 4.
Online Course - If you want to learn on your own then check out Google Analytics 4 Masterclass
Workshop - We conduct the onsite customized workshop. Reach out to us for more details.
Consulting - Reach out to us for more details.