Recommended

Easily Install Google Analytics On WordPress in 10 Minutes Solutions

If you are new to the blogging industry, you may find some difficulties in checking your audience’s visit to your blog. With the most recommended official, Google Tool called Google Analytics, you can easily monitor your Website traffic.

In this post, you will learn how to install Google Analytics on WordPress blogs within 10 minutes.

What is Google Analytics?

As said above, Google Analytics is a very simple and free to use tool offered by Google itself. You can easily monitor what’s happening with your website or blog in terms of audience visits.

With the tool Google Analytics, you can know how your site performs overall, and easily you will decide what improvements your site needs.

Why Do You Need to Install it on Your WordPress Blog?

There are four major things that you can monitor your website with the help of Google Analytics:

  1. Number of People who visit your blog or website in a day, week, or month.
  2. Which sources the visitors are coming from, such as Google Search Results, Social Media Channels, or Direct Visits.
  3. How much time your audience spends on your blog.
  4. And finally, which pages or posts on your blog get high visits.
IMPORTANT: Google Analytics will only have data about your website from the time it was connected to your website, and you may not see that data right away. Give Google about 24 hours to crawl your website, and soon, you’ll begin seeing data about your website traffic, where it’s coming from, what visitors are doing on your site, and how long they stay.

You may also like to read:

How to Create a Free Account in Google Analytics?

First of all, to install Google Analytics on WordPress, you need to create a free Google Analytics account. For that, you need a Gmail account. If you already own a Gmail account, you can use it or create one for free of cost.

Here is the Step by Step Process of creating a free Google Analytics account with your already created Gmail account.

Open a Web Browser on your PC or Laptop and Type Google Analytics. Click on the first result from your search.

On step 2, click ‘Set up for Free.’ And in the next window, Make sure to enter the Account Name of your Google Analytics. The name can be anything as your wish, and you can add multiple blogs or websites later under your one Google Analytics main account. Once you are done with entering your name, scroll down, and click ‘Next.’

How To Install Google Analytics On WordPress
Add Website – Install Google Analytics On WordPress

In the Next Step, the setup page wants you to confirm what you want to measure with your Google Analytics account: website, apps, website, and apps.

How To Install Google Analytics On WordPress
Select Web – Install Google Analytics On WordPress

As we set up Google Analytics for WordPress blogs, make sure to Click ‘Web’ and then click ‘Next.’

On this third and final setup called Property Set up option, you need to input your website details such as your Website, Your Website URL, and your Time Zone. While entering your URL, Do not type as you may make some spelling mistakes.

So, the proper way to enter your website URL is to head to your Website and Copy the URL there without HTTPS:// and www there and Paste it on the URL section of the Google Analytics Property Set Up Page to install Google Analytics on WordPress.

 Click ‘Create,’ and you are done with creating your Free Google Analytics account.

How to Connect your Google Analytics Account With Your WordPress Blog?

Using simple steps, you can instantly connect to your Google Analytics account with your WordPress blog to install Google Analytics on WordPress and instantly monitor your website traffic.

How to Install Google Analytics on WordPress Without a Plugin

There are two ways you can connect Google Analytics to your blog

  • you can add it directly to your website or
  • use a plugin to do if for you

We are gonna show you how to add it with both methods so you can decide which one you prefer.

How To Install It Without a Plugin

To add Google Analytics directly to your blog, you’re going to add a tracking code to <head> of your blog.

To do this, go to your Google Analytics dashboard > admin > tracking info > tracking code and copy the “Global Site Tag” code.

How To Install Google Analytics On WordPress
Copy Code – Install Google Analytics On WordPress

Now go to your WordPress dashboard and go to appearance > theme editor.

How To Install Google Analytics On WordPress
Paste – Install Google Analytics On WordPress

From there, search for “header.php” under “Theme Files.” Click on the “header.php” and paste the code after the <head> and click Update File to save your changes and that’s it.

Pros and Cons of Installing GA Directly to Your Website

PROS:
  • If you’re familiar with coding, this would probably, be the easiest for you.
  • You don’t have to install another plugin to your website (plugins can slow down your website)
CONS:
  • If you don’t know much about coding, you could mess up your theme.
  • The code will disappear if you update or change them.

You could do another thing without directly messing with your theme, installing a header and footer plugin. And then, add the tracking code to the header section of your theme through the plugin.

Google Analytics for WordPress by MonsterInsights

For the first method, we’ll be using a plugin to set up your tracking information. The best Google Analytics plugin for WordPress is MonsterInsights. MonsterInisghts is the best and easiest way to install Google Analytics on WordPress for beginners and experts.

