How To Install Google Analytics In WordPress For Beginners

Google Analytics is the most commonly used analytics tool to measure traffic on a website. It is free and easy to install on your WordPress blog. However, this service is not included with your hosting plan and you need to manually set it up.
How-to-install-Google-Analytics-in-WordPress
88 / 100

Google Analytics is a free website traffic analysis tool that provides comprehensive statistics to help you know how your visitors are interacting with your site. With Google Analytics installed on your WordPress blog, you can track every aspect of your site’s performance to better understand who is using it and why.

Google Analytics is an important source of information for both marketers and webmasters. If you want to see how your website is doing or what areas need improvement, Google Analytics can help you with that.

WordPress makes it easy to install Google Analytics on your WordPress site by providing a step-by-step wizard. In this tutorial, we’ll show you how to install Google Analytics in WordPress by using the Google Analytics plugin.

Why is Google Analytics Important?

Google Analytics is an important tool for every website. It helps you to understand how your website is performing and gives you information about your customers. It is a free tool that allows users to analyze their traffic and optimize their websites based on the data they receive.

When it comes to analyzing data, there are three main things that you need to know: audience, traffic sources, and goal metrics.

The real power of Google Analytics comes from its ability to help you understand what your visitors want and how they interact with your website.

With Google Analytics, you can see:

  • Who visits your website
  • What people do when they are on your website
  • When do people visit your website
  • How people find your website
  • How they interact with your content

How to Signup with Google Analytics

Google Analytics is an essential program to use in your business. It allows you to track how many people are coming to your site each day, what pages they’re watching, and much more.

This data will give you insight into what content you should be creating for your email marketing campaigns, and what social media content you should be posting. You’ll be able to see which of your posts are performing better than others and can then tailor your future posts around those topics.

If you know that a certain topic appeals to your target audience, you can increase the frequency of posts on that topic.

Google Analytics is available for free and all you need is a Google or Gmail account to sign up. The signup process is quite simple, follow the step-by-step instructions below to create your Google Analytics account.

To start collecting basic data from a website:

  1. Create or sign in to your Analytics account:
    • Go to google.com/analytics
    • Do one of the following:
      • To create an account, click Start for free.
      • To sign in to your account, Click Sign in to Analytics.
  2. Set up a property in your Analytics account. A property represents your website or app, and is the collection point in Analytics for the data from your site or app.
  3. Set up a reporting view in your property. Views let you create filtered perspectives of your data; for example, all data except from your company’s internal IP addresses, or all data associated with a specific sales region.

Next steps

Configure your account, properties, and views to determine access to your data and which data is available.

For example, you can:

Modify your tracking code to collect additional data such as:

  • User interactions with links, buttons, video controls, and other dynamic elements of your site or app. Learn more about event tracking.
  • Ecommerce activity like user engagement with product lists and internal promotions, and how successfully users moved through your purchase funnel and checkout process. Learn more about ecommerce and enhanced-ecommerce data collection and reporting.

How to Install Google Analytics in WordPress

There are several ways of setting up Google Analytics in WordPress. Here, we’ll take a look at three methods where the first option is the easiest and the last is the hardest.

Method 1. Google Analytics for WordPress by MonsterInsights

Google Analytics for WordPress by MonsterInsights is the most powerful Google Analytics plugin for WordPress. It will allow you to track your visitors, their behavior, time on site, pages per visit, and a lot more.

We have basically created an all-in-one solution for you. You can even create custom reports that will show exactly what you want in your Google Analytics account. With the right tracking setup, you’ll be able to answer your main questions about traffic and generate valuable insights about your blog.

Google Analytics for WordPress is the most popular plugin for WordPress. It is used by millions of WordPress users and provides deep insights into your website’s traffic.

The first thing you need to do is install and activate the MonsterInsights plugin.

Choose a category for your website (a business website, blog, or online store). 

Then click on the ‘Connect MonsterInsights’ button.

install google analytics

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

Next, you will be asked to allow MonsterInsights to access your Google Analytics account. 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.

monsterlights

MonsterInsights will now install Google Analytics on your website. After this, you’ll be able to choose recommended settings for your website.

Method 2. Insert Headers and Footers Plugin

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.

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.

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.

tracking code

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

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.

<?phpadd_action('wp_head', 'wpb_add_googleanalytics');functionwpb_add_googleanalytics() { ?>// Paste your Google Analytics tracking code from Step 4 here<?php } ?>

Conclusion:

When installing Google Analytics in WordPress for beginners, you’ll need to remember a few key steps. First, you will need to log in to your WordPress dashboard and then click on the “Settings” link. From there, scroll down until you see the “Google Analytics Settings” widget and click on it. You should now be able to paste your Google Analytics code into that box and save your changes. do follow the URL: https://www.feedtheb

Share on facebook
Facebook
Share on google
Google+
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

side hustle

Online Side Hustles In Kenya That Pay Up To $50 Per Hour.

Kenyans are known for their entrepreneurial spirit, so it’s no surprise that there are many online side hustles you can consider. There’s no time like the present to start making some extra money. Whether you need to pay down debt, save for a rainy day, or just want to have a little more spending money, there are plenty of side hustles that can help you reach your financial goals.

affiliate programs

Should Freelancers Join Affiliate Programs?

As a freelancer, you may be wondering if you should join affiliate programs. The answer is: it depends. Affiliate programs can offer great benefits, but they may or may not be the best option for you.