How to add WordPress to Google analytics to monitor statistics

How to add WordPress to Google analytics to monitor statistics?

Well google Analytics let you measure your advertising ROI as well as track your Flash, video, and social networking sites and applications

Below is step by step guide to link your site with Analytics.

Step 1 – Creating a Google Analytics Account

The first thing you need to do is create a Google Analytics account and obtain the tracking code. The steps below show how to sign up for Google Analytics:

  1. Start by navigating to Google Analytics home page -> Sign In button.
  2. You will be redirected to the Login page. Enter your Google email address and press the Next button. If you don’t have a Google account, create one by pressing the Create Account button.Google Analytics Login FormGoogle Analytics Sing In Button
  3. Press the Sign Up button in order to proceed with analytics account.Google Analytics Sing Up
  4. In order to create a new account, you will have to enter the following detail on new account page:
    1. Account Name.
    2. Website Name.
    3. Website URL.
    4. Industry Category.
    5. Reporting Time Zone.

Google Analytics Create New Account

Fill all the required details and press the Get Tracking ID button (6). On the next page, you will be asked to accept the Terms of Service, so click the I Accept button.

That’s it! Google Analytics account is ready to use. On the next page, you will see the Google Analytics Universal tracking code:

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-ooooooo-1', 'auto');
  ga('send', 'pageview');

</script>

This JavaScript code is identical for all websites. Only the tracking ID ( like UA-ooooooo-1) is unique. You should see yours on the same page. Tracking ID starts with UA which stands for Universal Analytics, the first set of numbers represent the account number (56328220) and the last number(s) represent Google Analytics property ID (1).

Step 2 – Adding Google Analytics to a WordPress Blog

There is more than one way to add Google Analytics tracking code to WordPress: by using a Plugin, by adding tracking script directly to the footer.php file.

Option 1 – Using a Plugin

If you are not familiar with WordPress file and PHP code, it’s recommended to use the Plugin method. One of the best plugins for this is Analytics Code Integration. This plugin will insert the Universal Analytics tracking code automatically – you will only have to enter your tracking ID (UA-ooooooo-1) .

The steps below show how to install the plugin and insert the Google Analytics tracking ID:

  1. go to WordPress Dashboard and install the Google Analytics plugin.
  2. Once the installation is complete, navigate to the Settings section and press on Google Analytics Code.
  3. Paste your tracking id (like UA-ooooooo-1) in the field and click Save.WordPress Google Analytics Add to WordPress
  4. done…
(Visited 4,086 times, 1 visits today)
One Comment

Add a Comment

Facebook