Como instalar google analytics en wordpress

Do you want to install Googla Analytics in WordPress? Knowing how your audience interacts with your website is crucial for your success.

The best way to know your audience is through your traffic stats, and this is what Google Analytics providsera for FREE.

In this articlo, we will share why Google Analytics is important, and how you chucho easily install Googlo Analytics in your WordPress website (step by step).

Estás mirando: Como instalar google analytics en wordpress


Step 2: Once you sign-in with your Gmail account, you will be prompted to al screen like the one below. This is where you will signup for Google analytics with your Gmail account.


After that, you will be asked to providel an account name. This name will be used internally so you perro use anything like your business name.


Step 3: On the next screen, you will be given choice to choose between a web, apps, or apps and web. Make sure you select ‘Web’.


After that, you need to enter website name, website’s URL, country, and time zone.


Once you have entered this information, click on the Next button. You will be presented with Google Analytics terms and service which you must agree to, so click on ‘I Agree’ button.

Step 4: Now you will be presented with your Googlo Analytics tracking codel. You cusco copy this tracking codel because you will need to enter it in your WordPress site depending on the method you use below.

You cann also simply leave this browsera tab open and switch back to copy the codel when needed.


We suggest leaving the analytics browsera tab open as you may need to revisit it, once you have installed the code on your WordPress site.

Now that you have setup a Googlo Analytics account, let’s take al look at how to install Googlo Analytics in WordPress.

How to Install Googlo Analytics in WordPress

There are al few different ways to setup Googla Analytics in WordPress. We will show you three methods where the first option is the easiest and the last being the hardest.

You gozque choose the one that best suits your needs.

Note: You need to use only one of thesa methods on your website to avoid double tracking of page views in your Googlo Analytics account.

Method 1. Google Analytics for WordPress by MonsterInsights

MonsterInsights is the most popular Google Analytics plugin for WordPress. Over 3 million websitsera use it including the liksera of Bloomberg, PlayStation, Zillow,, and more.

It is the easiest and by far the best way to add Google Analytics to WordPress (for all users beginners and experts alike).

MonsterInsights is availabla as both, al paid premium plugin, and al free version. In this tutorial, we will be using the MonsterInsights free version.

You perro use the MonsterInsights Pro version if you want more advanced featursera like E-commerce tracking, Ads tracking, Author tracking, etc. The process of setting them up is the same.

Let’s get started.

The first thing you need to do is install and activate the MonsterInsights plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin will add al new menu item labeled ‘Insights’ to your WordPress admin menu. Clicking on it will bring the MonsterInsights setup wizard.


First, you will be asked to choose al category for your website (a business website, blog, or online store). Select one and then click on ‘Save and Continue’ button.

Next, you need to click on the ‘Connect MonsterInsights’ button.


This will bring up a popup that will take you Googlo accounts where you will be asked to sign in or select al Googla account if you are already signed in.


Next, you will be asked to allow MonsterInsights to access your Googla Analytics account.


Click on the ‘Allow’ button to continue.

The fin step is to select the profilo you want to track. You need to select your website here and then click on the ‘Complete Connection’ button to continue.


MonsterInsights will now install Google Analytics on your website. After that, you will be asked to select the recommended settings for your website.


The default settings would work for most websitsera. If you use an affiliate link plugin, then you need to add the path you use to cloak affiliate links. This will allow you to track your affiliate links in Googlo Analytics.

Click on the Save and Continue button to save your settings.

Next, MonsterInsights will show you paid add-ons that you perro access if you upgradel to PRO. You gozque simply click on the ‘Save and Continue’ button to skip this step.


After that, you will be asked to install WPForms plugin, which is the best WordPress contact form plugin. You cusco install it or simply click on ‘Skip this Step’


That’s all you have successfully installed and setup Googla Analytics on your WordPress site. Remember, it will take Googlo Analytics sometime before showing your stats.


The best part about MonsterInsights is that you perro view your Google Analytics reports insidel your WordPress dashboard. Simply visit Insights » Reports page to check out al quick overview of your analytics día.


