WordPress

How to Install Google Analytics WordPress Plugin

Google Analytics WordPress Plugin

Google Analytics WordPress Plugin

Would you like to introduce Google Analytics in WordPress? Knowing how your crowd connects with your site is critical for your prosperity Install Google Analytics WordPress Plugin.

The most ideal way to realize your crowd is through your traffic details, and this Google Analytics accommodates FREE.

In this article, we will share why Google Analytics is significant, and the way that you can without much of a stretch introduce Google Analytics in your WordPress site (bit by bit).

Who visits your site?

This piece of investigation answers what is the topographical area of your crowd, which program did the client use to visit your site, and other significant data, for example, screen goal, JavaScript support, Flash help, language, and that’s only the tip of the iceberg.

This information is incredibly valuable, and it can help in various ways. While getting a special craft, you can utilize the client information to ensure that your site will be viable with your crowd.

On the off chance that the greater part of your clients doesn’t have Flash help, you ought to try not to add the blaze component to your site. If the greater part of your clients is on 1280 screen goals, ensure that your configuration is viable with that goal or more modest.

What in all actuality do individuals do when they are on your site?

You can follow where the clients are going on your site, how long do they stay on your site, and what is the ricochet rate (the percent of clients leave your site on the primary visit).

By utilizing this data, you can diminish the bob rate and increment your site hits.

You can likewise observe your most famous articles, articles that are not doing as such well, and what sort of content your clients are searching for.

When truly do individuals visit your site?

By taking a gander at the most sultry hours in the day for your site, you can pick when you distribute your post. On the off chance that that time region isn’t viable with yours, then, at that point, you can plan your post to meet that hour.

How do individuals track down your site?

This segment of the investigation shows you where did the clients come from (for instance: Search Engines, Direct Links, Referral joins from another site).

It likewise shows you which level of your guests came from every one of these sources. Google examination provides you with the breakdown of every one of these classifications. If it is the web search tool class, it shows you which internet searcher got you the most traffic, Google, Yahoo, Bing, and so on

The breakdown of reference sources shows you which locales you want to work with the most. On the off chance that your top referral source is Facebook, you want to have elite Facebook content to cause your Facebook crowd to feel exceptional.

If your top referral source is an outer site, you should consider having an organization with that site (visitor post-trade or something different).

How do individuals cooperate with your substance?

Google investigation shows how your clients connect with your site’s substance. It shows you what percent of the client tapped on which interface on your site and significantly more.

You can run A/B split tests by making content analyses in Google Analytics to get what works best to meet your objectives.

By seeing the client intelligence, you can work your substance around your clients. By seeing the solutions to the inquiries above, you can zero in on the procedures that work for your site and keep away from systems that don’t work.

Kill the mystery and spotlight on details that matter, so you can settle on information driven-choices.

Instructions to Signup with Google Analytics

Google Analytics is accessible for nothing and all you want is a Google or Gmail record to join. The sign-up process is very basic, adhere to the bit-by-bit directions underneath to make your Google Analytics account.

Stage 1: First you want to visit Google Analytics join.

You will be asked to log in with your Google account. If you as of now have a Google or Gmail account, you can utilize that to sign in. If not, you can feel free to make a Google representation yourself.

signinwithga

Step 2: Once you sign in with your Gmail account, you will be prompted to a 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 provide an account name. This name will be used internally so you can use anything like your business name.

gasetup-2

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

chooseweb

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

gasetup-4

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

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

You can also simply leave this browser tab open and switch back to copy the code when needed

gasetup-5

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

Now that you have set up a Google Analytics account, let’s take a look at how to install Google Analytics in WordPress.

How to Install Google Analytics in WordPress

There are a few different ways to set up Google Analytics in WordPress. We will show you three methods where the first option is the easiest and the last is the hardest.

You can choose the one that best suits your needs.

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

Method 1. Google Analytics for WordPress by MonsterInsights

MonsterInsights is the most popular Google Analytics plugin for WordPress. Over 3 million websites use it including the likes of Bloomberg, PlayStation, Zillow, WPBeginner, 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 available as both, a paid premium plugin, and a free version. In this tutorial, we will be using the MonsterInsights free version.

You can use the MonsterInsights Pro version if you want more advanced features 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 a new menu item labeled ‘Insights’ to your WordPress admin menu. Clicking on it will bring the MonsterInsights setup wizard

misetup

First, you will be asked to choose a 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.

connectmi

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

signinga

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

mipermission

Click on the ‘Allow’ button to continue.

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

finishmisetup

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

settingsmi

The default settings would work for most websites. 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 Google Analytics.

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

Next, MonsterInsights will show you paid add-ons that you can access if you upgrade to PRO. You can 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 can install it or simply click on ‘Skip this Step’

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

finishsetup

The best part about MonsterInsights is that you can view your Google Analytics reports inside your WordPress dashboard. Simply visit Insights » Reports page to check out a quick overview of your analytics data.

gareports

You can use it to automatically add inline popular posts links to boost engagement:

Note: MonsterInsights was formerly known as Google Analytics for WordPress by Yoast. WPBeginner’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 able to do advanced tracking configuration, and you will not be able to view Google Analytics data in your WordPress dashboard.

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

trackingcode

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 a WordPress plugin.

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

addingcodeinwp

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

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

3. Install Google Analytics in WordPress Theme

This method is for advanced users who are familiar with the code. It is somewhat unreliable 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 code to your WordPress files, then you should check out our guide on how to copy-paste code snippets in WordPress.

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

trackingcode

Now there are two common ways to add this code in your WordPress theme files. You can 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 Google Analytics tracking that code you copied earlier right after the <body> tag.

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

Add via Functions File

You can also add Google Analytics tracking code to the WordPress functions file. It will then automatically add the tracking code to every page on your WordPress site.

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

1
2
3
4
5
6
7
<?php
add_action('wp_head', 'wpb_add_googleanalytics');
function wpb_add_googleanalytics() { ?>
// Paste your Google Analytics tracking code from Step 4 here
<?php } ?>

Viewing Reports on Google Analytics Website

Google Analytics is capable of showing you a treasure of data collected from your stats. You can view this data by visiting your Google Analytics dashboard.

gareporting

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 real-time view of your traffic.
  • The 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.

We hope this article helped you learn how to install Google 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.

Comments (4)

  1. binance
    August 15, 2024 Reply

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  2. Wipliek
    November 11, 2024 Reply

    The method of claim 10 further comprising the step of or a salt thereof, wherein group; group; or a salt thereof, wherein priligy buy Created on 6 21 2011

  3. Charlessmild
    November 27, 2024 Reply

    Bonsai Casino online https://bonsai-casino.net casino offers thousands of popular slots, no deposit play and a 200% bonus on your first deposit!

Leave a comment

Your email address will not be published. Required fields are marked *