{"id":65347,"date":"2024-11-21T15:28:04","date_gmt":"2024-11-21T09:28:04","guid":{"rendered":"https:\/\/hasthemes.com\/blog\/?p=65347"},"modified":"2026-10-13T15:30:01","modified_gmt":"2026-10-13T09:30:01","slug":"ecommerce-tracking-in-google-analytics","status":"publish","type":"post","link":"https:\/\/hasthemes.com\/blog\/ecommerce-tracking-in-google-analytics\/","title":{"rendered":"How to Set Up eCommerce Tracking in Google Analytics (GA4 Guide)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Most store owners know their total sales. Fewer know which pages, products, and campaigns create those sales. eCommerce tracking in Google Analytics 4 (GA4) closes that gap. It records product views, add-to-cart actions, checkouts, and purchases, then shows them in reports.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide covers three ways to set it up: custom gtag.js code, Google Tag Manager (GTM), and a plugin or app. It also shows how to read the GA4 ecommerce reports and fix common problems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quick answer:<\/strong> To set up eCommerce tracking in GA4, send ecommerce events such as <code>view_item<\/code>, <code>add_to_cart<\/code>, <code>begin_checkout<\/code>, and <code>purchase<\/code> to your GA4 property. Each event carries an <code>items<\/code> array with product details. You can send them with gtag.js, Google Tag Manager, or a plugin. Then confirm the events in DebugView and check the Monetization reports<\/p>\n\n\n\n<div class=\"gutentoc tocactive ollist\"><div class=\"gutentoc-toc-wrap\"><div class=\"gutentoc-toc-title-wrap\"><div class=\"gutentoc-toc-title\">Table Of Contents<\/div><div id=\"open\" class=\"text_open\">show<\/div><\/div><div id=\"toclist\"><div class=\"gutentoc-toc__list-wrap\"><ul class=\"gutentoc-toc__list\"><li><a href=\"#what-is-ecommerce-tracking-in-google-analytics\">What is eCommerce Tracking in Google Analytics?<\/a><\/li><li><a href=\"#why-ecommerce-tracking-is-important\">Why eCommerce Tracking is Important<\/a><\/li><li><a href=\"#benefits-of-using-google-analytics-for-ecommerce-tracking\">Benefits of using Google Analytics for eCommerce Tracking<\/a><\/li><li><a href=\"#prerequisites-for-setting-up-ecommerce-tracking\">Prerequisites for Setting Up eCommerce Tracking<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#google-analytics-account\">Google Analytics Account<\/a><\/li><li><a href=\"#ecommerce-website\">eCommerce Website<\/a><\/li><li><a href=\"#administrator-access\">Administrator Access<\/a><\/li><\/ul><li><a href=\"#step-by-step-guide-to-setting-up-ecommerce-tracking\">Step-by-Step Guide to Setting Up eCommerce Tracking<\/a><\/li><li><a href=\"#setting-up-ecommerce-tracking-directly-adding-javascript-to-your-site\">Setting Up eCommerce Tracking Directly Adding JavaScript to Your Site<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#step-1-add-ga4-tracking-code-to-your-site\">Step 1: Add GA4 Tracking Code to Your Site<\/a><\/li><li><a href=\"#step-2-implement-ecommerce-events-with-custom-code\">Step 2: Implement eCommerce Events with Custom Code<\/a><\/li><li><a href=\"#step-3-verify-events-in-ga4\">Step 3: Verify Events in GA4<\/a><\/li><\/ul><li><a href=\"#setting-up-ecommerce-tracking-using-google-tag-manager-gtm\">Setting Up eCommerce Tracking Using Google Tag Manager (GTM)<\/a><\/li><li><a href=\"#setting-up-ecommerce-tracking-using-plugins-or-third-party-apps\">Setting Up eCommerce Tracking Using Plugins or Third-Party Apps<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#for-wordpress-using-the-ht-easy-ga4-plugin\">For WordPress: Using the HT Easy GA4 Plugin<\/a><\/li><li><a href=\"#for-shopify-using-the-analyzely-ga4-app\">For Shopify: Using the Analyzely GA4 App<\/a><\/li><\/ul><li><a href=\"#interpreting-ecommerce-reports-in-google-analytics\">Interpreting eCommerce Reports in Google Analytics<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#overview-report\">Overview Report<\/a><\/li><li><a href=\"#product-performance-report\">Product Performance Report<\/a><\/li><li><a href=\"#sales-performance-report\">Sales Performance Report<\/a><\/li><\/ul><li><a href=\"#frequently-asked-questions\">Frequently Asked Questions<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/div><\/div><\/div><\/div>\n\n\n\n<h2 id=\"what-is-ecommerce-tracking-in-google-analytics\" class=\"wp-block-heading\">What is eCommerce Tracking in Google Analytics?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">eCommerce tracking sends shopping actions from your store to <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/hasthemes.com\/blog\/what-is-google-analytics\/\">Google Analytics<\/a>. Each action is an event. Each event includes details about the product, such as its ID, name, price, and quantity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google lists these events in its <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/ecommerce\">Measure ecommerce guide<\/a>. The most common ones are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>view_item<\/code>: a visitor views a product page.<\/li>\n\n\n\n<li><code>add_to_cart<\/code>: a visitor adds a product to the cart.<\/li>\n\n\n\n<li><code>begin_checkout<\/code>: a visitor starts checkout.<\/li>\n\n\n\n<li><code>purchase<\/code>: an order is completed.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">With these events, GA4 can report revenue, purchasers, and product performance. Without them, your ecommerce reports stay empty.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GA4 Terms That Changed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Many older guides still use Universal Analytics terms. GA4 uses different names.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Old term<\/th><th>GA4 term<\/th><\/tr><tr><td>Goals and conversions<\/td><td><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/support.google.com\/analytics\/answer\/13128484\">Key events<\/a><\/td><\/tr><tr><td>Session conversion rate<\/td><td>Session key event rate<\/td><\/tr><tr><td>Ecommerce overview<\/td><td>Monetization overview<\/td><\/tr><tr><td>Product performance<\/td><td>Ecommerce purchases<\/td><\/tr><tr><td>Shopping behavior<\/td><td>Purchase journey<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In GA4, the word &#8220;conversion&#8221; now mostly belongs to Google Ads. When you share a key event with Google Ads, it becomes a conversion there.<\/p>\n\n\n\n<h2 id=\"why-ecommerce-tracking-is-important\" class=\"wp-block-heading\">Why eCommerce Tracking is Important?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Online shopping keeps taking a bigger share of retail. The U.S. Census Bureau reports that U.S. retail eCommerce sales reached $340.2 billion in Q2 2026. That was 17.1% of total retail sales and 12.2% higher than Q2 2025. These figures are seasonally adjusted. They are not adjusted for price changes (<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.census.gov\/retail\/mrts\/www\/data\/pdf\/ec_current.pdf\">U.S. Census Bureau, Quarterly Retail E-Commerce Sales<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the full year 2025, the Census Bureau estimated eCommerce sales at $1,233.7 billion. That was up 5.4% from 2024 and 16.4% of total retail sales (<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.census.gov\/retail\/ecommerce.html\">U.S. Census Bureau<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More online sales also means more competition. Tracking shows you which products, pages, and channels turn visitors into buyers. Without it, you are guessing where to spend your time and ad budget.<\/p>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px;font-size:clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.313), 18px);\">Recommended Blogs for You:<br>\ud83d\udc49 <a href=\"https:\/\/hasthemes.com\/blog\/how-to-find-referral-traffic-in-google-analytics\/\">How to Find Referral Traffic in Google Analytics<\/a><br>\ud83d\udc49 <a href=\"https:\/\/hasthemes.com\/blog\/how-to-track-website-traffic\/\">How to Track Website Traffic Using Google Analytics<\/a><br>\ud83d\udc49 <a href=\"https:\/\/hasthemes.com\/blog\/facebook-pixel-vs-google-analytics\/\">Facebook Pixel vs Google Analytics: The Complete Showdown<\/a><br>\ud83d\udc49 <a href=\"https:\/\/hasthemes.com\/blog\/best-woocommerce-google-analytics-plugins\/\">5 Best WooCommerce Google Analytics Plugins<\/a><\/p>\n\n\n\n<h2 id=\"benefits-of-using-google-analytics-for-ecommerce-tracking\" class=\"wp-block-heading\">Benefits of Using Google Analytics for eCommerce Tracking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Implementing eCommerce tracking in Google Analytics offers many benefits for online businesses. Here are some key advantages:<\/p>\n\n\n\n<h4 id=\"1-comprehensive-customer-insights\" class=\"wp-block-heading\">1. See What Customers Do Before They Buy<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 shows how visitors move through your store. You can see which products they view, which they add to the cart, and where they leave.<\/p>\n\n\n\n<h4 id=\"2-enhanced-marketing-effectiveness\" class=\"wp-block-heading\">2. Find the Channels That Bring Sales<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">You can compare email, social, search, and paid ads by purchases and revenue. This helps you move budget to the channels that actually earn money, not just clicks.<\/p>\n\n\n\n<h4 id=\"3-improved-product-performance-analysis\" class=\"wp-block-heading\">3. Learn Which Products Perform<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The Ecommerce purchases report shows items viewed, added to cart, and purchased. A product with many views but few cart adds may have a price, image, or description problem.<\/p>\n\n\n\n<h4 id=\"4-accurate-conversion-tracking\" class=\"wp-block-heading\">4. Measure Conversion the GA4 Way<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 marks <code>purchase<\/code> as a key event by default (<a href=\"https:\/\/support.google.com\/analytics\/answer\/13128484\" target=\"_blank\" rel=\"noopener\">Google Analytics Help<\/a>). You can then watch the session key event rate to see how many sessions end in a purchase.<\/p>\n\n\n\n<h4 id=\"5-customer-segmentation\" class=\"wp-block-heading\">5. Spot Cart and Checkout Drop-Off<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The Purchase journey report and funnel explorations show where shoppers stop. If many users start checkout but few buy, check shipping costs, payment options, and form length.<\/p>\n\n\n\n<h4 id=\"6-detailed-sales-and-revenue-reports\" class=\"wp-block-heading\">6. Build Better Audiences<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Purchase data lets you build audiences, such as cart abandoners or repeat buyers. You can use them for remarketing and for email or <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/hasthemes.com\/blog\/ecommerce-marketing-strategy\/\">marketing strategies<\/a>.<\/p>\n\n\n\n<h4 id=\"7-cart-abandonment-analysis\" class=\"wp-block-heading\">7. Connect Your Data to Other Google Tools<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 links to Google Ads and Search Console. This gives you a clearer view from search or ad click to final purchase.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites for Setting Up eCommerce Tracking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you start, check these items:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A GA4 property and web data stream.<\/strong> If you do not have one, follow our steps to <a href=\"https:\/\/hasthemes.com\/blog\/how-to-add-google-analytics-to-shopify\/#step-1-create-a-google-analytics-4-account\" target=\"_blank\" rel=\"noopener\">create a Google Analytics 4 account<\/a>. You will need the Measurement ID (it starts with G-).<\/li>\n\n\n\n<li><strong>A store that can output product and order data.<\/strong> WooCommerce, Shopify, and custom stores all can, but the setup differs.<\/li>\n\n\n\n<li><strong>The right access.<\/strong> You need Editor access or higher in GA4. You also need admin access to your site, and to GTM if you use it.<\/li>\n\n\n\n<li><strong>Privacy consent.<\/strong> If you serve visitors in regions with consent rules, set up a consent banner before you collect data.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Which Setup Method Should You Choose?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Method<\/th><th>Best for<\/th><th>Skill needed<\/th><th>Control<\/th><\/tr><tr><td>Custom gtag.js code<\/td><td>Custom-built stores<\/td><td>High (developer)<\/td><td>Full<\/td><\/tr><tr><td>Google Tag Manager<\/td><td>Teams that change tags often<\/td><td>Medium<\/td><td>High<\/td><\/tr><tr><td>Plugin or app<\/td><td>WordPress\/WooCommerce and Shopify stores<\/td><td>Low<\/td><td>Limited to supported events<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you run WooCommerce or Shopify and want the fastest route, start with a plugin or app. If you need custom events, use GTM or custom code.<\/p>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\"><strong>Important:<\/strong> Use only one method for the same events. If a plugin and GTM both send <code>purchase<\/code>, GA4 will count orders twice.<\/p>\n\n\n\n<h2 id=\"setting-up-ecommerce-tracking-directly-adding-javascript-to-your-site\" class=\"wp-block-heading\">Setting Up eCommerce Tracking Directly Adding JavaScript to Your Site<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Add eCommerce Tracking With gtag.js<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This method puts JavaScript directly in your site. You will likely need a developer.<\/p>\n\n\n\n<h3 id=\"step-1-add-ga4-tracking-code-to-your-site\" class=\"wp-block-heading\">Step 1: Add the GA4 Tag to Your Site<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In Google Analytics, go to <strong>Admin<\/strong>, open <strong>Data streams<\/strong>, and select your web stream. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"295\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/view-tag-instructions.png\" alt=\"Click on View Tag Instructions\" class=\"wp-image-65598\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/view-tag-instructions.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/view-tag-instructions-768x302.png 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Click on View Tag Instructions<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click <strong>View tag instructions<\/strong> and choose <strong>Install manually<\/strong>. Copy the gtag.js code and paste it into the <code>&lt;head><\/code> of every page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"301\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/copy-google-analytics-code.png\" alt=\"Copy the Code\" class=\"wp-image-65599\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/copy-google-analytics-code.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/copy-google-analytics-code-768x308.png 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Copy the Code<\/figcaption><\/figure>\n\n\n\n<h3 id=\"step-2-implement-ecommerce-events-with-custom-code\" class=\"wp-block-heading\">Step 2: Send eCommerce Events<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll need to add JavaScript code for each specific eCommerce event directly on your site\u2019s pages. The primary events include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li id=\"-view_item--when-a-product-page-is-viewed\"><strong>view_item<\/strong> (when a product page is viewed)<\/li>\n\n\n\n<li id=\"-add_to_cart--when-an-item-is-added-to-the-cart\"><strong>add_to_cart<\/strong> (when an item is added to the cart)<\/li>\n\n\n\n<li id=\"-begin_checkout--when-the-checkout-process-is-started\"><strong>begin_checkout<\/strong> (when the checkout process is started)<\/li>\n\n\n\n<li id=\"-purchase--when-a-purchase-is-completed\"><strong>purchase<\/strong> (when a purchase is completed)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example of how to implement each event:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>view_item<\/strong> Event (Product Page View):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'view_item', {\n    currency: 'USD',\n    value: 50.0,\n    items: &#91;{\n        item_id: 'P12345',\n        item_name: 'Product Name',\n        price: 50.0,\n        quantity: 1\n    }]\n});\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>add_to_cart<\/strong> Event:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'add_to_cart', {\n    currency: 'USD',\n    value: 50.0,\n    items: &#91;{\n        item_id: 'P12345',\n        item_name: 'Product Name',\n        price: 50.0,\n        quantity: 1\n    }]\n});\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>begin_checkout<\/strong> Event:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'begin_checkout', {\n    currency: 'USD',\n    value: 100.0,\n    items: &#91;{\n        item_id: 'P12345',\n        item_name: 'Product Name',\n        price: 50.0,\n        quantity: 2\n    }]\n});\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>purchase<\/strong> Event:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'purchase', {\n    transaction_id: 'T12345',\n    currency: 'USD',\n    value: 100.0,\n    tax: 5.0,\n    shipping: 10.0,\n    items: &#91;{\n        item_id: 'P12345',\n        item_name: 'Product Name',\n        price: 50.0,\n        quantity: 2\n    }]\n});\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Send eCommerce Events<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add an event for each shopping action. Google documents each event and its parameters in the <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/ecommerce\">gtag.js ecommerce guide<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>view_item (product page view):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'view_item', {\n  currency: 'USD',\n  value: 50.0,\n  items: &#91;{\n    item_id: 'P12345',\n    item_name: 'Product Name',\n    price: 50.0,\n    quantity: 1\n  }]\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>add_to_cart:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'add_to_cart', {\n  currency: 'USD',\n  value: 50.0,\n  items: &#91;{\n    item_id: 'P12345',\n    item_name: 'Product Name',\n    price: 50.0,\n    quantity: 1\n  }]\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>begin_checkout:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'begin_checkout', {\n  currency: 'USD',\n  value: 100.0,\n  items: &#91;{\n    item_id: 'P12345',\n    item_name: 'Product Name',\n    price: 50.0,\n    quantity: 2\n  }]\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>purchase:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gtag('event', 'purchase', {\n  transaction_id: 'T12345',\n  currency: 'USD',\n  value: 100.0,\n  tax: 5.0,\n  shipping: 10.0,\n  items: &#91;{\n    item_id: 'P12345',\n    item_name: 'Product Name',\n    price: 50.0,\n    quantity: 2\n  }]\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Keep these rules in mind:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Do not hard-code values.<\/strong> The sample values above are placeholders. Your store must fill in the real product, price, and order data.<\/li>\n\n\n\n<li><strong>Always send <code>currency<\/code> with <code>value<\/code>.<\/strong> Google requires the currency whenever you send revenue data.<\/li>\n\n\n\n<li><strong>Keep tax and shipping out of <code>value<\/code>.<\/strong> Send them in their own <code>tax<\/code> and <code>shipping<\/code> fields.<\/li>\n\n\n\n<li><strong>Use a unique <code>transaction_id<\/code>.<\/strong> It helps stop the same order from being counted twice.<\/li>\n\n\n\n<li><strong>Fire <code>purchase<\/code> once.<\/strong> Place it on the order confirmation page, and guard against page reloads.<\/li>\n\n\n\n<li><strong>Track refunds.<\/strong> Use the <code>refund<\/code> event for full or partial refunds (<a href=\"https:\/\/support.google.com\/analytics\/answer\/12200568\" target=\"_blank\" rel=\"noopener\">Google Analytics Help<\/a>).<\/li>\n<\/ul>\n\n\n\n<h3 id=\"step-3-verify-events-in-ga4\" class=\"wp-block-heading\">Step 3: Verify Events in GA4<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"312\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/google-analytics-reeal-time-reports.png\" alt=\"Google Analytics Realtime Reports\" class=\"wp-image-65596\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/google-analytics-reeal-time-reports.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/google-analytics-reeal-time-reports-768x319.png 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Google Analytics Realtime Reports<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Realtime<\/strong> to see if events arrive.<\/li>\n\n\n\n<li>For full detail, open <strong>Admin > DebugView<\/strong>. DebugView shows each event and its parameters, so you can confirm the <code>items<\/code> array is correct.<\/li>\n\n\n\n<li>Place a test order and check that <code>purchase<\/code> shows the right value, currency, and items.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Standard reports can take up to 24 to 48 hours to fill in, so do not judge your setup from them on day one.<\/p>\n\n\n\n<h3 id=\"setting-up-ecommerce-tracking-using-google-tag-manager-gtm\" class=\"wp-block-heading\">Method 2: Add eCommerce Tracking With Google Tag Manager (GTM)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Requirements:<\/strong> Google Tag Manager account, GA4 Property, a basic understanding of GTM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GTM does not create ecommerce data on its own. Your site must first push product and order data into the data layer. GTM then reads that data and sends it to GA4. Google explains this in its <a href=\"https:\/\/developers.google.com\/tag-manager\/ecommerce-ga4\" target=\"_blank\" rel=\"noopener\">GTM ecommerce guide<\/a>.<\/p>\n\n\n\n<h4 id=\"step-1-create-a-ga4-configuration-tag-in-gtm\" class=\"wp-block-heading\">Step 1: Add the Google Tag<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li id=\"log-in-to-your--google-tag-manager--account\">Log in to your <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Tag Manager<\/a> account.<\/li>\n\n\n\n<li id=\"choose-your-container-the-one-associated-with-your-site\">Choose your container (the one associated with your site).<\/li>\n\n\n\n<li id=\"go-to--tags--gt--new--gt--tag-configuration--and-select--ga4-configuration-\">Go to <strong>Tags<\/strong> &gt; <strong>New<\/strong> &gt; <strong>Tag Configuration<\/strong> and select <strong>GA4 Configuration<\/strong>.<\/li>\n\n\n\n<li id=\"enter-your-measurement-id-from-ga4-found-in-ga4-under--admin--gt--data-streams-\">Enter your Measurement ID from GA4 (found in GA4 under <strong>Admin<\/strong> &gt; <strong>Data Streams<\/strong>).<\/li>\n\n\n\n<li id=\"set-the-trigger-as--all-pages--to-track-general-data-across-your-site\">Set the trigger as <strong>All Pages<\/strong> to track general data across your site.<\/li>\n\n\n\n<li id=\"save-and-publish-the-tag\">Save and publish the tag.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Push eCommerce Data to the Data Layer<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Your developer or ecommerce plugin must add code like this when each action happens. Clear the old ecommerce object first, then push the new event:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dataLayer.push({ ecommerce: null });  \/\/ Clear the previous ecommerce object.\ndataLayer.push({\n  event: 'add_to_cart',\n  ecommerce: {\n    currency: 'USD',\n    value: 50.0,\n    items: &#91;{\n      item_id: 'P12345',\n      item_name: 'Product Name',\n      price: 50.0,\n      quantity: 1\n    }]\n  }\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For the order confirmation page, push the <code>purchase<\/code> event with a <code>transaction_id<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dataLayer.push({ ecommerce: null });\ndataLayer.push({\n  event: 'purchase',\n  ecommerce: {\n    transaction_id: 'T12345',\n    currency: 'USD',\n    value: 100.0,\n    tax: 5.0,\n    shipping: 10.0,\n    items: &#91;{\n      item_id: 'P12345',\n      item_name: 'Product Name',\n      price: 50.0,\n      quantity: 2\n    }]\n  }\n});<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Create Data Layer Variables<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In GTM, go to <strong>Variables &gt; New &gt; Data Layer Variable<\/strong>. Create one variable for each value you want to send:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>ecommerce.items<\/code> (name it &#8220;Ecommerce Items&#8221;)<\/li>\n\n\n\n<li><code>ecommerce.value<\/code> (name it &#8220;Ecommerce Value&#8221;)<\/li>\n\n\n\n<li><code>ecommerce.currency<\/code> (name it &#8220;Ecommerce Currency&#8221;)<\/li>\n\n\n\n<li><code>ecommerce.transaction_id<\/code> (name it &#8220;Ecommerce Transaction ID&#8221;)<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Create a Trigger for Each Event<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <strong>Triggers &gt; New<\/strong> and choose <strong>Custom Event<\/strong>. Set the event name to match the data layer event, such as <code>add_to_cart<\/code> or <code>purchase<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 5: Create a GA4 Event Tag for Each Event<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Tags > New<\/strong> and choose <strong>Google Analytics: GA4 Event<\/strong>.<\/li>\n\n\n\n<li>Select your Google tag or Measurement ID.<\/li>\n\n\n\n<li>Enter the event name exactly as GA4 expects it, such as <code>purchase<\/code>.<\/li>\n\n\n\n<li>Add event parameters: <code>items<\/code> = <code>{{Ecommerce Items}}<\/code>, <code>value<\/code> = <code>{{Ecommerce Value}}<\/code>, <code>currency<\/code> = <code>{{Ecommerce Currency}}<\/code>. For <code>purchase<\/code>, also add <code>transaction_id<\/code> = <code>{{Ecommerce Transaction ID}}<\/code>.<\/li>\n\n\n\n<li>Attach the matching Custom Event trigger.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Step 6: Test and Publish<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click <strong>Preview<\/strong> in GTM and walk through a test purchase. Confirm each tag fires once.<\/li>\n\n\n\n<li>Check <strong>DebugView<\/strong> in GA4 to confirm each event and its <code>items<\/code> array.<\/li>\n\n\n\n<li>Click <strong>Submit<\/strong> to publish the container.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-995f960e wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-palette-color-1-background-color has-background is-layout-flow wp-container-core-column-is-layout-a8bc7b4c wp-block-column-is-layout-flow\" style=\"padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)\">\n<h4 class=\"wp-block-heading has-text-align-center has-palette-color-8-color has-text-color has-medium-font-size\" id=\"ht-easy-ga4--google-analytics-4-\">HT Easy GA4 <\/h4>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center has-palette-color-8-color has-text-color\" id=\"ht-easy-ga4--google-analytics-4-\" style=\"font-size:clamp(18.959px, 1.185rem + ((1vw - 3.2px) * 0.863), 30px);\">#1 \ud83d\udcc8 Google Analytics Plugin for WordPress<\/h4>\n\n\n\n<p class=\"has-text-align-center has-palette-color-8-color has-text-color has-medium-font-size wp-block-paragraph\" style=\"padding-bottom:var(--wp--preset--spacing--30)\">\ud83d\ude80 Supercharge your WordPress website with analytical insights. (Including WooCommerce Report)<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-fe0a7de2 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size has-medium-font-size\"><a class=\"wp-block-button__link has-palette-color-2-color has-white-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/ht-easy-google-analytics\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Download for Free<\/strong><\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h2 id=\"setting-up-ecommerce-tracking-using-plugins-or-third-party-apps\" class=\"wp-block-heading\">Setting Up eCommerce Tracking Using Plugins or Third-Party Apps<\/h2>\n\n\n\n<h3 id=\"for-wordpress-using-the-ht-easy-ga4-plugin\" class=\"wp-block-heading\">For WordPress: Using the HT Easy GA4 Plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/hasthemes.com\/plugins\/google-analytics-plugin-for-wordpress\/\" target=\"_blank\" rel=\"noopener\">HT Easy GA4<\/a> connects WordPress to GA4 and works with WooCommerce. Here is the setup:<\/p>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Install and activate the <strong>HT Easy GA4<\/strong> plugin from the <a href=\"https:\/\/wordpress.org\/plugins\/ht-easy-google-analytics\/\" target=\"_blank\" rel=\"noopener\">WordPress Plugin Directory<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"361\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/activate-ht-easy-plugin.png\" alt=\"Activate HT Easy GA4 Plugin\" class=\"wp-image-59630\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/activate-ht-easy-plugin.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/activate-ht-easy-plugin-600x289.png 600w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Activate HT Easy GA4 Plugin<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Go to <strong>Settings<\/strong> &gt; <strong>HT Easy GA4<\/strong> in your WordPress dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"424\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/navigate-ht-easy-ga4.png\" alt=\"Navigate HT Easy GA4 Menu\" class=\"wp-image-59622\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/navigate-ht-easy-ga4.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/navigate-ht-easy-ga4-555x314.png 555w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Navigate HT Easy GA4 Menu<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Connect your account by signing in with Google, or enter your Measurement ID manually.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"379\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/ht-easy-ga4-options.png\" alt=\"Add your Google Analytics account\" class=\"wp-image-59621\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/ht-easy-ga4-options.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/08\/ht-easy-ga4-options-600x303.png 600w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Add your Google Analytics account<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Turn on the eCommerce events you need and save your changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"976\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/10\/enable-the-ecommerce-events.png\" alt=\"Enable eCommerce Envets\" class=\"wp-image-61534\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/10\/enable-the-ecommerce-events.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/10\/enable-the-ecommerce-events-241x314.png 241w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2023\/10\/enable-the-ecommerce-events-483x628.png 483w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Enable eCommerce Events<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Place a test order and check the result in the plugin&#8217;s GA4 Inspector tool and in GA4 DebugView.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The plugin also shows key numbers, such as sessions and page views, inside your WordPress dashboard. If you are still setting up GA4 on WordPress, read our guide on <a href=\"https:\/\/hasthemes.com\/blog\/how-to-install-google-analytics-on-wordpress\/\" target=\"_blank\" rel=\"noopener\">how to install Google Analytics on WordPress<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"493\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/06\/ecommerce-reports.png\" alt=\"eCommerce Reports\" class=\"wp-image-64224\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/06\/ecommerce-reports.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/06\/ecommerce-reports-478x314.png 478w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">eCommerce Reports<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Read More: <a href=\"https:\/\/hasthemes.com\/blog\/how-to-install-google-analytics-on-wordpress\/\">How to Install Google Analytics on WordPress: A Step-By-Step Guide<\/a><\/p>\n\n\n\n<h3 id=\"for-shopify-using-the-analyzely-ga4-app\" class=\"wp-block-heading\">For Shopify: Using the Analyzely GA4 App<\/h3>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\"><a href=\"https:\/\/link.hasthemes.com\/analyzely\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/link.hasthemes.com\/analyzely\" rel=\"noreferrer noopener\">Install the Analyzely GA4 app<\/a> from the Shopify App Store. Activate the app in your store.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"628\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-link-here-1200x628.png\" alt=\"Activate the Analyzely App\" class=\"wp-image-65514\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-link-here-1200x628.png 1200w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-link-here-600x314.png 600w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-link-here-286x150.png 286w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">Activate the Analyzely App<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Sign in with Google to Connect Google Analytics in the Analyzely app effortlessly<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"628\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-sign-in-with-google-1200x628.png\" alt=\"Connect Your Google Analytics account\" class=\"wp-image-65516\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-sign-in-with-google-1200x628.png 1200w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-sign-in-with-google-600x314.png 600w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-sign-in-with-google-286x150.png 286w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">Connect Your Google Analytics account<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Choose the eCommerce events you want to track in the app dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"549\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/choose-the-data-layer.png\" alt=\"Choose the eCommerce events\" class=\"wp-image-65520\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/choose-the-data-layer.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/choose-the-data-layer-768x562.png 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Choose the eCommerce events<\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px\">Click on the Finish Button to complete the setup.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"489\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-finish-button.png\" alt=\"Click on the Finish Button\" class=\"wp-image-65521\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-finish-button.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/click-on-the-finish-button-768x500.png 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Click on the Finish Button<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The Analyzely app provides real-time and customizable reports to monitor store visitors and sales performance. You can track active users, popular events, visitor locations, device usage, and key metrics like sessions, page views, and bounce rates.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The app shows reports for visitors and sales, including total orders, AOV, conversion rates, and top-performing products. For a longer walkthrough, see <a href=\"https:\/\/hasthemes.com\/blog\/how-to-add-google-analytics-to-shopify\/\" target=\"_blank\" rel=\"noopener\">how to add Google Analytics to Shopify<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/analyzely-app-ecommerce-reports.png\" alt=\"eCommerce Reports \" class=\"wp-image-65523\" srcset=\"https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/analyzely-app-ecommerce-reports.png 750w, https:\/\/hasthemes.com\/blog\/wp-content\/uploads\/2024\/11\/analyzely-app-ecommerce-reports-768x432.png 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">eCommerce Reports <\/figcaption><\/figure>\n\n\n\n<p class=\"has-palette-color-5-background-color has-background wp-block-paragraph\" style=\"padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;font-size:clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.313), 18px);\">Read More: <a href=\"https:\/\/hasthemes.com\/blog\/how-to-add-google-analytics-to-shopify\/\" data-type=\"link\" data-id=\"https:\/\/hasthemes.com\/blog\/how-to-add-google-analytics-to-shopify\/\">How to Add Google Analytics to Shopify: Most Easy Way<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Read eCommerce Reports in GA4<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once data flows in, use the Monetization reports. GA4 does not have the old &#8220;Product Performance&#8221; and &#8220;Sales Performance&#8221; reports from Universal Analytics. Here are the reports to use instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Monetization Overview<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <strong>Reports > Life cycle > Monetization > Monetization overview<\/strong>. By default, it shows these cards (<a href=\"https:\/\/support.google.com\/analytics\/answer\/13409465\" target=\"_blank\" rel=\"noopener\">Google Analytics Help<\/a>):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Total revenue:<\/strong> revenue from ecommerce, in-app purchases, subscriptions, and ads, minus refunds.<\/li>\n\n\n\n<li><strong>Purchase revenue:<\/strong> revenue from ecommerce and in-app purchases.<\/li>\n\n\n\n<li><strong>Total purchasers:<\/strong> users who made a purchase.<\/li>\n\n\n\n<li><strong>First-time purchasers:<\/strong> users who bought for the first time.<\/li>\n\n\n\n<li><strong>Average purchase revenue per user:<\/strong> average purchase revenue for each user.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Use it to watch trends and compare date ranges. Check it weekly for sudden drops or spikes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Ecommerce Purchases<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This report gives item-level data. It shows how many times each item was viewed, added to the cart, and purchased. Compare these numbers for each product:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>High views, low cart adds:<\/strong> check price, images, and product copy.<\/li>\n\n\n\n<li><strong>High cart adds, low purchases:<\/strong> check shipping costs, payment options, and checkout steps.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 builds this report from the <code>items<\/code> array, so poor item data gives poor results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Purchase Journey<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This report shows how shoppers move through the buying process. It needs the <code>view_item<\/code>, <code>add_to_cart<\/code>, <code>begin_checkout<\/code>, and <code>purchase<\/code> events to work. Use it to find the step where most shoppers drop off.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Key Events and Session Key Event Rate<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 no longer uses &#8220;conversion rate&#8221; for site events. It uses the <strong>session key event rate<\/strong>: the share of sessions with a key event, such as a purchase. Because <code>purchase<\/code> is a key event by default, you can compare this rate across channels to see which sources bring real buyers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Problems and Fixes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ecommerce reports are empty.<\/strong> GA4 shows no ecommerce data until you send the events. Check DebugView to confirm the events arrive with an <code>items<\/code> array.<\/li>\n\n\n\n<li><strong>Revenue shows as zero.<\/strong> The <code>value<\/code> or <code>currency<\/code> field may be missing or wrong. Send both on every revenue event.<\/li>\n\n\n\n<li><strong>Orders are counted twice.<\/strong> Two tools may fire <code>purchase<\/code>, the confirmation page may reload, or <code>transaction_id<\/code> may be missing. Use one method and a unique ID.<\/li>\n\n\n\n<li><strong>Realtime works, but reports are empty.<\/strong> Standard reports can take 24 to 48 hours. If items are still missing later, check your item parameters.<\/li>\n\n\n\n<li><strong>Product names look wrong.<\/strong> The <code>item_name<\/code> values come from your store. Fix them at the source.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-995f960e wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-palette-color-1-background-color has-background is-layout-flow wp-container-core-column-is-layout-a8bc7b4c wp-block-column-is-layout-flow\" style=\"padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)\">\n<h4 class=\"wp-block-heading has-text-align-center has-palette-color-8-color has-text-color has-medium-font-size\" id=\"ht-easy-ga4--google-analytics-4-\">HT Easy GA4 <\/h4>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center has-palette-color-8-color has-text-color\" id=\"ht-easy-ga4--google-analytics-4-\" style=\"font-size:clamp(18.959px, 1.185rem + ((1vw - 3.2px) * 0.863), 30px);\">#1 \ud83d\udcc8 Google Analytics Plugin for WordPress<\/h4>\n\n\n\n<p class=\"has-text-align-center has-palette-color-8-color has-text-color has-medium-font-size wp-block-paragraph\" style=\"padding-bottom:var(--wp--preset--spacing--30)\">\ud83d\ude80 Supercharge your WordPress website with analytical insights. (Including WooCommerce Report)<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-fe0a7de2 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size has-medium-font-size\"><a class=\"wp-block-button__link has-palette-color-2-color has-white-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/ht-easy-google-analytics\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Download for Free<\/strong><\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h2 id=\"frequently-asked-questions\" class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1732093304639\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">Is Google Analytics good for eCommerce?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>Yes. GA4 tracks shopping events and shows revenue, purchasers, and product performance. It works best when your events and item data are clean.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732093310971\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">Does GA4 track sales automatically?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>No. GA4 needs ecommerce events such as purchase, sent with value, currency, and items. A plugin, GTM, or custom code must send them.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732093326173\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">How long does it take to set up eCommerce tracking?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>A plugin setup can take a few minutes. GTM or custom code can take hours or days, depending on your store and your developer.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732093353729\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">Do I need Google Tag Manager for eCommerce tracking?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>No. You can use custom code or a plugin. GTM adds flexibility, but it also needs a data layer from your store.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732093368010\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">What is a transaction ID in GA4?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>It is a unique ID for each order, sent with the purchase event as transaction_id. It helps GA4 avoid counting the same order twice.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732093391668\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">Can I track individual product performance?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>Yes. The Ecommerce purchases report shows views, cart adds, and purchases for each item.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732093403717\" class=\"rank-math-list-item\">\n<h4 class=\"rank-math-question \">How often should I check my eCommerce reports?<\/h4>\n<div class=\"rank-math-answer \">\n\n<p>Review them at least once a week. Check them right after you change your store, checkout, or tracking setup.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 id=\"conclusion\" class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">eCommerce tracking turns raw traffic into clear answers: which products sell, where shoppers drop off, and which channels pay off. Choose one method, send clean events, and test with DebugView before you trust any report.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you run WordPress, <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/hasthemes.com\/plugins\/google-analytics-plugin-for-wordpress\/\">HT Easy GA4<\/a> is the quickest way to start. If you run Shopify, try the <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/link.hasthemes.com\/analyzely\">Analyzely GA4 app<\/a>. Then use the Monetization reports to find your next improvement.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most store owners know their total sales. Fewer know which pages, products, and campaigns create those sales. eCommerce tracking in Google Analytics 4 (GA4) closes that gap. It records product views, add-to-cart actions, checkouts, and purchases, then shows them in reports. This guide covers three ways to set it up: custom gtag.js code, Google Tag [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":69037,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-65347","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/posts\/65347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/comments?post=65347"}],"version-history":[{"count":1,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/posts\/65347\/revisions"}],"predecessor-version":[{"id":72496,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/posts\/65347\/revisions\/72496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/media\/69037"}],"wp:attachment":[{"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/media?parent=65347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/categories?post=65347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasthemes.com\/blog\/wp-json\/wp\/v2\/tags?post=65347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}