How to install google analytics in WordPress for beginners

how to install google analytics in WordPress, install google analytics in WordPress, google analytics install, install google analytics in WordPress for beginners

Looking for how to install Google Analytics on your WordPress site and you don’t know how? Then you are at the right place because in this article I am going to tell you the step-by-step process, How to install Google Analytics in WordPress for beginners.

What is Google Analytics?

Google Analytics is a web analysis service that provides basic tools and statistics for search engine optimization (SEO ) as well as marketing purposes. This service is free for anyone who has a Google account.

Google Analytics can be used to monitor website performance and gather visitor insights. It is used to track website performance and collect visitor insights. Google Analytics is used by small and medium-sized retailers to analyze their viewers. This can be used to improve marketing campaigns and drive website traffic. With the help of Google Analytics, you can also gather data on your viewers i.e from which country they belong or how much time the visitors spend on your site. And with the help of this data, you can actually increase your pageviews and can target the right viewers.

Why Google Analytics is important?

What is your main target after building a website? To drive traffic to your website and earn money from that. So, Google Analytics is the tool that will provide you with the exact details of your viewers and how they are responding to your site. Below are some of the features of Google Analytics:

When do people visit your website?

You can choose the best time to publish your blog post by looking at the busiest hours of the day on your site. You can also schedule your post if your time zone is different from the audience you are targeting.

From which country you are getting the most viewers?

This section of analytics provides information about the geographic location of your audience and the browser used to visit your site. It also includes important information like screen resolution, JavaScript support, etc.

This information is very useful and can be used in many ways. Creating a custom website can be done using user data. This will ensure that your site is compatible with your target audience.

What do people do when they visit your website?

It is possible to track the location of your users on your website. You can also see how long they stay on your site and what your bounce rate (percentage of users who leave your site after the first visit) is.

This information will help you lower your bounce rate, and increase pageviews.

It is possible to find the most popular articles and articles that aren’t doing well. You can also see what type of content users are searching for.

How do people find your website?

This section shows you where users came from. You can see if they are using search engines or if they click on referral links.

It also displays the percentage of visitors who came from each source. Google Analytics provides a breakdown of each category. If the search engine category is selected, it will show you which search engine brought you the most traffic: Google, Yahoo!, Bing, and so on.

This breakdown will show you which referral sources you should be working with most. To make your Facebook fans feel special, you will need exclusive content if Facebook is your top referral source.

In-Depth Reports

These reports give you detailed performance information, including bounce rates, referrals, and page views for every post or page on your site. This allows you to segment your analytical data in a way that makes sense for you and your business.

Real-Time Stats

 The plugin will allow you to view real-time statistics immediately after opening it. These stats can include the number of visitors to your site, the acquisition channels used, and the source of your traffic.

Tracking custom dimensions

 To get the data you need, you can create custom dimensions. You can, for example, create custom dimension tracking regarding certain types of user engagement and events that are important to your business.

Set Permission for different users

You can assign permissions based on user roles if you have a large or diverse team. You can be sure that only authorized people can make changes.

What can you track on Google Analytics?

Google Analytics gives you the information you need to track who visits your website, what they do while there, and how long they stay on certain pages. This tool lets you track multiple interactions between your website visitors.

Let’s look at some of the more specific reporting options Google Analytics offers:

Real-time Activity

Real-time reports provide real-time information about your website’s activity, including the location of visitors and their actions on it. It’s possible to see how visitors are arriving at your website, which pages they visit, and whether or not they convert. This report can be used to monitor the immediate results of campaigns, social media posts, and real-world events.


You can use acquisition reports to understand the origins of your visitors. This information can be very useful when you are setting up marketing campaigns. It will show you what is working for your visitors. This information also shows you which users are returning and which are new.


You can use engagement reports to understand how visitors interact with your site. This includes page views, scrolling activities, time-on-page, interaction with media, and other important events. Google Analytics group user activity by sessions — one session can be considered a single visit.

The report also tracks conversions. These can be compared to your goal to see which CTAs work best. This will help you understand which CTAs and landing pages are most effective and what keeps your visitors engaged.


Monetization reports show you how much revenue your site generates from subscriptions, purchases, and ads. It shows how visitors move through the checkout process, and how they interact with your product pages.


Retention reports track how well your website retains visitors. This means that they monitor how often and how long users return to your site after their first visit. 


This report will allow you to understand the demographics of your visitors. The demographics report will show you the age, location, gender, interests, and language of your visitors.


Tech reports provide information about the technology used by visitors to your site, such as device category (desktop or mobile) and accessing app (web browser or mobile). These reports can be used to guide optimization efforts, based on the preferred technologies of your users.

How to Signup on Google Analytics?

Google Analytics is free to use. To sign up, you only need a Google account or Gmail account. It is easy to sign up for Google Analytics. Follow the steps below to get started.

Step 1: To sign up, you must first visit the Google Analytics Website. Once you are on the website, click the “Get started today” button.

Next, you’ll be asked to log into your Google account. You can sign in with your Google account if you have one. You can also create a Google account.

Step 2: After you sign in to your Gmail account, you’ll be presented with a welcome screen.

Here you can sign up for Google Analytics with your Gmail account. Click the “Start measuring” button.

After this, you will need to give an account name. This account name will be used internally, so it can be anything similar to your business name.