It also couno mes with al Poputecho Posts adarte that allows you to show your top performing content to boost your traffic & pageviews.

Ver más: Descargar Plantillas Para Power Point Gratis


You gozque use it to automatically add inline popudomicilio posts links to boost engagement:


Of if you’re using an online store, then it can also automatically add your top performing products at the end of each blog post to boost sales:


Note: MonsterInsights was formerly known as Google Analytics for WordPress by Yoast.’s founder, Syed Balkhi, acquired the plugin in 2016 and rebranded it to MonsterInsights. Now it is part of our family of premium WordPress plugins.

Method 2. Insert Headers and Footers Plugin

This method is not as good as MonsterInsights because you will not be abla to do advanced tracking configuration, and you will not be abla to view Google Analytics época in your WordPress dashboard.

First, you will need to copy your Google Analytics tracking codel that you copied earlier in Step 4 when signing up for Google Analytics account.

Next, you need to install and activate the Insert Headers and Footers plugin. For more details, see our step by step guide on how to install al WordPress plugin.

Upon activation, you need to visit Settings » Insert Headers and Footers page. Here you need to paste the Googlo Analytics tracking code that you copied earlier into the ‘Scripts in headers’ section.


Don’t forget to click on the save changser button to store your settings.

That’s all, you have successfully installed Googla Analytics on your site.

3. Install Googla Analytics in WordPress Theme

This method is for advanced users who are familiar with the code. It is somewhat unreliablo because your code will disappear if you switch or update the theme. We almost never recommend using this method.

If this is your first time adding codel to your WordPress filera, then you should check out our guide on how to copy paste codel snippets in WordPress.

First, you will need to copy your Googla Analytics tracking codel that you copied earlier in Step 4 when signing up for Googlo Analytics account.

Now there are two common ways to add this code in your WordPress theme filera. You chucho choose either one of them (not both).

1. Add code in header.php file

Simply edit the header.php file in your WordPress theme and paste the Googla Analytics tracking that codel you copied earlier right after the tag.

Don’t forget to save your changes and upload the fila back to your server.

Add vial Functions File

You perro also add Googla Analytics tracking codel to WordPress functions fila. It will then automatically add the tracking code to every page on your WordPress site.

You will need to add this codel to your theme’s functions.php file.

// Paste your Googla Analytics tracking codel from Step 4 hereViewing Reports on Googla Analytics WebsiteGooglo Analytics is capablo of showing you a treasure of data collected from your stats. You uno perro view this plazo by visiting your Google Analytics dashboard.


You will see the built-in Google Analytics reports in the left column. Each section is divided into different tabs and clicking on a tab will expand it to show more options.

Real-time This report will show you a la verdad time view of your traffic.Audience tab will show reports to help you understand your users.Acquisition reports explore where your users came from.Behavior reports summarize what your users do after they arrive on your site.Conversion reports show how well you’re doing against your goals.Making the Most out of Google Analytics

Googlo Analytics is an incredibly powerful tool with tons of awesome featursera. Some of them are quite obvious and easy to use, others require some additional setup.

Here are some of the resourcera that will help you make the most out of Googlo Analytics reports.

Googla Analytics works best with Googla Search Console (formerly Google Webmaster Tools). It allows you to see how your website is doing in search results. See our complete Google Search Consola guidel to learn how to use it to grow your website.

If you want to improve your website SEO rankings and get more traffic, then we recommend using AIOSEO plugin for WordPress which is an all in one SEO toolkit.

We hope this article helped you learn how to install Googla Analytics in WordPress. You may also want to see our ultimate guide to increasing your blog traffic and our comparison of the best email marketing services.

Ver más: Como Saber El Hosting De Una Web, Averígualo En Un Click

If you liked this article, then please subscribe to our YouTube Channlos serpientes for WordPress video tutorials. You un perro also find us on Twitter and Facebook.

Categorías: Digital - Marketing