MonsterInsights is not only the easiest solution to install Google Analytics on WordPress, but it also has heaps of advantages over manual methods, which are:

  • WordPress analytics reporting: Actionable data and insights within the WordPress dashboard.
  • eCommerce tracking: Set up tracking for WooCommerce, Easy Digital Downloads, LifterLMS, and MemberPress with 1 click.
  • Affiliate tracking: Use Google Analytics reports in MonsterInsights to determine which affiliate links are getting the most clicks to maximize your revenue.
  • Download monitoring: See how many downloads your files are getting with custom reports.
  • Author stats: Find out traffic and engagement statistics for each author on your blog.
  • Advanced Tracking: with optional Addons.
9.5
Easily Install Google Analytics On WordPress in 10 Minutes Solutions

The Best WordPress Analytics Plugin Best Value

MonsterInsights is the best Google Analytics Plugin for WordPress. With over 2,000,000+ active installs, MonsterInsights is the most popular Google Analytics plugin for WordPress. Here’s why smart business owners, marketers, and developers love MonsterInsights, and you will too!
70% Off Get now
Join 2,000,000+ Professionals who use MonsterInsights to Grow their Business with Confidence.

You can install Google Analytics on WordPress without knowing or understanding how to code, which can be tricky for small business owners.

To set up analytics with MonsterInsights, follow these simple step-by-step instructions.

Note: There is a free version and a paid version of MonsterInsights. For this guide, we’ll be using the paid version.

Step 1: Download and Install MonsterInsights

If you haven’t already done so, you can get the Google Analytics for WordPress by MonsterInsights download here to install Google Analytics on WordPress. Then save it to your computer and install and activate the plugin.

You can install the MonsterInsights plugin by navigating to Plugins » Add New from your WordPress dashboard. Then click Choose Now to find the plugin .zip file on your computer and click Install Now.

When you purchased your copy, you will have received a license key that you can view in your MonsterInsights account area.

Copy that key and add it to the blank License Key area in WordPress. Then click Verify.

How To Install Google Analytics On WordPress
Activate – Install Google Analytics On WordPress

Step 2: Connect MonsterInsights

Once your license is verified, scroll further down the page where you’ll see 2 options labeled:

  1. Connect MonsterInsights
  2. Launch Setup Wizard

For this step, you’ll need to click the Connect MonsterInsights option to install Google Analytics on WordPress.

After this, you’ll go to another page where you can authenticate your Google account. Then you’ll see a message from MonsterInsights asking for permission to access your account. 

To provide access, go ahead and click the Allow button.

On the next page, you can select the website you’d like to collect data for.

To complete the process, click on the Complete Connection button and that’s it.

More interesting articles for you:

Installing the Site Kit by Google WordPress Plugin

You have to install the Site Kit by Google WordPress plugin straight from your WordPress dashboard to install Google Analytics on WordPress. Log in to your WordPress dashboard; click on Plugins and then click’ Add Plugins’ on the right side menu. Type’ Site Kit by Google’ on the search column. You will get a plugin. Ensure to Click ‘Install Now’ and then ‘Activate’ to let the plugin work.

Setting up Site Kit Plugin

On the Site Kit Plugin Page, you will see an option called ‘Start Set Up’ click on that, and it will take you to Google Sign In page to install Google Analytics on WordPress. Click on Sign In and Choose the Google Account which you used for Google Analytics Sign Up. Click ‘Allow’ to confirm your access to the plugin with your Google Analytics account.

On this Site Kit Plugin Set Up Page, you have to manually confirm three steps after signing into your Google Account straight from the Plugin Page via WordPress Dashboard to install Google Analytics on WordPress.

Firstly, you need to verify your site ownership. So, Click on ‘ Proceed’ under the verify site ownership option. Once you click Proceed, it will be verified automatically as you have already added your website into Google Analytics.

Secondly, Click ‘Allow’ to let the website you added to your Google Analytics account can access Google Account data and show the metrics on your Site Kit Plugin dashboard.

On this Final Set up Step, which is ‘Set up Search Console,’ you have to click ‘Add Site’ to add your site to Google Search Console. Google Search Console is a similar tool to Analytics in which you can monitor how people can find your WordPress blog on search results.

How To Install Google Analytics On WordPress
Setup – Install Google Analytics On WordPress

Now you’re done with setting up your Site Kit by Google Plugin. Click ‘Go to your Dashboard’ that takes you to the Site Kit Plugin on the WordPress dashboard.

On the Plugin Header Message, You will see a Message’ Congratulations on Completing the Setup for Site Kit’. That’s it, and you are successfully setting up the Plugin to install Google Analytics on WordPress.

Now it’s time to learn how you can connect your Google Analytics account with the help of the Plugin.

