How to Add Google Analytics (GA4) to WordPress Websites 

How to Add Google Analytics (GA4) to WordPress Websites

Are you struggling with how to add Google Analytics or GA4 to your WordPress-powered website? You are at the right place.  

This isn’t just another GA4 guide or blog article. We won’t go into a rabbit hole on what GA4 is or is it good or bad.

We will walk you through the process of setting up GA4 rapidly and provide you with all the knowledge you need to do it. In this article, we’ll learn how to add Google Analytics from scratch to the company website.

So, if you’re new to WordPress and want to monitor your website performance and visitor metrics, save this blog post.   

How to Add Google Analytics or GA4 on Your WordPress Site   

Installing Google Analytics or GA4 on a WordPress website is easy for all users, regardless of technical expertise.

You may rapidly set up Google Analytics on WordPress websites by following the simple steps listed below.  

Method 1: Add GA4 to WordPress for free Using Google Site Kit Plugin 

This is a totally free way. However, it might not be your WordPress website’s best option. WordPress sites without any sales can use this technique. The main reason is that Google Site Kit lacks eCommerce tracking, which is a significant disadvantage.

Further, it can only set up Google products and tools.

Do you anticipate needing to monitor affiliate links or traffic originating from social media platforms such as Instagram or Twitter (X) in the future? Then, this free approach is inappropriate for you.

This strategy will leave you too restricted when you decide to scale. Having said that, these are the steps to add GA4 to your WordPress site. 

Steps to Install Google Site Kit 

First, go to add new plugins on your WordPress dashboard.

Steps to Install Google Site Kit 

At the dashboard’s ‘Add Plugins’ page, go to the search bar and type “Google Site Kit”. You will find the plugin there. Then, install and activate this GA4 plugin.  

GA4 plug

After activating the plugin, you set up the process. The first step is to connect the Google account you used to create the GA4 web property.  

Connect GA4 Data Stream with Google Site Kit  

Now, you need to connect GA4 or Google Analytics (by choosing it from the list) to start setup.   

Connect GA4 Data Stream with Google Site Kit  

The next step is to pick your web property, data stream, and account. Make sure your website’s data stream, which you’ve already prepared for GA4, is selected.

Alternatively, if you don’t currently have a GA4 data stream, you might let Google Site Kit generate one for you. However, there aren’t many choices, so it’s advisable to set up the data stream independently.

Make sure the Place Google Analytics 4 Code option is enabled. GA4 will gather analytics events on your WordPress website in this manner.  

Google Analytics 4

That’s it! Here is how you can add Google Analytics to your WordPress site using Google Site Kit.

Note: There is a slight lag in the data-gathering process. As a result, your GA4 summaries won’t have any data for a few hours.  

Method 2: Add Google Analytics to WordPress Site Using Google Tag Manager

Installing Google Tag Manager is an additional way to incorporate Google Analytics into a WordPress website. GA4 is also supported by this plugin. Act upon the steps listed below:  

  • Move to your WordPress dashboard.
  • Choose Plugins and then ‘Add New.’
  • Type in the search bar “Google tag manager.”
  • Install and Activate the plugin. 
Google Tag Manager

Go to Google Tag Manager and click “Create Account” if you haven’t signed up. 

Google Tag Manager

Type your details, such as Account Name, Container Name, Country, etc., and click ‘Create.’ 

Type your details

Go over the terms of service for Google Tag Manager and checkmark the agreement to proceed.   

service for Google Tag Manager

You will view the Google Tag Manager snippets after completing the enrollment process.

  • Click Admin
Google Tag Manager snippet
  • Click “Install Google Tag Manager”
Install Google Tag Manager
  •  Copy the code below and paste it onto every page of your website.
Google Tag Manager
  • Test your website for GA4 (optional):
Test your website for GA4

That’s it! That’s the simple process of adding Google Analytics to your WordPress site using Google Tag Manager. 

Final Words 

Here you go! This was the whole process of answering how to add Google Analytics to your WordPress site. At this point, you can begin to gain more insight into your target market, their interactions with your content, and the efficiency with which your website turns visitors into members. These setup configurations will help you analyze your website traffic and improve the conversion ratio.  

Share This Article