How to Set Up Google Analytics 4 for Your Ecommerce Site

This blog post will guide you through setting up GA4 for your ecommerce site.

Share This Post

In today’s digital age, understanding your online customer behaviour is crucial for your ecommerce business. Google Analytics 4 (GA4) is a powerful tool that allows you to track and analyze your website traffic, helping you make data-driven decisions to drive growth and customer satisfaction.

Part 1: Creating a Google Analytics 4 Account

Setting up a new Google Analytics 4 account is straightforward:

  1. Sign in to your Google Account. If you don’t have one, you can create it at
  2. Visit the Google Analytics website (
  3. Click on the “Start measuring” button.
  4. Enter a “Property name”. This could be your business or website name.
  5. Click on the “Next” button and fill out the “About your business” section.
  6. Set the site name, the reporting timezone and main currency of your site
  7. Finally, click on the “Create” button to create your new GA4 property.

Part 2: Installing Google Analytics 4 on Your Ecommerce Site

To install GA4 on your ecommerce site, you’ll need to add a piece of GA4 code, also known as a “tag”, to your website. The process may vary depending on the ecommerce platform you’re using.

For Shopify users, Google Analytics can be easily integrated:

  1. From your Shopify admin, go to “Online Store” > “Preferences”.
  2. In the “Google Analytics” section, paste your Global Site Tag.

For WooCommerce or other WordPress-based platforms, you can use plugins like “GA4 for WordPress” to simplify the process.

Remember, it’s essential to verify your setup by checking the real-time report in GA4 after you’ve installed your tag.

Part 3: Setting Up Ecommerce Tracking in Google Analytics 4

With GA4, ecommerce tracking lets you track purchases, add-to-cart events, and view item events. Here’s how to enable it:

  1. Log into your GA4 account.
  2. Navigate to the “Admin” panel.
  3. In the “Property” column, click on “Data Streams”.
  4. Click on your website’s data stream.
  5. Scroll down to the “Enhanced measurement” section and click on the “Gear” icon.
  6. Turn on the “Ecommerce” toggle to enable tracking.
  7. You can also check the “Site Search” option to track popular product searches on your site

Part 4: Using GA4 to Analyze Ecommerce Data

Once you’ve enabled ecommerce tracking, you can start monitoring various metrics:

  1. Traffic sources: Discover where your visitors are coming from—social media, search engines, or direct visits.
  2. Customer behaviour: Understand what customers are doing on your site, what pages they visit, and how much time they spend.
  3. Conversion rates: Track how many visitors are completing purchases and identify where others might be dropping off.

By analyzing these metrics, you can develop strategies to boost your conversion rates and enhance your customers’ shopping experience.


In the world of ecommerce, staying on top of your website analytics is vital. Google Analytics 4 provides a comprehensive view of your site’s performance and user behaviour. By following the steps above, you can harness the power of GA4 to help drive success for your online business.

If you need more personalized advice for setting up and using GA4 on your ecommerce site, feel free to get in touch with us. We’re here to help!

Want to learn more about how Azameo’s AI-powered platform can revolutionize your advertising strategy? Get in touch with our team today and start transforming your results!

Share This Post

More To Explore