Connect Your WordPress Blog with Google Analytics Account Through Site Kit

Under your Google Site Kit Plugin, you will see an option called ‘Google Analytics.’ Under this, you have to click ‘Connect Service.’ Then, You will be asked to sign in to your Google Account. Make sure to click your Google Account and sign in. Click ‘Allow’ on to the next step to install Google Analytics on WordPress.

How To Install Google Analytics On WordPress
Connect – Install Google Analytics On WordPress

Now, it’s time to connect the service between the plugin and your Google Analytics account. Click ‘Configure Analytics,’ and you are now connected with your WordPress website.

You are now fully completed the process, and your WordPress blog performance will now track in your Google Analytics account.

You will see the Google Site Kit Plugin on your WordPress dashboard’s left side, Click on It and then Click ‘Analytics.’ It will show you the overall performance of your blog on this plugin page, and you can easily monitor all the stuff you need.

You can check whether the process you handled yourself to install Google Analytics on WordPress is working fine or not.

Install Google Analytics on WordPress With GA Google Analytics

This is the simplest solution for adding Google Analytics to WordPress. Just install, add your tracking ID, choose the tracking method, and place the code in your header or footer, save, and you are done.

It has some more optional settings like adding custom markup, disabling tracking admin-level users, and using Google Analytics to track behavior in the WordPress back end.

However, this is as no-frills as it gets, which also explains the 4.9-star rating at more than half a million installs. For a similarly simple solution check Analytics Cat.

Install Google Analytics on WordPress With Functions php

To add Google Analytics to your site using the functions file, add the following code to your theme’s functions.php file, inserting your tracking code to install Google Analytics on WordPress.

<?php
add_action(‘wp_head’, ‘wpb_add_googleanalytics’);
function wpb_add_googleanalytics() { ?>
// Paste your Google Analytics tracking code here
<?php } ?>

Add Google Analytics on WordPress With Google Tag Manager

How To Install Google Analytics On WordPress
Tag Manager – Install Google Analytics On WordPress

Another method you can use with Google Analytics and WordPress is Google’s Tag Manager. This is used to increase your agility. Meaning you can update your own tags for conversion tracking, look at site analytics, and more.

Easily add or change your tags as you please, or include third-party tags for web and mobile apps. The best part is, you can update or add more scripts from the Tag Manager user interface instead of in WordPress.

After signing up, download the Tag Manager WordPress plugin. On your WordPress site, go to Plugins -> Add New -> search for Google Tag Manager -> Activate.

Once that is complete you will need to enter your Google Tag ID into the plugin to install Google Analytics on WordPress. To do this go to your Tag Manager site and click on Admin. Here you will find an ID starting with GTM, copy it for now.

Then on your WordPress site go to Settings -> Google Tag Manager, and paste it into the Google Tag Manager ID box.

How to Check Whether Google Anlytics Working Fine or Not?

Open your Google Analytics account. Click ‘Real Time’ and then click ‘Overview’ to monitor your real-time traffic. If no one is on your site, the overview seems ‘Zero.’ In this case, open a new window in your browser and type your WordPress blog URL. You will see the change in Real-Time Overview on your Google Analytics account as it will change from Zero to One user. That means your Google Analytics account is working fine.

How To Install Google Analytics On WordPress
Realtime Report – Install Google Analytics On WordPress

Once you find your Google Analytics is working fine, you never need to open your analytics account whenever you want to monitor your blog performance. You can get all the traffic insights straight from your WordPress dashboard.

FAQs About Install Google Analytics on WordPress

Do I need to put Google Analytics code on every page?

No, you are not supposed to put Google Analytics code on every page of your website. All you need to do is place the code between the opening <head> and closing </head> tag of your website.
It is always advised to place it as soon as the head tag opens to ensure precise data tracking.

Is Google Analytics a plugin?

Google Analytics is a free web and app analytics tool available to anyone provided by google. It is not offered as a WordPress plugin. However, you can easily install Google Analytics in WordPress using a plugin or manually.

Can I set up Google Analytics for multiple websites with the same Google account?

You can set up Google Analytics for multiple websites by going to the Google Analytics Admin section. There is an option to add a new account that would be your new site.

Conclusion – Install Google Analytics on WordPress

The process of installing Google Analytics on WordPress blogs is straightforward and free, as you can do it within 10 minutes on your WordPress blog following the above quick steps. All you have to do is, follow the steps mentioned above properly without missing anything.

Remember, Soon after setting up your blog with WordPress and a theme installation, the next big thing you should handle is installing Google Analytics on your WordPress blog, which helps you understand your site’s performance.

We will be happy to hear your thoughts

      Leave a reply

      Online Information Hub
      Reset Password