top of page
MakkPress Logo

Request a quote

Email Us

Live chat

Schedule a call

MakkPress Logo

Who we are

Our Work

UX & Development


SEO & Marketing

How To Set Up GA4 For Your E-commerce website?

Every digital marketer or online business owner would agree to the fact that Google Analytics is a great tool for analyzing user behavior, traffic, attribution, and many more things on a regular basis. Especially this is a great tool for almost all E-commerce websites. When we talk of GA-4, it is different from your typical software upgrade. GA-4 is an entirely different platform, and setting up this upgrade on e-commerce sites is the need of the hour. But we also know that setting up GA-4 on E-commerce sites is a challenging task. Here's a step-by-step guide to setting GA-4 on various e-commerce sites and better understanding your customers to boost the conversion rate on your site.

1. Upgrade to GA4 if you already have UA

The first step we have to make up is upgrading our setup to GA4 if you already have UA. By upgrading to GA4, you will be able to take advantage of its improved functionality, more powerful data analysis, and enhanced reporting capabilities. The earlier you upgrade, the more insights ad historical data you will have in GA4. Here's how to upgrade from UA to GA4.

  • Go to GA4 Setup Assistant

  • Select 'Create Property' to continue

2. Adding The GA4 Tag

Now, as you are done creating the GA4 properly in your Google Analytics account, you will need to create a new GA4 tag and add the tracking id to it. The steps for adding the tag vary depending on the platform you are using. For example, if you are using WordPress, you should be able to find instructions on how to add the tag in the settings menu. Once you have added the tag, you can begin tracking your site by creating goals and setting up filters. Here's how you can do it.

  • Go to the Data Stream menu.

  • Now under the data stream, you will need to paste your measurement ID>

  • For example, the Measurement ID for my GA4 property is G-QE8851QGGZ.

  • After pasting, go to settings. Enable "Google Analytics 4" and save the changes.

3. Time to add the GTM container to your site

To install the GTM container, the very first thing you need to do is to create a GTM account. Then, enter all the necessary information to create your account and container. This will give you a unique container ID and a code snippet that you can add to your website. Here's how the installation process of container works.

  • Copy and paste the code snippets into your website as instructed in the Install Tag Manager box.

  • Place the <script> code snippet in the <head> of your web page's HTML output, preferably as close to the opening <head> tag as possible but below any dataLayer declarations.

  • Place the <noscript> code snippet immediately after the <body> tag in your HTML output.

  • Finally, you can publish the container to your website and start tracking your data.

4. Integrate GA4 to GTM

Integrating GA4 with Google Tag Manager (GTM) helps to streamline the process of setting up and managing tags, allowing you to manage all your tracking from one centralized location. It also helps to ensure that tracking is accurate and consistent across all your marketing channels. So, here's how to integrate GA4 into GTM

  • The first step is to create a new tag for our GA4 property.

  • Next, select 'Tag Configuration' and choose 'Google Analytics: GA4 Configuration' as the tag type.

  • Now, paste the Measurement ID

  • Add a trigger and click create "Tag."

  • Select 'All Pages' as the trigger and click 'Save.

  • Now, you have successfully integrated GA4 with GTM.

5. Previewing the tags

Now that you have created the tags and have successfully integrated the GA4 to GTM, it's time to preview them so that you can check whether they are functioning properly or not. Here's how you can do that.

  • To preview the tags, select 'Preview' in the window's top right corner.

  • Now, enter the URL of your website and click 'Connect' to preview your website.

  • See that Tag Assistant has connected.