Add Google Analytics code to WordPress

How to install Google analytics on WordPress – The easy way

In my post, I am going to show you the easiest way to install Google Analytics on WordPress. The process takes a few minutes and you do not need to know any code to do this.

I show you how to install and use a free plugin. This plugin is called Monster Insights and is designed to install Google Analytics to WordPress sites. If you are a beginner, I recommend you use this plugin.

Let’s begin.

Before we start

To complete this process you need admin access to your WordPress site and a Google Analytics account. If you have these, you are ready to start.

Install the Monster Insights plugin

In your WordPress dashboard, hover your mouse over ‘plugins’ in the menu on the left of your screen. This popup menu will appear.

Plugins on WordPress

In the popup menu, select ‘Add New’. Then you come to the WordPress plugin library.

WordPress plugin library

Type ‘Monsterinsights’ into the ‘search plugin’ box on the top right-hand side of your screen.

Search for the Monster Insights plugin

Once the search is complete, you will see ‘Google Analytics Dashboard Plugin for WordPress by Monsterinsights’.

To the right of the plugin title, there is an ‘Install now’ link, click on that link. Once the installation is complete, the link text will change to ‘Activate’. Click on that once more to activate the plugin for your site.

Activate the Monster Insights plugin

After the activation is completed, you go to a list of installed plugins.

List of installed plugins

In the menu on the left-hand side of your screen, you have an ‘Insights’ option.

Configure the Monster Insights plugin

Put your mouse over ‘Insights’ and a popup menu will appear.

How to configure the Monsterinsights plugin

In this popup menu, select ‘settings’. After you click on settings you come to this page.

Monster Insights dashboard

Log into your Google Analytics account

Before we move on to the next step. You need to be logged in to your Google Analytics account. Open a new window and sign in if you have not done so already. Once you have signed into your Google Analytics account you can return to the above screen.

On the above screen, click on the blue ‘Authenticate with your Google account’ link.

Once you have done that, there is a short delay while you are being connected. After a short wait, you come to this screen.

Choose the email account associated with your Google Analytics account

Here you need to click on the email address that is connected to your Google Analytics account. The next page will ask your permission to allow access to your Google Analytics account.

Click on the blue ‘Allow’ link.

Allow Monster Insights access to your account

Once you click on the ‘Allow’ link you will be asked to select the profile of the website you want to connect to.

Select the website profile

If you have multiple sites you will need to select the website profile from the drop-down menu.

Select your website

Once you have selected the website profile, select ‘Complete Connection’.

Wait a few moments and then you will go back to the Monster Insights dashboard in WordPress.

Monster Insights

Now your Google Analytics account is linked to your website and you can track your visitors.

Monitor your traffic stats from your WordPress admin dashboard

Another excellent feature with the Monster Insights plugin is you have Google Analytics data displayed on your WordPress dashboard. If you don’t see MonsterInsights on your dashboard, open the ‘Screen Options’ tab and tick the box to display ‘Monster Insights’.

How to add Google Analytics to your WordPress site video tutorial


Using the Monster Insights plugin makes it easy to install Google Analytics to WordPress. After you install the plugin you just need to allow access to your Google Analytics account and you are setup. You do not need to know or add any code, the plugin organizes that for you.

This plugin is constantly updated and has been installed over a million times already. A clear indicator that this is a popular plugin. Monster Insights has little to no impact on your website loading speed.

Once you have set up your Google Analytics, you can monitor traffic to your website on your WordPress dashboard.

If you would like to check your keyword rankings, check out my ‘Free and easy way to check your keyword ranking in Google and Bing. post.

Check out my YouTube channel for more tutorials on WordPress.

Frequently asked questions

Do you have to pay for Google Analytics?

No, you don’t, Google Analytics is free. I recommend you add it to your website. It is an excellent free tool for monitoring visitors to your site.

Where do I get my Google Analytics code?

Your personal Google Analytics code can be found from clicking on ‘Admin’ in the bottom left of your Google Analytics dashboard screen.
In ‘Admin’ you will see another screen with three columns. The middle column ‘Property’ will have a ‘Tracking Info’ option.
In ‘Tracking Info’ you will see a ‘tracking code’ option at the top. Click on that and your tracking code will appear in a window on the right side of your screen.

What is the best Google Analytics Plugin for WordPress?

Follow my step by step guide above and you will have Google Analytics code installed on your website in a few minutes.


How do you install Google Analytics on WordPress?

What do you think of the Monster Insights plugin?

I look forward to reading your comments.

Sharing is caring!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.