How to setup Google Analytics on Your WordPress

3
2224

Setup Google Analytics

Setup Google Analytics there Plugins

Google Analyticator Plugin by Sumome

Google Analyticator

Google Analyticator makes it super easy to view Google Analytics on your WordPress dashboard. This eliminates the need to edit your template code to begin logging. Google Analyticator also includes several widgets for displaying Analytics data in the admin and on your blog.

Download Plugin

  1. Install the plugin and activate it.
  2. Click to connect to Google Analytics and log in.
  3. Copy and paste your Google Authentication code and hit Save and Continue.
  4. Choose the Analytics Account you want in the drop down.
  5. Enable Google Analytics logging.
  6. Scroll to the bottom and save.
  7. Then go to your Dashboard to see your stats.

How to setup Google  Analytics Manually

Do you want to install Google Analytics on your WordPress site?

Adding Google Analytics to your WordPress website is the best way to track how your visitors are interacting with your site. In this article, we’ll show you how to install Google Analytics on your WordPress site in 2 simple steps.

Before we jump into adding Google Analytics to your WordPress site, let’s examine what Google Analytics is, why it’s important, and how it works. If you’d rather cut straight to the chase and dive into the step-by-step Analytics installation process, then go for it.

What Is Google Analytics?

Google Analytics is the most comprehensive tracking tool for your website that allows you to see where your visitors are coming from, what they do on your site, which content is popular, and so on.

It gives you a better understanding of your marketing impacts by providing easy-to-understand stats. Whether you’re a publisher, small business owner, or an eCommerce merchant, Google Analytics provides you with everything you need to know about your visitors.

Aside from basic visitor engagement stats, some of the Google Analytics trackings features you’ll find useful are:

  • Ads tracking
  • Enhanced eCommerce tracking
  • Events tracking
  • Online forms tracking
  • And a lot more

Why Are Website Analytics Important?

Understanding your website visitors is the key to growing your traffic, subscribers, and revenue. By installing Google Analytics on your WordPress site, you can gather all your website data, which provides actionable insights to grow your business. That way, you can eliminate guesswork and start making informed decisions based on the data you’ve gathered.

Below are a few benefits of tracking your website visitors using Google Analytics:

Get to Know More About Your Visitors

You can collect and track visitor information such as geographical location, demographics and interests, devices and browsers they used while viewing your site, and a lot more. This data help you better understand your audience, so you can better craft your marketing messages in a way that best resonates with them.

For example, if you find that most of your website visitors are females based in the US, you can curate content addressing the need of that specific user base.

Understand How Visitors Interact with Your Website

You can also track details like what your visitors do while they are on your website, how long they stay on your site, etc. With the help of this data, you can come up with strategies to make them more engaged, keep them longer, and even convince them to make purchases on your site.

Understand Where Your Visitors Arrive From

Google Analytics gives you the breakdown of different traffic sources such as search engines, social, referrals, direct traffic, etc. By analyzing your traffic sources, you can understand which source contributes the most visitors to your site.

It can also give you insights into how to increase your website visitors.

For example, if your top referral source is an external website, then you might want to consider having a partnership with that website such as submitting guest posts.

How Does Google Analytics Work?

To be able to track your visitors’ data, you’ll need to implement a piece of tracking code on your website that you obtain from your Analytics account. The tracking code must be added on every page on your website. This can be done by adding the code right into the header section of WordPress.

Whenever someone arrives at your site, they are tagged by the tracking code in their browser and then their session on your website begins.

In this article, we’ll explain how to add Google Analytics tracking to WordPress both via MonsterInsights and manual methods.

Step 1: Sign Up for a Google Analytics Account

The first thing you need to do before installing Google Analytics is to sign up for the service. Google Analytics is available for free, so all you need to do is to visit Google Analytics and sign up with your Google account.

In the upper right-hand corner, you can find the Sign In drop-down menu. Simply click on it.

Google Analytics setup

 

Manually Add Google Analytics Code in header.php

A slightly more complex way would be to open your theme’s header.php and place the code right after the <body> tag.

 

4. Manually Add Google Analytics Code in functions.php

If you feel confident in your knowledge of php you can open your theme’s functions.php and add the following code, replacing the fourth line with your Google analytics code.

Code Snippet:


<?php
add_action('wp_footer', 'add_googleanalytics');
function add_googleanalytics() { ?>
// Paste your Google Analytics code here
<?php }
?>

Using any of those methods you should have added Google Analytics to your site.

Please note that you might not immediately start seeing information on your Google Analytics dashboard. It will take about 12 to 24 hours (or sometimes even 48 hours) before you can see any data in your Analytics account.

We hope this article helped you install Google Analytics on your WordPress site. It’s a great way to optimize your website, plan your content, and grow your business.

3 COMMENTS

  1. We are a gaggle of volunteers and opening a new scheme in our community.
    Your web site provided us with helpful information to work on. You’ve done an impressive
    job and our whole group can be thankful to you.

  2. Hі tһere, јust beϲame awar of yοur blog through
    Google, ɑnd found that it is tгuly informative.

    I ɑm gonna watch out for brussels. І will ƅe grateful if you continje this in future.
    A lot оf people ѡill bе benefited fгom youг writing.

    Cheers!

LEAVE A REPLY

Please enter your comment!
Please enter your name here