{"id":226372,"date":"2024-08-09T18:36:21","date_gmt":"2024-08-09T18:36:21","guid":{"rendered":"https:\/\/datatrue.com\/?page_id=226372"},"modified":"2025-02-25T20:44:29","modified_gmt":"2025-02-25T20:44:29","slug":"ga4-and-gtm-guide-for-ecommerce","status":"publish","type":"page","link":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/","title":{"rendered":"GA4 and GTM guide for Ecommerce 101"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#042A14&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h1 style=\"text-align: center;\"><span style=\"font-weight: 400;\"><span style=\"color: #ffffff;\">GA4 and GTM Guide for E-commerce<\/span><\/span><\/h1>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||-42px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;2_3,1_3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;2_3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;s1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<div class=\"et_pb_text_inner\">\n<div data-shortcode-id=\"1.0.0.0-1723743637134\" data-quickaccess-editable=\"yes\" class=\"et-fb-popover-tinymce\">\n<div class=\"mce-content-body\" contenteditable=\"true\" style=\"position: relative;\">\n<h1><b>Google Analytics 4 and Google Tag Manager Guide for Ecommerce<\/b><\/h1>\n<p><span style=\"font-weight: 400;\">Effective data tracking is critical for ecommerce sites. Understanding how users interact with your website can make all the difference to securing sales and ensuring the success of your business.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Integrating Google Tag Manager (GTM) and Google Analytics 4 (GA4) is a crucial aspect of ensuring your ecommerce data is insightful and accurate.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In our comprehensive guide, we will take you through the key information you need to successfully set up GTM and GA4 for ecommerce sites.<\/span><\/p>\n<h2><b>How does ecommerce event tracking work in GA4?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Tracking ecommerce events in GA4 is fundamentally similar to tracking other types of events. You&#8217;ll set up tags or code to trigger when specific events take place. You&#8217;ll then be able to access information about these events within GA4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">GA4&#8217;s predecessor, Universal Analytics, used the Enhanced Ecommerce model to house most ecommerce event tracking. In July 2023, Google Universal Analytics ceased processing data. This necessitated a transition to Google Analytics 4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In GA4, ecommerce tracking is more integrated into overall event tracking processes. This allows for a more fluid ability to track ecommerce events. When using GA4, you can more easily get a holistic image of what&#8217;s happening on your site compared to UA.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It&#8217;s also important to note changes in metrics and terminology between UA and GA4. Check out Google&#8217;s complete guide to<\/span><a href=\"https:\/\/support.google.com\/analytics\/answer\/11986666\"> <span style=\"font-weight: 400;\">comparing metrics in UA and GA4 here<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As with any GA4 set-up, you have the option to manually add GA4 code to your website for event tracking. Alternatively, you can use tag-based solutions like Google Tag Manager.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This guide will focus on the latter approach.<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_blurb title=&#8221;Table of Contents&#8221; use_icon=&#8221;on&#8221; content_max_width=&#8221;768px&#8221; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;ABeeZee|700|||||||&#8221; header_text_align=&#8221;center&#8221; background_color=&#8221;#D3E8E8&#8243; width=&#8221;100%&#8221; custom_margin=&#8221;|||0px|false|false&#8221; custom_padding=&#8221;|||20px|false|false&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li><a href=\"#s1\">Introduction<\/a><\/li>\n<li><a href=\"#s1\">How does ecommerce event tracking work in GA4?<\/a><\/li>\n<li><a href=\"#s2\">How to set up GA4 ecommerce event tracking<\/a><\/li>\n<li><a href=\"#s3\">Types of ecommerce events in GA4<\/a><\/li>\n<li><a href=\"#s4\">What product data can be tracked in GA4<\/a><\/li>\n<li><a href=\"#s4\">Key ecommerce events in GA4<\/a><\/li>\n<li><a href=\"#s5\">What is the GA4 ecommerce purchase report?<\/a><\/li>\n<li><a href=\"#s6\">Complying with the GDPR and CCPA while tracking ecommerce events in GA4<\/a><\/li>\n<li><a href=\"#s6\">Improve your ecommerce reporting with DataTrue<\/a><\/li>\n<\/ul>\n<p>[\/et_pb_blurb][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;s2&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><b>How to set up GA4 ecommerce event tracking<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Let&#8217;s briefly go over the basic process of setting up event tracking in GA4. For this section, we will focus on setting up ecommerce event tracking where a data layer is in use on your website.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For a more in-depth explanation and information on setting up events without a data layer, check out our in-depth guide to setting up GA4 event tracking.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; min_height=&#8221;5127.7px&#8221; custom_margin=&#8221;-54px|||||&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;64px|auto|64px|auto|true|&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_blurb title=&#8221;Guide to set up GA4 event tracking&#8221; use_icon=&#8221;on&#8221; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_level=&#8221;h3&#8243; header_text_align=&#8221;center&#8221; background_color=&#8221;#D3E8E8&#8243; max_width=&#8221;87%&#8221; min_height=&#8221;335.7px&#8221; custom_margin=&#8221;-33px|||||&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ol>\n<li style=\"font-weight: 400; text-align: left;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a GA4 event tag in your Google Tag Manager container.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Configure your GA4 event tag with your desired parameters, inputting an appropriate name in the left field and selecting the data layer variable with the relevant information in the right field.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the GA4 event tag, add a trigger. In the event name field, enter the name of the data layer event you want to trigger the tag.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click &#8220;Preview&#8221; and trigger relevant events on your website. In the GTM preview pane, ensure that the correct event data is being captured and sent to GA4.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Publish your changes.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Test your changes after publication and on a regular, ongoing basis.<\/span><\/li>\n<\/ol>\n<p>[\/et_pb_blurb][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; min_height=&#8221;1198.8px&#8221; custom_padding=&#8221;1px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;s3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-56px|||||&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><b>Types of ecommerce events in GA4<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">There are 4 major event types in GA4. 2 of these event types are collected in GA4 by default. These are automatically collected events and enhanced measurement events.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The other 2 event types require more work on the part of the user to set up. These are recommended events and custom events.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here are the major events likely to be of use to ecommerce websites, sorted into these 4 categories.<\/span><\/p>\n<h3><b>Automatically collected ecommerce events<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">As the name implies, automatically collected events are automatically tracked once the<\/span><a href=\"https:\/\/support.google.com\/analytics\/answer\/9234069\"> <span style=\"font-weight: 400;\">initial GA4 setup<\/span><\/a><span style=\"font-weight: 400;\"> has taken place. You will see data about these events without needing to take any additional steps.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Aside from foundational web tracking events such as page_view, scroll and session_start, the only automatically collected event ecommerce sites should pay particular attention to is view_search_results.<\/span><\/p>\n<h3><b>Enhanced measurement ecommerce events<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Enhanced measurement events can collect additional data when specific actions are triggered. For example, these events can allow you to collect additional data on page views, scrolls and more.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For instance, tag configuration allows you to make the view_search_results event trigger for a wider array of URL query parameters than are available by default.<\/span><\/p>\n<h3><b>Recommended ecommerce events<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Recommended events are commonplace events that have predefined names and parameters in GA4. This means they are relatively simple to implement in GA4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For most sites, the majority of ecommerce tracking will take place with recommended events.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Recommended events that are likely to be of importance to an ecommerce site include<\/span><\/p>\n<p>[\/et_pb_text][et_pb_blurb title=&#8221;Recommended events&#8221; use_icon=&#8221;on&#8221; content_max_width=&#8221;583px&#8221; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_level=&#8221;h3&#8243; header_text_align=&#8221;left&#8221; background_color=&#8221;#D3E8E8&#8243; max_width=&#8221;40%&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; custom_margin=&#8221;|||6px|false|false&#8221; custom_padding=&#8221;|||67px|false|false&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">login<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">purchase<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">refund<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">search<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">sign_up<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">add_payment_info<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">add_shipping_info<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">add_to_cart<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">add_to_wishlist<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">begin_checkout<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">remove_from_cart<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">select_item<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">select_promotion<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">view_cart<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">view_item<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">view_item_list<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">view_promotion<\/span><\/li>\n<\/ul>\n<p>[\/et_pb_blurb][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-102px|||||&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3><b>Custom ecommerce events<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">For highly specialised ecommerce events, you can create your custom event. Creating custom events is a far more manual process than utilising any other event type on GA4, as you need to provide custom parameters and triggers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">While custom events can be a useful way to get even more insight out of your GA4 setup, defining parameters and triggers yourself can be time-consuming and prone to user error.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As such, it&#8217;s best to rely on other kinds of events where possible.<\/span><\/p>\n<h2><b>What product data can be tracked in GA4?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">When setting up ecommerce event tracking in GA4, you naturally want to get information about the products customers are buying. This helps you understand not only your best-selling products, but also popular categories, and information on how customers come across particular products.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In GA4, product data is collected in a type of parameter known as items array. For an items array to function, it requires one of the following 2 parameters to be set.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_blurb title=&#8221;List of Parameters&#8221; use_icon=&#8221;on&#8221; content_max_width=&#8221;750px&#8221; module_id=&#8221;s4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_level=&#8221;h3&#8243; header_text_align=&#8221;center&#8221; background_color=&#8221;#D3E8E8&#8243; max_width=&#8221;87%&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">For an items array to function, it requires one of the following 2 parameters to be set:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400; text-align: left;\" aria-level=\"1\"><b>item_id: <\/b><span style=\"font-weight: 400;\">For instance, SKU_12345.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>item_name: <\/b><span style=\"font-weight: 400;\">For instance, Camo Hoodie.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Other significant item parameters that can be set include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>coupon: <\/b><span style=\"font-weight: 400;\">The name of a coupon associated with the item.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>discount:<\/b><span style=\"font-weight: 400;\"> A monetary discount value associated with the item.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>item_brand: <\/b><span style=\"font-weight: 400;\">The brand of the item.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>item_category: <\/b><span style=\"font-weight: 400;\">Designated item categories, such as &#8220;Apparel&#8221;, &#8220;Adult&#8221;, &#8220;Hoodies&#8221;. You can have up to 5 item_category parameters in an array, organised by hierarchy.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>item_list_id: <\/b><span style=\"font-weight: 400;\">The name of the list in which the item was presented to the user, such as &#8220;related_products&#8221;.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>price: <\/b><span style=\"font-weight: 400;\">The monetary unit price of the item.<\/span><\/li>\n<\/ul>\n<p>[\/et_pb_blurb][et_pb_text _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">In addition to required and recommended parameters in the items array, you can also add up to 27 custom parameters.<\/span><\/p>\n<h2><b>Key ecommerce events in GA4<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Let&#8217;s dive into some of the most significant recommended ecommerce events in GA4, and how you can most effectively track them.<\/span><\/p>\n<h3><b>view_item_list<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">This event tracks when a user is presented with a list of products on your site. For example, if they are on a product page, they may see a list of related items.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It requires an item array to function and can be modified with item_list_id and item_list_name parameters. However, these parameters are not necessary if they are set at the item level.<\/span><\/p>\n<h3><b>view_item<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">This event can be used to show that a customer has seen some content relating to an item. For example, if they have seen an item&#8217;s detail page, this event should fire.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It requires an item array to function. Setting a value parameter (i.e. 25.00) is generally required for useful reporting. If you set a parameter for value, it is required to set a parameter for currency (i.e. AUD).<\/span><\/p>\n<h3><b>begin_checkout<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">begin_checkouts events fire when users begin the checkout process by pressing the appropriate button on your site. Similarly to view_item, this event requires value and currency parameters in addition to the items array.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can also set a coupon parameter. Note that item-level and event-level coupon parameters are separate.<\/span><\/p>\n<h3><b>add_shipping_info<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">This event indicates a user has added their shipping information in the checkout process. It requires value and currency parameters and an items array. Coupon parameters can also be set.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Another parameter that can be set for this event is the shipping tier. This refers to the selected form of shipping, such as air or next-day.<\/span><\/p>\n<h3><b>purchase and refund<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The purchase and refund events are exactly what their names indicate. They indicate that a purchase or a refund has taken place.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_blurb title=&#8221;Events in GA4&#8243; use_icon=&#8221;on&#8221; content_max_width=&#8221;672px&#8221; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_level=&#8221;h3&#8243; header_text_align=&#8221;center&#8221; background_color=&#8221;#D3E8E8&#8243; width=&#8221;100%&#8221; max_width=&#8221;69%&#8221; module_alignment=&#8221;left&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">These 2 events rely on the same parameters:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>items array<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>currency<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>value<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>coupon<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>transaction_id:<\/b><span style=\"font-weight: 400;\"> A unique string of numbers which identifies each transaction, i.e. T_12345.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>shipping: <\/b><span style=\"font-weight: 400;\">Not to be confused with shipping_tier, shipping is the monetary value associated with the transaction, i.e. 4.45.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>tax: <\/b><span style=\"font-weight: 400;\">The monetary value associated with the transaction, i.e. 3.00.<\/span><\/li>\n<\/ul>\n<p>[\/et_pb_blurb][et_pb_text _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><b>What is the GA4 ecommerce purchases report?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Once you have completed the initial GA4 setup, you can access a premade<\/span><a href=\"https:\/\/support.google.com\/analytics\/answer\/12924131\"> <span style=\"font-weight: 400;\">ecommerce purchases report<\/span><\/a><span style=\"font-weight: 400;\">. This report is an ideal starting point for GA4 ecommerce setup.<\/span><\/p>\n<p>[\/et_pb_text][et_pb_blurb title=&#8221;Dimensions and Metrics&#8221; use_icon=&#8221;on&#8221; module_id=&#8221;s5&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_level=&#8221;h3&#8243; header_text_align=&#8221;center&#8221; background_color=&#8221;#D3E8E8&#8243; max_width=&#8221;85%&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p><span style=\"font-weight: 400;\">This report includes the following dimensions:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Item brand: <\/b><span style=\"font-weight: 400;\">Populated from the item-level item_brand parameter in an event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Item category: <\/b><span style=\"font-weight: 400;\">This is the first hierarchical item in which items are classified. For example, in Tech\/Phones\/iPhones, Tech is the first category. It is populated from the item-level item_category parameter.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Item category 2-5: <\/b><span style=\"font-weight: 400;\">You can have up to 5 item categories in this report, each with a number corresponding to its place in the hierarchy. Item category 2 is populated by the item_category2 parameter, item category 3 by the item_category 3 parameter, and so on.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Item ID: <\/b><span style=\"font-weight: 400;\">The specified ID for an item, populated by the item_id parameter.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Item name: <\/b><span style=\"font-weight: 400;\">The name of the item, populated by the item_name parameter.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">This report also includes the following metrics:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Item revenue: <\/b><span style=\"font-weight: 400;\">The total revenue from items only, excluding tax and shipping.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Items added to cart: <\/b><span style=\"font-weight: 400;\">The number of items added to the cart, populated by the items array in an add_to_cart event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Items purchased: <\/b><span style=\"font-weight: 400;\">The number of items purchased, populated by the items array in a purchase event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Items viewed: <\/b><span style=\"font-weight: 400;\">The number of items viewed, populated by the items array in a view_items event.<\/span><\/li>\n<\/ul>\n<p>[\/et_pb_blurb][et_pb_text module_id=&#8221;s6&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><b>Complying with the GDPR and CCPA while tracking ecommerce events in GA4<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">While data can be exceptionally valuable for your business, it&#8217;s important to remember the risks it can pose. Data privacy regulations are in place around the globe to ensure data is safely and responsibly handled by corporations.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You must comply with data privacy regulations that are in place in any jurisdiction from which your website can be accessed. 2 key regulations are the European Union&#8217;s General Data Protection Regulation and the California Consumer Privacy Act.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When tracking ecommerce events in GA4, and in the process of operating an ecommerce site generally, personally identifiable information your business may find itself collecting includes:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Name<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Email addresses<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Location information<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Credit card information<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Some key principles to remember when handling PII are:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PII must be stored securely and be protected from threats, both internal and external.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The minimum amount of data for business operations should be collected.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Customers have the right to know what data of theirs is being collected and retained by a business.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">To take some of the stress out of complying with these regulations, lean on DataTrue. DataTrue&#8217;s privacy and compliance tool set includes<\/span><a href=\"https:\/\/datatrue.com\/en\/sensitive-data-alerts-pii\/\"> <span style=\"font-weight: 400;\">sensitive data leak alerts<\/span><\/a><span style=\"font-weight: 400;\"> which let you know if you&#8217;re at risk of sharing PII.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can also rely on<\/span><a href=\"https:\/\/datatrue.com\/en\/privacy-policy-audits\/\"> <span style=\"font-weight: 400;\">cookie policy audits<\/span><\/a><span style=\"font-weight: 400;\"> to ensure your business is complying with regulations across the board.<\/span><\/p>\n<h2><b>Improve your ecommerce reporting with DataTrue<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">When you go through the lengthy process of optimising your GA4 setup for your ecommerce site, you want to ensure you are collecting the best possible data. For that, rely on DataTrue.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DataTrue&#8217;s<\/span><a href=\"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/\"> <span style=\"font-weight: 400;\">automated data layer testing<\/span><\/a><span style=\"font-weight: 400;\"> ensures this all-important part of your setup is working properly. DataTrue also offers a range of tag audit tools to ensure each and every one is functioning as intended.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In addition, you can take advantage of<\/span><a href=\"https:\/\/datatrue.com\/en\/web-analytics-testing\/\"> <span style=\"font-weight: 400;\">web analytics testing<\/span><\/a><span style=\"font-weight: 400;\"> features such as simulation tests, coverage tests and validation maps. Book your<\/span><a href=\"https:\/\/datatrue.zohobookings.com\/#\/customer\/demo\"> <span style=\"font-weight: 400;\">DataTrue demo<\/span><\/a><span style=\"font-weight: 400;\"> today and elevate your ecommerce tracking process.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GA4 and GTM Guide for E-commerce Google Analytics 4 and Google Tag Manager Guide for Ecommerce Effective data tracking is critical for ecommerce sites. Understanding how users interact with your website can make all the difference to securing sales and ensuring the success of your business. Integrating Google Tag Manager (GTM) and Google Analytics 4 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-226372","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GA4 and GTM guide for Ecommerce 101 - DataTrue<\/title>\n<meta name=\"description\" content=\"Validate data collected by Analytics Tracking Tags in Websites &amp; Mobile apps. Enterprise-grade quality assurance for Reporting, Consent &amp; Privacy Compliance and Agile Development cycles.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GA4 and GTM guide for Ecommerce 101 - DataTrue\" \/>\n<meta property=\"og:description\" content=\"Validate data collected by Analytics Tracking Tags in Websites &amp; Mobile apps. Enterprise-grade quality assurance for Reporting, Consent &amp; Privacy Compliance and Agile Development cycles.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"DataTrue\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/datatruedigital\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-25T20:44:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1328\" \/>\n\t<meta property=\"og:image:height\" content=\"208\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@data_true\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-and-gtm-guide-for-ecommerce\\\/\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-and-gtm-guide-for-ecommerce\\\/\",\"name\":\"GA4 and GTM guide for Ecommerce 101 - DataTrue\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#website\"},\"datePublished\":\"2024-08-09T18:36:21+00:00\",\"dateModified\":\"2025-02-25T20:44:29+00:00\",\"description\":\"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-and-gtm-guide-for-ecommerce\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-and-gtm-guide-for-ecommerce\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-and-gtm-guide-for-ecommerce\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GA4 and GTM guide for Ecommerce 101\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\",\"name\":\"DataTrue\",\"description\":\"Web Analytics Quality Assurance\",\"publisher\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/datatrue.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\",\"name\":\"DataTrue\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/datatrue.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/New-DT-Logo.png\",\"contentUrl\":\"https:\\\/\\\/datatrue.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/New-DT-Logo.png\",\"width\":1328,\"height\":208,\"caption\":\"DataTrue\"},\"image\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/datatruedigital\\\/\",\"https:\\\/\\\/x.com\\\/data_true\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/Datatrue\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GA4 and GTM guide for Ecommerce 101 - DataTrue","description":"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/","og_locale":"en_US","og_type":"article","og_title":"GA4 and GTM guide for Ecommerce 101 - DataTrue","og_description":"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.","og_url":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/","og_site_name":"DataTrue","article_publisher":"https:\/\/www.facebook.com\/datatruedigital\/","article_modified_time":"2025-02-25T20:44:29+00:00","og_image":[{"width":1328,"height":208,"url":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@data_true","twitter_misc":{"Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/","url":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/","name":"GA4 and GTM guide for Ecommerce 101 - DataTrue","isPartOf":{"@id":"https:\/\/datatrue.com\/en\/#website"},"datePublished":"2024-08-09T18:36:21+00:00","dateModified":"2025-02-25T20:44:29+00:00","description":"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.","breadcrumb":{"@id":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/datatrue.com\/en\/ga4-and-gtm-guide-for-ecommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datatrue.com\/en\/"},{"@type":"ListItem","position":2,"name":"GA4 and GTM guide for Ecommerce 101"}]},{"@type":"WebSite","@id":"https:\/\/datatrue.com\/en\/#website","url":"https:\/\/datatrue.com\/en\/","name":"DataTrue","description":"Web Analytics Quality Assurance","publisher":{"@id":"https:\/\/datatrue.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datatrue.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/datatrue.com\/en\/#organization","name":"DataTrue","url":"https:\/\/datatrue.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datatrue.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","contentUrl":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","width":1328,"height":208,"caption":"DataTrue"},"image":{"@id":"https:\/\/datatrue.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/datatruedigital\/","https:\/\/x.com\/data_true","https:\/\/www.youtube.com\/c\/Datatrue"]}]}},"_links":{"self":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/pages\/226372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/comments?post=226372"}],"version-history":[{"count":0,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/pages\/226372\/revisions"}],"wp:attachment":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/media?parent=226372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}