How to integrate Google Analytics into WordPress

Google Analytics WordPress: The use of Google Analytics No. WordPress it is more than essential on a website or blog. After all, the tool is what helps to further improve the performance of your project, having several advantages and super important features for those who want to have the best results. Aiming at the need to have something so good on your website or blog that we decided to do this step by step, well explaining for those who are new to this field understand without major difficulties when adding Google Analytics to your WordPress.

How to add google analytics on wordpress? | google analytics wordpress
How to integrate Google Analytics WordPress

How to integrate Google Analytics WordPress

First step: Create a Google Analytics account

How to integrate google analytics in wordpress | 196e3293 wordpress plugins for google analytics. | development, google analytics, pc, wordpress | google analytics wordpress tips/guides
First step towards integration: Google Analytics WordPress

The first thing you will do before trying to add the Google Analytics tool to your WordPress site is to register. Just like every registration you do through Google, it's very simple to do.

Step 1: If you haven't logged into your Google account, or simply don't have one yet, navigate to the registration page.

Step 2: Now go to Google Analytics and click on the button Configure for Free to start the process.

Step 3: On the page Create an account, enter your account name, define yours Account Data Sharing Settings and then click on the option Próxima.

-- Advertising --

Step 4: In the next section, choose how you want to measure your site. Click on the option Web and then proceed to the next page.

Step 5: Enter your website details (be it name, URL, category, time zone, among other things) in the third section. Once you're done, click on the button. Create.

Step 6: Google Analytics will then present your Terms of Service. Check all the necessary boxes and then click on I accept.

Step 7: Congratulations, my friend or my friend! You have now successfully created a Google Analytics account.

Second step: How to add via WordPress Plugin

How to integrate google analytics in wordpress | f6d54068 monsterinsights wordpress plugin | development, google analytics, pc, wordpress | google analytics wordpress tips/guides
MonsterInsights is one of the best options available | How to integrate Google Analytics WordPress

We are in the second step of our process and now we will have to add through the WordPress plugin. In case you still don't know how to add plugins to WordPress, know that we have an article explained step by step, in three different methods, how to do the process. It's very simple and you will definitely get through it.

-- Advertising --

However, if you don't want to mess with the topic for fear of doing something wrong, no problem! Some plugins can help you with that, as well as making your life easier. In this case, in our walkthrough, you will see the MonsterInsights interface, which is very good and fulfills the function it is designed to do well. But it is paid and has a lite version to meet people who need more basic tools.

Step 1: In your WordPress control panel, navigate to Plugins and depois Add New.

Step 2: Search the plugin Google Analytics Dashboard for WordPress. Download it and activate it.

Step 3: Go back to the WordPress control panel. A new option called Insights should appear.

Step 4: Scroll down a little to see the button Launch the Wizard! (in Portuguese, Launch the Installer!). Click on it. Follow the instructions to complete your first setup. This is where we connect the MonsterInsights plugin to your Google Analytics account.

-- Advertising --

Step 5: Continue iffollowing the instructions and filling in the necessary information. When everything is finished, you will see the Finish Setup & Exit Wizard button.).

Step 6: Congratulations, you have completed the installation process! You can go to the area Insights guidance on Reports to see how your website is performing.

Google Analytics WordPress manually

How to integrate google analytics in wordpress | c53cf1ad wordpress child theme 805x452 1 | development, google analytics, pc, wordpress | google analytics wordpress tips/guides
To continue it is necessary to have the Child Theme, or Theme Filho | How to integrate Google Analytics WordPress

Have you done all the steps right? Well, after logging in, you need to have a sort of tracking code and put it on your site.

And, to continue, you must have a Child Theme (in Portuguese Child Theme) installed. In case you don't know what this is, the child theme will be affectionately called that way precisely because it works together with another theme (which in this case is called the parent theme) from which it inherits all the functionality and style.

Well, going back to the tracking code, when creating your registration, you will be redirected to a page where you will get the code. If you don't know how to rescue, here it is:

-- Advertising --

Step 1: Log in to your Google Analytics account and then navigate to the menu of Commercial in the bottom left corner.

Step 2: Click on the menu Tracking Information. Then click on the submenu Tracking code.

Step 3: You should see your Tracking ID and yours Global Site Tag. Save both of these codes as we will need them later.

Where to add the code?

To add the Google Analytics tracking code, you may be using the Theme Header file header.php.

Step 1: Again, navigate to Appearance -> Theme Editor.

-- Advertising --

Step 2: Open the file from Theme Header (header.php) in the right column.

Step 3: Paste the tracking code in the header area or more specifically above the tag .

Step 4: Once you are done, click on the button Update File to save the changes.

Google Analytics: Google Tag Manager

How to integrate google analytics in wordpress | 6712ad04 google tag manager | development, google analytics, pc, wordpress | google analytics wordpress tips/guides
Use Google Tag Manager | How to integrate Google Analytics WordPress

As we showed the manual method, another good option is the Google Tag Manager, with it you can update your tags, check some data from your site, among other important things.

After registering, download the Plugin of Tag Manager for WordPress. On your WordPress site, go to Plugins later on Add new, search for Google Tag Manager and finally activate.

-- Advertising --

Once the process has been completed, you will need to enter your Google Tag ID into the plugin. To do this, go to your Tag Manager website and click on Admin. Here, you will find an ID that starts with GTM. Copy it.

So on your WordPress site, go to Settings, later on Google Tag Manager and paste in the box Google Tag Manager ID.

Street: Hostinger

More about WordPress

Very interesting video regarding WordPress | WordPress plugin

WordPress is a free and open content management system for the internet (Content Management System – CMS), based on PHP with a MySQL database, running on an interpreter server, mainly aimed at creating electronic pages (websites) and online blogs. Created from the defunct b2/cafelog, by Ryan Boren and Matthew Mullenweg, and distributed free under the GNU General Public License.

It is one of the most used tools for content on the web, competing with Google's service, called Blogger. However, WordPress is adopted by those who want a page with greater customization and differential features.

-- Advertising --

The popularization of this system is due, among others, to its type of license (open source), ease of use and versatility. It is also possible to develop websites like e-commerce, magazines, portfolio, project manager, event aggregator and other content due to its extensibility through plugins, themes and PHP programming.

WordPress has a template system, through a template processor. The user can rearrange the layout through widgets without having to edit PHP or HTML codes; they can also install and switch between WordPress themes. The themes' PHP and HTML codes can also be edited to add custom functionality.

Avatar of rafael meireles

Journalist, 23 years old and fascinated by FPS. Few things in Rafael's life do him as well as writing and playing video games. Football and music also have parts of your heart.