A Beginner’s Guide to Google Analytics 4
Google Analytics or GA is an essential tool that website owners must use! Google is constantly updating Google Analytics, and in October 2020, Google Analytics 4 was announced, which is easier to use but more powerful than ever.
In our previous article, we learned that Google Analytics 4 (GA4) is a website visitor tracking and measurement tool for web owners to analyse and improve their websites. Let’s take a look at how to install Google Analytics manually. All you need to do is follow these steps!
Table of Contents
How to install Google Analytics 4
Create a Property and Data Stream
- First, log in to analytics.google.com
- Fill in the information to create a Property and Data Stream
- Then use the HTML code or Measurement ID to install GA4
Method 1: How to install GA using Google Site Tag (gtag.js
Implementing Google Analytics with Google Site Tags (gtag.js) is ideal for newly created websites, including websites that use a Website Builder (a ready-to-use website) or CMS hosting to manage their websites.
Copy the Global Site Tag and install it in the Header
Copy the code from the Global Site Tag and paste it into the <head> of the HTML. Follow: Data Stream > Select the desired Stream > Tagging Instructions > Add a new on-page tag.
Copy the Measurement ID and install it via CMS
If your website uses a Website Builder or CMS hosting such as WordPress, Wix, Hubspot, or Weebly, copy the Measurement ID and install it in your back-end system following the steps your CMS outlines (read more here). Below is an example of installing on WordPress.com (this can only be used with Premium Business and E-commerce plans):
- Copy the Measurement ID of the Stream you want to measure
- Navigate to WordPress > My Sites > Tools > Marketing > Traffic
- Select Google Analytics
- Enter the copied Measurement ID in the Google Analytics Measurement ID box
- Click Save Settings and your website data will now be connected to Google Analytics
Method 2: How to install GA4 via Google Tag Manager
- Tracking Code such as Google Analytics or Facebook Pixel
- Triggers or conditions that define the action of the Tag
- Variables are directives for triggers to work more efficiently
Here’s how to install GA using Google Tag Manager:
- From the left menu bar, select New Tag > Tag Configuration, then press the pen icon
- Then select the Tag type as Google Analytics: GA4 Configuration
- Enter Measurement ID
Select the desired Trigger. For example, if you select All Pages, the Trigger will fire every time the page loads, but if you choose Consent Initialisation – All Pages, the user’s consent will be asked for first before the Tag fire
- Once the settings are complete, press Save
How to Verify Google Analytics’ Behaviour After It’s Installed
- Go to Overview page > Press Preview
- Enter the website URL into Tag Manager Preview Mode (don’t forget to include https://)
- Wait for Tag Manager to connect to the website to enter the debug mode
- Verify that Tag and Trigger are working properly
- Get back to the Overview page > Press Submit
- Fill in the information and press Publish to start using the Tag on the website
Start Using Google Analytics For Your Website & App Today
Google Analytics should be installed once your website is complete. Otherwise, you may lose information. For anyone with their own website or business who wants to be successful online, we recommend studying your website’s analytics regularly. This will give you all the information necessary to plan your strategy and optimise your website.