Install Google Analytics in WordPress

As seen in the company’s technology, the most important technology that others depend. In order to measure the effect of the digital market, you must install certain measures on your website or your application. Most products are Google Analytics.

We need to install Google Analytics in WordPress is the website or application is announced and the user is on the Internet. It is not necessary when we have a local or local platform page. If you’ve ever published on your website, now you are! I decided to install Google Analytics.

Eye that in 2022 things changed

In january 2022 (and while we were teaching our SEO lessons), Google released Google Analytics 4. We call this “web + app properties”. GA4 does not yet appear to have all of the advanced configurations used in previous applications, but that will soon change. Most of the old tasks still have Google Analytics 3 (Universal Analytics), but this is a real problem when teaching lessons because the new tasks must include Google Analytics 4. In the tutorial here, we choose to describe both . If you have a new project, you can choose to install the latest version now. If you have an old project, we recommend using both.

IKAUE explains the history of Google Analytics well in the following video: History of Google Analytics – From Urchin to Google Analytics 4.As seen in the company’s technology, the most important technology that others depend. In order to measure the effect of the digital market, you must install certain measures on your website or your application. Most products are Google Analytics.

We need to install Google Analytics in WordPress is the website or application is announced and the user is on the Internet. It is not necessary when we have a local or local platform page. If you’ve ever published on your website, now you are! I decided to install Google Analytics.

Create a Google Analytics account

Due to the number of Google tools that we are going to use in any SEO project, we strongly recommend creating a specific gmail for each website or project. From seosve we usually create a Gmail to install all the tools that the client needs and once everything is configured, we pass it to them so that they can change the password. Other Digital Marketing specialists prefer to manage all the properties themselves, but we do not want to hold clients hostage, but rather help them with their digital strategy.

Property Settings

Behaviors display information from a website or app, or from a company or project. An account can have one or more attributes. This means you can have a working number and have access to websites and articles for applications. If you have several websites or languages, you can have articles for .es, articles for .fr, articles for .de. It depends on your account setup.

To install Google Analytics on WordPress, you need to do one of two things:

Option 1: Add a global website to your theme
Option 2: Install the plugin

Option 1: Add a global website tag to a theme
For us it is the most appropriate option since we will be avoiding installing a plugin. In order to carry out this option, we must first access the appropriate place. Google Analytics already tells us what the <head> tag is, so… Let’s go find it!

We will go to Appearance> Theme Editor. Important! Be careful with changing this section that is code. We will get a warning and we give “understood”.

We will then search for header.php and paste the code provided by Google Analytics before the </head> tag.

Option 2: Install Google Analytics at WordPress with plug-in
If you add the number, you can add the plugin if you create a button. We do not like this option. Because we look at the number of plugins you installed to install the quick website at least one in WordPress because we can view other previous classes. However, students who start with WordPress will be the most appropriate choice.

There are many plugins for this work. To find that, you need to search for “Google Analytics” with the contents of the plugin >> add to the new section.

Check if we have the label correctly installed

Once any of the above options have been made, we must verify that our Google Analytics is receiving data. To do so we have again 2 steps:

Step 1: Google Analytics real-time report

Within our brand new Google Analytics account, we can go to “In real time”, “Overview”. If we enter from our computer, a visit should appear from this device.

Step 2: Install Google TAG assistant in Chrome

Another option to know if we have installed the property correctly is to use the following Google Chrome extension .

Once we have it installed in Google Chrome on our computer, we click on “record”:

When the page loads, you will be notified of the configuration tool. If it is not installed correctly, an error message will appear. The file changes depending on whether the label is installed on one system or another. For example,you can see Google Analytics 3 is configured and in the second screenshot Google Analytics 4 is also configured.