Google Analytics will show you multiple settings for sharing account data. These settings allow you to control how your Google Analytics data is shared. You can leave the default settings as is and continue to the next step.

Step 3 – Create a Google Analytics property.

Google Analytics 4 (or GA4) is a new version. This latest version tracks both your website and mobile applications in one account. You also get new metrics and a different interface for your reports.

Important Note It’s important to track data in Google Analytics 4 (GA4) if you have an existing Universal Analytics account. Google will end Universal Analytics on July 1, 2023.

First, enter the property name and select the reporting time zone. Next, choose your currency. Next, click on the “Next” button.

Next, select an “Industry category” from the dropdown menu and then choose a “Business size” from the available options.

Next, scroll down to select the way you want to use Google Analytics in your business.

You have the option to choose from multiple options or all of them depending on your requirements. Once you are done, click the “Create” button.

After clicking on the Create button, you will see a popup window with the Google Analytics Terms of Service Agreement.

Click the checkbox to confirm that you accept the Data Processing Terms required by GDPR and then click on the “I Accept” button.

Next, you will see a popup asking you which email communication you would like from Google Analytics.

Click the checkbox to select the updates that you wish to receive, then click the “Save” button.

Step 4: You will now be presented with your Google Analytics web stream options.

We’re setting up Google Analytics to monitor a WordPress website. Select the “Web” platform.

Next, enter your website URL.

Google Analytics will default have an enhanced measurement option. This option allows you to track page views and scrolls, outbound clickings, file downloading, and other data in Google Analytics.

Next, click on the “Create stream” button.

Now you can see your Stream URL and Name, as well as your Measurement ID.

It will also record different enhanced measurements.

Google Analytics will also display different methods to add Google Analytics code on your WordPress website in the “Tagging Instructions” section.

Clicking the “Global site tag” option will bring up the Google Analytics tracking code.

This tracking code can be copied. Depending on which method you choose, you’ll need to enter it into your WordPress site. This browser tab can be left open, and you can switch back to copy the code if necessary.

As you might need to return to the Analytics browser tab after installing the code on your WordPress website, we recommend that you keep it open.

After you’ve created a Google Analytics account let’s look at how to install Google Analytics within WordPress.

How to install Google Analytics in WordPress?

There are several ways to install google analytics in WordPress, but here we are going to discuss to most popular ways to install google analytics in WordPress.

The first one is Installing Google Analytics using monster insights.

And the second one is installing google analytics using Wpcode.

How to install Google Analytics in WordPress using the Google Sitekit plugin?

Log in to your WordPress site.

Your site should be accessible to the public. This means that it isn’t locked down or restricted by passwords.

Click Plugins in the left navigation menu.

Click Add new at the top of the Plugins Page, then search “Site Kit”

Click Installation Now on the Google Site Kit.

After the plugin has been installed, go to the left menu and click Plugins.

Click to activate under “Site Kit By Google”.

After the plugin has been activated, scroll down to the left and click Site kit.

Sign up with Google Click

Click Sign In With Google.

Choose the Google account that is associated with an existing Google Ads property or Google Analytics property.

After you have granted permission, click Proceed to verify site ownership.

Click Allow to grant access to your Google account data.

To add the site to Search Console, click Add site.

Now, configure the plugin.

Click continue, to go to the WordPress dashboard.

Select Site Kit from the menu to the left. Next, select Dashboard.

Click Connect Service in the Analytics section.

Register with the same Google account you used previously.

Click Continue to grant additional permissions

Analytics is now set up.

Now, you have successfully installed Google Analytics in WordPress using the Google Sitekit plugin.

Now, let’s move toward the next process of installing Google Analytics in WordPress.

Installing Google Analytics in the WordPress using WPcode

Installing Google Analytics in WordPress using WPcode is also an option but it has a lot of restrictions like it will not allow you to do advanced tracking and also it will not show the Google Analytics data in your WordPress dashboard.

You will first need to copy the Google Analytics tracking code (Global tag).

It can be found in the Web stream details section under the “Tagging Instructions” section.

Image:- wpbeginner

Next, install and activate WPCode. 

After activation, visit the code snippets >> Header & Footer webpage. You will need to paste the Google Analytics tracking code you copied earlier in the ‘Header” section.

To save your settings, don’t forget about clicking the “Save Changes” button

This is it! You have now successfully installed Google Analytics on the site.


Installing Google Analytics in WordPress can be a very good decision for your site. Because this tools provide all the necessary details about your website. And it can guide you to target your audience properly. Every website nowadays uses Google Analytics to gather data on their viewers to increase their content quality and serve their viewers according to their needs.


1. How do I set up Google Analytics on WordPress?

You can install google analytics in your WordPress in several ways using plugins and by manually also. Some of the best plugins to connect to Google Analytics are:

  1. Google Site Kit
  2. MonsterInsights
  3. Jetpack

2. Are Google Analytics free?

Yes, Google Analytics is a free tool that provide you with some of the best tools.

3. Can I use Google Analytics on any website?

Yes, you can Google Analytics on any website.

Also Read: How to create temporary login for WordPress 

Top 8 International Blogging niche ideas

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top


Trust Pilot Rating

*drop mail to gift@akonline to avail worth $1200 goodies