This page may contain affiliate links or links from our sponsors.

Woman thinking in front of a bright blue wall

Do you want to set up google analytics WordPress code on the dashboard? If you are running a WordPress website or blog then you would like to display your Web analytics report about how many visitors are coming to your WordPress website or what content read on a WordPress website. So in this article, we will explain to you the best google analytics WordPress tool for your site analytics, which is the free web analytics WordPress tool created by Google.

What are Google Analytics WordPress tools?

Google Analytics WordPress tools are free web analytics tools. Which reports more like website traffic, conversions, user behavior, and more. This is the most popular web analytics tool in the website tracker.

Google Analytics WordPress tools show how much traffic is coming to your website and that traffic is coming from the back, as well as how visitors behave with your site.

You can export web analytics data in different formats or you can create a custom “Dashboard” and website tracking for web analytics.

Why are Google Analytics tools important for WordPress websites?

After creating a WordPress site, the most important thing for you is how people use your site, what they are looking for, where they are coming from, and what content you are using more on your website.

You can also find the rate. There is no other way to know all this information, so we install Google analytics on our site to learn our site analytics.

How do Google Analytics tools work?

For Google Analytics integration on your site, you will have to load the google analytics tracking code on your site so that it can know how your site is performing and collect all the data.

After the Google Analytics code emphasis, when a visitor opens your site in their browser, they are tagged with this google analytics tracking code.

Which triggers their “Session” on your website. With this Google Analytics WordPress tracking code, you can get various useful data.

  • Session Duration and Pages per Session: How long the visitor stayed on your site and how many pages they visited during their session.
  • Page views: The number of visitors to each page that comes to your site.
  • Sessions: The number of visitors to your website
  • Traffic Source: Visitors are coming from your site (Google search, paid traffic, another website, direct, or social media network etc.)
  • Bounce Rate: How quickly visitors get to your site exit your site.
  • Goals: By this, you can find analytics of the goal you set for your site.

So now let’s start Google Analytics integration on my WordPress website

Sign up for Google Analytics WordPress

Step 1. To add Google Analytics to your website, you need a Gmail ID. If you have a Gmail ID, go to and sign in to Google Analytics with your Gmail ID. After login, you will see some such screens.

Google Analytics signup

Step 2. Once you fill in all your required information, click the “Get Tracking ID” button. After this, you will receive a google analytics code. Which you have to copy and paste in your site.

Google Analytics wordpress track ID

Install Google Analytics WordPress with tracking code

There are several ways to add Google Analytics tracking code to your WordPress site, but we will explain to you the two easiest and most popular ways.

Method 1: Adding Google Analytics Tracking Code Manually to WordPress

Although both of these methods are quite easy, in this method, you will need some simple knowledge about WordPress coding to load google analytics tracking code in WordPress files and use WordPress templates.

Follow the steps given below to manually add your Google Analytics tracking code.

Step 1. First, log in to your WordPress website and go to “Appearance >> Editor”

Step 2. On the right side of the WordPress dashboard screen, you will see a list of WordPress files and search the “header.php” template file. The easiest way to find this file is to press CTRL + F and search “header.php”.

Step 3. After this, using CTRL + F again, search </ head> and paste the copied Google Analytics tracking code before </ head>.

Step 4. After the code is pasted, click the “Update File” button.

Google Analytics Tracking Code Manually to WordPress

Step 5. After a few hours, go back to Google Analytics tools from where you copied your tracking code. To ensure that the code is working tired or not, if your site is not receiving any web analytics data, click the “Send test traffic” button for testing.

Typically Google Analytics takes 12-24 hours to show your web analytics data.

Method 2: Setup Google Analytics for WordPress by MonsterInnsights Plugin

By the way, Google Analytics Plugin is available for Google analytic. But in this article, we will learn how to set up Google Analytics for WordPress by MonsterInnsights Plugin.

Is MonsterInsights best google analytics plugin for wordpress?

  • To set Google Analytics by the MonsterInsights plugin, first, you have to install this Google Analytics MonsterInsights WordPress plugin. This plugin is one of the best google analytics plugins for WordPress and its most powerful plugins for site analytics, which is also easy to configure and starts tracking your traffic immediately.
  • After activation, the new “Insights” menu item will be added to your WordPress admin area. Click Insights >> Settings for the configuration of this plugin.
  • Now, you have to click the ‘Authenticate with your Google Account’ button to add Google Analytics to your WordPress website.
  • It will bring you a pop-up in front of you. In which you have to authenticate yourself with a Google Account. Click the Next button to proceed. After that, you will need to click the ‘Click to get Google Code’ button. Now it will bring you another popup with ‘MonsterInsights would like access to your Google Analytics data.
  • Authentication popup will now bring you a code, which needs to be copied. After this, in the MonsterInsights popup, this code has to be entered and click on ‘Next to proceed.
  • In this step, you have to choose your profile, which you want to track. That means you have to choose your website and then click on the next button to proceed.

Now you have successfully installed Google Analytics on your WordPress blog. Google Analytics takes some time to show your analytics. We hope this article is best for you on how to set up Google Analytics on WordPress. You may also want to see How To Build a WordPress Website Offline.