Monday, December 10, 2018
Tips

Install Google Analytics on your website! 4 easy methods

Do you want to start knowing the metrics of your web page? The most reliable and easily accessible tool is Google Analytics and today we will learn how to connect it to your website easily and quickly.

Why install Google Analytics?

A strategy to generate more traffic and subscribers that doesn’t include measurement is not complete.

Decisions are made better with the data in hand and the information that can be related to the fulfillment of the objectives of the web page.

Information such as the resolution from which users view your website, types of devices, types of browsers, formats they support and more can help you adapt the design of your website to reach the greatest number of users.

Language, countries, most visited pages, searches on the page and more can help you adjust the content to what the user expects to find on your website.

You can have information about the user’s behavior on your website, how much time they spend on it, at what time, how they reach your page, what elements of your page they interact with and much more. With this information, you can use different strategies according to the platform from which the traffic comes and link it with the strategy that you carry on your web page.

Google even allows you to perform A / B tests and focus only on the strategies that work.

Installing Google Analytics

The first thing you should have is a Gmail account. It is very easy to create. After this, access Google Analytics with your account. It will show you a screen where you will see the options of website or mobile app, select Website and complete the fields with the data of your website, country, time zone, etc.

After entering this information you will see the Get Tracking ID button, click on it and you will see the terms and conditions of Google Analytics. Click Agree.

You will see below the Tracking ID and a code below generated by Google Analytics for your web page. Enter your WordPress with the code and ID copied to the clipboard or a notepad, without closing the Analytics tab. Let’s see the different ways to install Google Analytics:

With plugins

MonsterInsights is the most famous premium plugin for Google Analytics and one of the easiest ways to install this Google product on your website. It also has a free version that is what we will use below. The Pro version will help you with statistics related to e-commerce, ads, etc.

Install and activate the plugin, then add a new menu item called Insights within your WordPress administrator. Enter Insights ┬╗Configuration to configure the plugin. Under the License Key Type option, you will see a button that says Authenticate with your Google Account. Click on that button and it will redirect you to select the Google account with which you will do this task. Then click Next and click Allow when MonsterInsights requests permission to connect to your Google account. By selecting the profile and then the web page you want to connect to, you will be redirected back to your web page and the process will be ready.

With the plugin Insert Headers and Footers, you can also connect to Google Analytics but the disadvantage is that you will not be able to see the statistics in your WordPress but in Google. When you download and install the plugin, go to Settings and in the Insert Headers and Footers page option paste the code provided by Google Analytics. Save the changes and that’s it.

Advanced method

This method is not for beginners because it requires coding, however you are an expert or not, always make a backup before! Let’s see two options:

  • In the header.php file, insert the code that Google Analytics gave you after the <body> tag. Save the changes!
  • In the functions.php file, add the code below and replace the line at the end with the Google Analytics code.

And ready! There are 4 easy and quick methods to start generating the metrics of your website from one of the most reliable sources that the internet has. See you in the next post!

Jefferson Maldonado
the authorJefferson Maldonado
UX WordPress Designer
Ux & Web Designer. Portafolio: http://maldonadoz.com/portafolio/ Divi Blogger, WordPress Expert, UX Designer, Business Consultant.

Leave a Reply