All articles Doofinder > Blog > Marketing > How to install Google Analytics 4 in your e-commerce (updates + setup tutorial) How to install Google Analytics 4 in your e-commerce (updates + setup tutorial) Abigail Bosze 6 min CONTENTS Without question, Google Analytics (formerly known as Universal Analytics) is the most popular web analytics tool these days. However, Analytics launched an updated version in October 2020: Google Analytics 4 (henceforth âGA4″). Why should you care about this? If you have Universal Analytics, you should know that there wonât be any more updates to this version, so youâll have no choice but to migrate to Analytics 4. And you might get stuck at first if you donât know how it works. No worries, though, because in this post weâre going to help you have a more manageable transition by showing you how to upgrade to GA4 â and how to install it, in case youâve never used it. And, of course, weâre going to tell you everything thatâs new in this version. Ready? Letâs do this. đ NOTE: If youâve never installed any versions of this tool, nowâs the time to do so. Hereâs a Google Analytics mega-tutorial to help you get to know it better before we dig any deeper. đ Changes in Google Analytics 4 GA4 (formerly known as âApp + Webâ) is the newest version of Google Analytics. It features new metrics and functionality Universal Analytics didnât include. The main innovation is the possibility of analyzing both websites and phone apps in the same property. Hereâs a short explanation, in case youâre not familiar with this concept. A property is the website you wish to analyze. Suppose itâs your shopâs website. Previously, if your eâcommerce had a website and mobile app, Universal Analytics wouldnât let you analyze the app. Later, they enabled this feature, but you still had to create a special âApp + Webâ property. Now, Analytics 4 properties can be used with websites, phone apps, or both of them at the same time. In other words, all properties have been unified, making it much easier and more convenient. But GA4âs improvements donât end there. Because this new generation features significant advancements, such as the use of artificial intelligence (AI) and machine learning to create much more thorough analytics. â 1. Whatâs new about Google Analytics 4 As we just said, GA4âs main improvement is the use of smart technologies for improved insights and the integration of web and app metrics into a single property. Overall, it allows for more comprehensive monitoring of user data, but it also features other changes: Main page: a new look, which now includes new web traffic data, such as user tendencies over time.Improved search engine: now allows you to quickly find anything you want. You can also get reports quite easily and make queries related to this tool.Real-time reports: even though they were already included in the earlier version, you can now find out more about the kind of audience that visits your site.Codeless events: prior to GA4, in order to know if someone had clicked on a specific button or downloaded a lead magnet, you had to create a specific event and track those clicks. Now, you can track them automatically without configuring it (i.e., without modifying the HTML code).Engagement section: tells you how long users spend on your site and the engagement each of your events generates. Among other metrics, you can also track scrolling (i.e., how users move around your site) and how many times a certain element has been clicked on.Monetization: this equates to Universalâs eâcommerce reporting, thus giving you a report on the number of purchases in the shop. For example, it tells you the products that are currently selling as well as the most popular ones.Retention report: it shows you your retention rate, which tells you whether your customers keep coming back to you or not. But thatâs not all! Those were only the most important changes. GA4 has also incorporated a lot of new metrics Universal Analytics lacked. Youâll see them little by little as you familiarize yourself with this tool. â 2. Extra: a walkthrough of the Google Analytics 4 interface Itâs great to be told about but even better to see for yourself. With this Google video, you can check out the Analytics 4 user interface, navigate through different sections, and explore the new content. đ Step-by-step setup of Google Analytics 4 Now that youâve seen all thatâs new in GA4, itâs time to install it. We all known how dreary technical stuff can get, but once you see everything this new tool has to offer, youâll see that itâs all worth it. So letâs get into it right away. đ â 1. Update to GA4 The first step is to update to the new Analytics version. You have two different ways to do this: If you havenât created any property yet: you still havenât started measuring. To start using GA4, you need to create a new property.If youâve already created a property in Universal Analytics: you just need to use GA4âs setup assistant. But what if youâve already created an App + Web property? In that case, you donât need to do anything because it will update automatically. If thatâs your case, you can skip these steps. âĄïž A. If you donât have a property, create a new property in GA4 You own a store, but you still havenât paid much attention to metrics (bad move, by the way, because tracking your storeâs KPIs is key to improving your conversion). Right, itâs time to make a move and create a new property in GA4. First of all, go to the Admin panel. If you click on âCreate Propertyâ, youâll automatically have the option of creating a new property of the GA4 kind. Next, you have to add some basic information in the pop-up window: Property nameTime zoneCurrency Then, you need to fill in other fields with your shopâs details. And voilĂ , your property is all set. âĄïž B. If you already have a property in Universal Analytics, use GA4âs setup assistant Weâre now assuming you already have a property because youâve been using Google Analytics. How can you migrate to the new version? By creating a new property in GA4. Plus, this process is much faster because you already filled in the required information to create your first properly in Universal Analytics. You just need to click where it says âGA4 Setup Assistantâ. Youâll see a window like this one: If you look at it closely, youâll see a note saying youâve already created a property in Universal Analytics that wonât undergo any changes. Click on âGet Startedâ. The assistant will take care of everything. Itâll import the existing information (including your created events) and create the new GA4 property. Important note before moving on: Remember not to delete any old properties. Even though itâs a Universal Analytics one â so itâll stop updating at some point â itâll do no harm to keep the data youâve gathered so far. Creating a new property entails gathering new data from scratch and you donât want to lose information you already had. đ â 2. Sync Google Analytics 4 with your website At this point, you either created a new property or updated a Universal Analytics one. Either way, you need to sync your website with GA4. For this, you need the setup assistant. Here you need to click on âTag installationâ, which is the first option they give you. Then, youâll see two options to install the tag and sync your website. Letâs go over them separately: âĄïž A. With the global site tag (gtag.js) This tag is an HTML code you can copy from your siteâs source code. If you choose this option, you need to: Go to the templateâs source code.Choose the “head“ tag.Install the code provided by the tool (like the one you see in the screenshot above). If you donât want to do it manually, you can always resort to a plugin or module. âĄïž B. With Google Tag Manager Just like with the plugin or module, this is an easy and safe alternative that doesnât require you to modify any code. In this case, Analytics gives you an alphanumerical tracking ID that you need to copy/paste into Google Tag Manager. And thatâs it. If you donât know how to do this part, our Google Tag Manager tutorial may come in handy. â 3. Extra video: how to update to GA4 Still canât wrap your head around it? Hereâs a video where you can see how to set up Google Analytics 4. đ Ready to step up to Google Analytics 4? There really is no excuse. Update to or install GA4 and keep track of your storeâs metrics. Yes, we know we can be a pain in the neck, but weâll never tire of reminding you, âif you canât measure it, you canât improve it.â Itâs that simple. In that vein, here are some of our posts on web analytics: Web analytics for e-commerce: which metrics do you need to monitor to know if your business is doing well?What e-commerce ROI is and how to calculate it to find out the profitability you obtain from each strategyWhat an e-commerce conversion rate is and how to optimize it step by step to increase sales No excuses! Install GA4 and start tracking properly. đ FREE EBOOKS Increase your eCommerce sales by 20% The 10 largest eCommerce sites in the world How to start an online shop from scratch