How to Install Google Analytics on WordPress

Google Analytics on WordPress

Do you have a WordPress website, and you don’t know how to install Google Analytics on WordPress? It does incredible work on WordPress sites, and it’s good to install them. However, not every person may know the process. Don’t worry if you don’t know. Digital specialists from White Peak Digital will help you with the process.

But, we will first see why it’s good to have the analytics.

A better understanding of the audience – when someone visits your site, what does the person do? Google Analytics on WordPress will help you see the activity of each visitor to your site.

Identify traffic sources – it helps you know where your site traffic comes from, which country they come from, channels they use, and more.

Make content that people love – Google Analytics on WordPress helps site owners know which of their posts has more traffic. This helps them understand the type of content their audience likes most, hence specialize in that.

Improve the website’s user experience – you’ll know how visitors behave on the site, the pages they visit, the browser or device they use. It will help you develop the user interaction of your site.

Conversions and sales – Google Analytics will help follow your conversions if you are running an eCommerce platform. You’ll know how much the platform is making.

Open a Google Analytics Account

The first step will be to sign up for a Google Analytics account which is free. You need to have a Gmail or Google account to register. The process is straightforward.

You will get a tracking code that will help Google know when the audience visits your pages, then, within some hours, you will learn about your visitors.

Now, after setting up your account, we show you how to install it in WordPress. There are different ways, but we will show you three of the simplest.

1. Install Using MonsterInsights

Over three million users, including Zillow, WPBeginner, Bloomberg, and PlayStation, using this method. It is the best and easiest way to install Google Analytics on WordPress, especially for beginners. There are free and paid premium plugin versions. Here, you will know about the free version.

If you want advanced features such as Ads tracking, eCommerce, and Author tracking, use the Pro version. They both use the same process of setting up.

The first step will be to install and activate a MonsterInsights plugin. After activation, you will see a new menu with the ‘Insights’ label in the WordPress admin menu. The setup wizard will come after clicking it. You will have to choose a category for your site like a blog, online store, business, etc. Choose one and then hit the Save and Continue button.

Click on ‘Connect MonsterInsights’. A popup that will direct you to Google accounts will appear; you will sign in. If you have an account, you will select the account.

The next step will be to let the plugin access the Google Analytics account, where you will clack the ‘Allow’ button.

Profile selection is the final step. You will pick your site here, then press a ‘Complete Connection’ button. The MonsterInsights plugin will now install Google Analytics on the site.

2. Using Headers and Footers Method

Though this process is not as fantastic as the first one, it’s still good to use. It doesn’t allow the advanced tracing configuration. It also doesn’t enable one to see Google Analytics information in the WordPress dash.

First, you will use the tracking code that you got when creating the Google Analytics account. Then, you will have to install and initiate the plugin. After the activation, go to the settings of the Headers and Footers homepage. You will now paste the copied Google Analytics tracking code. In order to store the settings, you will click the save changes key. The process will now be over. Google Analytics will be on your website.

3. Without a Plugin

Step 1. Get the Tracking Code

Get into the Google Analytics account, then select the site for which you require the tracking code.

Step 2. Paste the Code to a header.php file

There is a dashboard and navigate in your WordPress dashboard, you’ll see Appearance >> Theme Editor. Click the header.php file under the Temple files category. Then, paste the code in the head tag.

Finally, you will click the Update File button, and you will be done.


Now you have it. If you have been struggling in installing Google Analytic to the WordPress website, now you have the information on how to do it. The three methods are the best to use. Use the most convincing to you, which is the MonsterInsights plugin.

We feature Tech Trends, Tips of Technology, and explore to tech innovative products. Keep up to date on the latest developments in the tech industry
Back To Top