How to Install Google Analytics on Your WordPress Site

How to Install Google Analytics on Your WordPress Site

Google Analytics (GA) is a free web traffic tracking software that provides webmasters with information regarding how visitors interact with their website.

If you are running a WordPress site, installing Google Analytics is a straightforward process. There are different ways of setting up GA.

But for the sake of simplicity, this guide focuses on using a plug-in to make the entire process stress-free. No matter the method that you opt to use, Google Analytics is a great tool when it comes to providing better insights of your website to make better data-driven decisions.

Prerequisites

  • A valid Google Analytics account (If you don’t have an account, you can sign up here)
  • A running WordPress site
  • WordPress admin username and password

if you do not yet have a running wordpress site, you will need to start by getting a WordPress hosting plan. You can use HostAdvice’s WordPress Hosting reviews to choose the best web hosting for you.

Step 1: Login to your WordPress site

You can visit the admin section of your WordPress by entering the URL below on a web browser:

http://www.example.com/wp-admin

Remember to replace ‘example.com’ with the domain name of your WordPress site.

Once the login page that appears, enter your username and password and click ‘Log in’ to proceed.

Step 2: Add Google Analytics Plugin by Monster Insights

Once you are on the dashboard, locate the ‘Plugins’ and click ‘Add New’ on the sub-menu.

On the next screen, enter ‘Google Analytics by MonsterInsights’ on the search box. On the first plugin link that appears hit ‘Install Now’

The plugin will be installed successfully and you can enable it by clicking ‘Activate’.

Step 3: Authenticate Monster Insight Plugin with Your Google Account

Once you are through with the above steps, you will be taken to the Plugins list page. Here, you have to locate the plugin ‘Google Analytics for WordPress by MonsterInsights’. Then, click on ‘Settings’

Next, click on ‘Authenticate with your Google Account’

Next, click ‘Allow’ to give MonsterInsights access to your Google account.

Select ‘All Website Data’ from the list box that appears for the website that you want to track traffic for and click on ‘Complete Authentication’

You will be taken back to the MonsterInsights Plugin Settings page. Click on ‘Save Changes’ at the bottom

You have successfully saved your Google tracking code on your WordPress through the MonsterInsights’ plugin

Conclusion

In this article, we have taken you through the steps of installing Google Analytics on your WordPress site using a plugin from MonsterInsights. From this point onwards, Google will be able to track your website visitors and their interactions with your site. You can log in on Google Analytics website a day or two after the installation to ensure that everything is working.

Check out these top 3 WordPress hosting services:

A2 Hosting
$2.99 /mo
Starting price
Visit A2 Hosting
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.8
  • Pricing
    4.0
Hostinger
$2.99 /mo
Starting price
Visit Hostinger
Rating based on expert review
  • User Friendly
    4.7
  • Support
    4.7
  • Features
    4.8
  • Reliability
    4.8
  • Pricing
    4.7
HostArmada
$2.49 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0

How to Add a Google Analytics Tracking Code to Your WordPress Site

This is a how-to article which will have two different methods to enable Google
3 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How to Edit the CSS for your WordPress Site Using the cPanel Hosting Control Panel

As you know, the design of a WordPress website is controlled by
4 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How to use Amazon RDS with your WordPress Installation

The default instance which is set up while creating an EC2 server with complete
3 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How to Reduce CPU Usage by Limiting WordPress Heartbeat API

It’s always recommended to keep your website optimized because the CPU utili
4 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top