Google Analytics in WordPress: Learn how to install it!

Written by

Amparo Máñez

ANALYTICS · 08 / 04 / 2020

Do you have a WordPress website or blog? Are you looking for a way to monitor and track the traffic that reaches your website? In that case, Google Analytics will be your best ally. This powerful and free Google tool provides statistics and valuable data with which you can identify what happens within your website, in addition to observing what content is more attractive to the user. That is, it provides information on conversions, average visit time, bounce rate, most visited content, geographical origin of visits and traffic channels, among many other possibilities.

On the other hand, it is worth mentioning that it is a simple tool because its interface is easy to understand even for people with limited knowledge of web analytics. In short, it is the best way to analyze and monitor your website visits. Therefore, it is advisable to use it to identify possible business opportunities, redesign the implemented strategy based on the data obtained and focus it towards achieving better results, that is, increasing the profitability of your business.

There are two ways to configure Google Analytics in WordPress. Either using a tracking code or by using plugins. In this article, we will explain step by step how to configure Google Analytics in WordPress manually. However, we provide you with a list of several plugins so that you get a broad view of both implementation possibilities.

Some of the plugins used to install Google Analytics in WordPress are:

  1. MonsterInsights
  2. Google Analyticator
  3. GA Google Analytics
  4. Google Analytics
  5. Better Google Analytics
  6. NK Google Analytics
  7. Simple Universal Google Analytics

You are only one minute away from starting to track, control and monitor your site traffic Web. Here we go!

Steps to link Google Analytics in WordPress

Installing Analytics in WordPress manually is very simple. Simply have an account in Analytics, generate a tracking code and copy and paste it into WordPress. Easy, right? In just four steps you will have your WordPress linked to the leading web analytics tool. Multiple are the metrics that you can evaluate and analyze in order to draw valuable conclusions about the optimal functioning of your website. Do you want to know how to get it? Pay a lot of attention! We show you in detail the steps to follow.

Step 1: Create an account in Google Analytics

The first step is to create an account in Google Analytics. To do this, we access and click on Register. It is essential to have a Gmail account to use the tool.

Crear una cuenta en Google Analytics

Next, a screen is generated in which you will have to fill in a series of data such as:

  1. The name of the account: Indicates an identifying name to the created account. It is advisable to indicate the name of the website in order to identify it quickly in the case of having more than one account.
  2. Name of the website: In this section you must indicate the name of your website.
  3. The URL of the website: Enter the exact domain of your website and also select whether it is http or https.
  4. The category of the sector: Choose a category related to the theme of your website.
  5. Time zone: Select the country and time.
  6. Accept Google policies

Once all the fields are duly completed, press Create.

Pasos para crear una cuenta en Google Analytics

Step 2: Get the Analytics tracking code

Now that you have a Google Analytics account, it is time to identify the tracking code or script that we will include in WordPress.

To obtain it, we place ourselves on the main analytics screen. Subsequently, click on Manage and three different columns will automatically be generated: account, property and view. Within Property column, click on the Tracking Information and, afterwards, on Tracking Code.

Pasos para obtener el código de seguimiento de Analytics e instalarlo en WordPress

Once these steps are completed, a new screen is generated containing the script to be included in WordPress. You will find it in Tracking website section. Once identified, just copy it.

Código de seguimiento de analytics

Step 3: Include the tracking code in WordPress

You already have the Analytics tracking code! The next step will be to log into your WordPress and go to the Appearance panel and, then, click on Theme Editor. Next, click on the header.php file located on the right side, within the Theme Files section.

Insertar el código de Analytics en WordPress
Paste the tracking code obtained in Google Analytics before the closing tag </head> , update the file and voilà ! You already have the Google Analytics tool installed on your WordPress.

Step 4: Check that the code works correctly

It is essential to verify that the tracking code obtained from Analytics has been installed correctly in WordPress. To do this, we return to the Administration Section Google Analytics and click on Personalization. Within this field you can observe in real time if the code is active and works properly.

Comprobación del funcionamiento del código de Google Analytics

Another way to verify that the analytics code works correctly is through the Google Tag Assistant extension.

After verifying that the installation has been carried out correctly, it is time to start with the monitoring of the traffic that reaches your website and the analysis of the user’s behavior within it. As you know, there are many metrics that you can evaluate to draw conclusions that allow you to optimize your website to the fullest. And, is that understanding the behavior that each user has within the web is essential to make optimal decisions that will make a difference in your marketing campaigns.

We hope that the article has been useful to you. In addition, we are ready to resolve any questions about it. Do not hesitate to contact us!

Verónica Claver

ANALYTICS · 21 / 05 / 2020

How to create segments in Google Analytics

Google analytics allows us to configure countless parameters, among them, segments that will help us obtain a greater number of conversions. When we enter Google Analytics and look at the volume of data we have, it is very common for us to ask questions: What behavior do the users who performed a conversion on our […]

Susana Argudo

ANALYTICS · 18 / 03 / 2020

Discover the potential of Google Analytics filters

Why using Google Analytics filters will allow you to optimize your daily work as a web analyst? Whether your passion is web analytics or if you work occasionally with Google Analytics, this article interests you!

Joan Buigues

ANALYTICS · 05 / 03 / 2020

Get the most out of Google Data Studio in 10 steps

Data Studio is one more example of how, from the Mountain View company, they tend to overtake the rest of the world. And for better or worse, they have democratized the possibility to visualize and analyze data to make more decisions in the company. Google Data Studio was launched in the early 2016, Within The Google Analytics Suite […]

Send this to a friend