Connect with us

Add Google Analytics on WordPress for Website Tracking


Add Google Analytics on WordPress for Website Tracking

Google Analytics is the best way to know about audience interaction on your site. Do you want to add Google Analytics to WordPress site? Here is the step by step process for you. Have a look through this article and add Google Analytics to your WordPress for website tracking.

Add Google Analytics to WordPress

Adding Google Analytics to your WordPress is not an easy task for the WordPress Beginners. Here we provided the easiest way for adding Google Analytics to WordPress. Before that, you need to know What is Google Analytics and Why it is required for your WordPress site. Go through this article here we provide the complete details regarding the Google Analytics.

What is Google Analytics Plugin?

Google Analytics is used for monitoring the traffic of a site. And it can generate the detailed statics for visitors. This Google analytics can allow the webmasters to know daily visitors, source of traffic and conversion rate clearly through a lot of objective referrers such as search engines, social networking and some referring websites.

Why Google Analytics is required?

  • To get a detailed picture of your website audience and their needs.
  • Know the routes that take people to your website.
  • Track multiple sites at one time.
  • To know how people interacts with your website posts.
  • It Keeps pace with your website without spending even one penny.

Features of Google Analytics Plugin

  • Easy setup.
  • Traffic sources information.
  • Account linking.
  • Visitor trends.
  • Track real visitors.
  • Fully optimized for mobile.

How to Add Google Website Analytics to WordPress?

Here, we provide the step by step process for adding Google Web Analytics to WordPress. Have a look through it.

Sign Up Google Analytics Account

  • First, you have to create a Google Analytics account.
  • Go to Google analytics page.
  • Here, you need to sign in Gmail Account. If you have a Gmail account which is available for all products of Google like Gmail, Google+, YouTube etc then you can sign in with that account. If you don’t have then create a new account for yourself.
  • After you Login to your Gmail Account, you will be redirected to a new screen as shown below.
  • From this page, you can signup for Google Analytics.
  • Now, you are able to choose one website or mobile app to track. For installing Google Analytics to WordPress website, you have to select Website.
  • Currently, google is offering Universal Access account is in beta which provides more features and a classic analytics account. You can choose either of them. If you select classic analytics, then you will be upgraded to new features after they come out of beta.
  • You have to fill the remaining fields with your Account details like name, website URL, contact and time zone.
  • Once you have entered the details, Click on the Get Tracking ID button.
  • After your account successfully created, you can be led to Google Analytics tracking code.
  • Now, you have to copy that tracking code.

Install Google Analytics on WordPress

There are 3 different ways to install Google analytics on your WordPress. Those are provided here.

  1. Paste Tracking Code
  2. Install Plugin
  3. functions.php
Paste Tracking Code
  • Login to your WordPress admin area.
  • Go to Appearance.
  • Select Editor option.
  • Search for the header.php file.
  • Open the header.php file.
  • Next, paste tracking code right after the <body> tag.
Install Plugin
  • Number of plugins are available for installing Google Analytics on WordPress sites. First, you have to choose one best Google Analytics plugin and install it.
  • Next, Open the Installed plugin settings page.
  • Paste the Tracking code on that page.
  • Next, click on update button.
  • Now, it can track your website automatically.
  • Login to your WordPress admin area.
  • Go to Appearance.
  • Select Editor option.
  • Search for the function.php file.
  • Open function.php file.
  • Next, paste the given code to it.
<?php add_action('wp_footer', 'add_googleanalytics'); function add_googleanalytics() { ?>
// Paste your Google Analytics code from Step 4 here
<?php } ?>
  • Paste your Google Analytics Tracking at the specified place.
  • Click on update Button.
  • Now, it can track your WordPress site.

Google takes 12 to 24 hours to start providing information. You can click on the Reporting tab to know your site analytics overview.

Google Analytics Tracking

Now, start tracking your website with Google Analytics. Here we provided the complete details regarding Google Analytics Access. Have a look at it and track your WordPress site.

Login to your Google Analytics and click on the Reporting Tab. With the reporting tab, you can see details about all visits, unique visitors, new visits, visits by browser, bounce rate and revenue.

Built-In Features

Google Website Analytics provide advanced features on Website tracking.

Site Speed

The Site Speed determines the quality of reading experience every second.

Real Time Report

In the Real Time Report, you can see the traffic of some specific moments. It is more useful for people who are targeting foreign visitors. They can figure out the perfect time for publishing posts on their sites.

Event Tracking

The Event Tracking provides information on visitors action. It determines what happened between your visitors and your WordPress site.


Hope this article helped you to add Google Analytics to WordPress. Follow us to get knowledge on WordPress. If you face any WordPress problem, don’t worry about it. Just visit our site and get the best solution for your WordPress Error.

Continue Reading
Click to comment

Leave a Reply

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

More in solution

    About Me:

    Szabi Kisded

    Hey there, I'm Szabi. At 30 years old, I quit my IT job and started my own business and became a full time WordPress plugin developer, blogger and stay-at-home dad. Here I'm documenting my journey earning an online (semi)passive income. Read more

    Sign up for my newsletter and get the YouTube Caption Scraper WordPress plugin for free
    (worth 29$)!

    All My Plugins In A Bundle:

    My AutoBlogging Plugins:

    My Online Courses:

    A Theme I Recommend:

    Featured Posts:

    To Top