A Complete Guide On How to Add Google Analytics To WordPress – 2018

Are you willing to know how to add Google Analytics to WordPress? It is very important to know how your audience interacts with your website. And the best way to know your audience is via your traffic stats. So to find out the traffic stats on your blog, you need the Google analytics tool, which is available for FREE. Google Analytics is one of most powerful tools you can add to your toolbox for tracking your website activity. It is the most widely used tools. In this article, we will illustrate what is Google Analytics, why is it necessary and how you can add Google Analytics with or without using a plugin.

Read Also: How to Track User Engagement with Google Analytics in WordPress

Google Analytics and WordPress

Google analytics and WordPress works excellent when paired together. It is a free website tracking service that reports website traffic, conversions and user behaviour etc. It is one of the most popular and effective website tracking service available.

Important features of Google Analytics:

  • Show you traffic your website receives.
  • Where that traffic is coming from.
  • And how visitors interact with your site once they arrive.

Google Analytics data can be exported in various formats. You can also create your own custom Dashboard that simply provides and updates the data you wish to see.

Importance of Google Analytics for Bloggers

After you start blogging your goal is to get more traffic and subscribers to your blog. Google Analytics help you make data-driven decisions by displaying you the stats that matter. By using this tool, you can keep an eye on:

1. Who are the visitors to your website?

This part of analytics answers the following questions:

  • What is the geographical location of your audience?
  • Which browser did the user use to visit your site?
  • And much other important information such as screen resolution, JavaScript support, Flash support, language and more.

When getting a custom design, this data is very useful to make sure that your site will be compatible with your audience.

2. When do people visit your website?

This data helps you to identify the hottest hour of your website. This is the best time when you should publish your post.

3. What people do when they are on your website?

It provides you with the following information:

  • Where is the user going to your website?
  • How long do they stay on your website?
  • And what is the bounce rate (the percent of users exit your site on the first visit)?

You can use this data to decrease the bounce rate and increase your page views.

4. How do people interact with your website content?

Google Analytics displays you what percent of the user clicked on which link on your site etc. You can also run A/B split tests to understand what works best for meeting your goals.

5. How do people find your website?

This section of the analytics displays you following results:

  • The source from where the user comes from. Sources:  Direct Links, Search Engines, Referral links from another site.
  • What percentage of your visitors came from each of these sources.
  • And which search engine got you the most traffic, Google, Bing, Yahoo, etc.

The data received from the above analysis will assist to breakdown referral sources and identify the sites you require to work with the most.

For example: If your top referral source is Facebook, then you need to have exclusive Facebook content to make your Twitter audience feel special.

Similarly, you should consider having a partnership with the website. If your top referral source is an external website.

Also Read: 10 Free Tools for Checking Vulnerabilities in WordPress Website

How to create a Google Analytics account?

Some of the Steps to be followed:

Step 1: Firstly visit Google Analytics signup page and then after enter your existing Google account information or create a new account.

google analytics signup page

Step 2. After you have signed-in with your Gmail account you will be prompted to a screen like shown below. And here you will signup for Google analytics with your Gmail account.

google analytics setup

Step 3. Select the website option from the two options given.

Step 4. Enter the following information on the next page:

  • Enter the account name and it will be the Google Analytics profile name for this website.
  • Website name
  • Website’s URL
  • Country
  • And the time zone

enter google analytics info

Step 5. Click on get tracking ID.

Step 6. Now you will see the Google Analytics tracking code. Copy this tracking code as it will be required later in your WordPress site.

tracking code

How to easily Add Google Analytics to WordPress?

So let’s have a look at the two methods:-

Method 1: Adding Google Analytics to WordPress with the use of Plugin

There are various ways to add Google Analytics to WordPress. Here we will describe you two methods to add Google Analytics to WordPress.

Select one that best suits your requirements.

1. Using Google Analytics WordPress Plugin(MonsterInsights)

MonsterInsights is the most popular Google Analytics WordPress plugin. It is the simplest and best way to add Google Analytics to WordPress. This plugin can be used by both beginners and experts.

This plugin has both a free version and the Pro version. If you want more advanced features like Ecommerce tracking, Ads tracking, Author tracking, etc then the pro version is useful. Otherwise, the free version will do your work and the process of setting them up is the same.

Steps to be followed:

Note: Once the plugin is activated, it will add a new menu item labelled Insights to your WordPress admin menu.

  • Visit Insights > Settings for configuring the plugin settings.
  • On this screen, click on Authenticate with your Google account button to connect Google Analytics to your WordPress site.

add google analytics to WordPress (MonsterInsights)

  • This will bring up a popup where a click on ‘Next’ to continue.

analytics authenticator

  • Now click on Click to get Google code button.

Another popup will show on your screen with the message:- “MonsterInsights would like access to your Google Analytics data”

  • After that Click on the Allow button to continue.

analytics account page

  • Just Copy the line of code in the pop-up screen.
  • Enter this code in the MonsterInsights popup and then tap on Next to continue.

enter tracking code

  • Choose the profile you want to track. You need to select your website here and then click on the next button to continue.

You have successfully installed and setup Google Analytics on your WordPress site.