Connect with us

Add Google Analytics on WordPress for Website Tracking

solution

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.
Related:  Fatal Error call to undefined function get_header()

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.
functions.php
  • 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.

Related:  Fixing WordPress Fatal error: Class WP Post_Type not found

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.

Conclusion:

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
You may also like...

We are a WordPress plugin developer company that focuses on useful WordPress plugin creation and empowering people to earn passive incomes from their blogs. We build unique and groundbreaking plugins that will revolutionize your blog!

Click to comment

Leave a Reply

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

More in solution

    Sign up for our newsletter and get a free affiliate e-book!


    About Me:

    Szabi Kisded

    Hi, my name is Szabi and I'm documenting my journey selling plugins on CodeCanyon. I will show you every step of it: learning to code, plugin ideas, WordPress stuff and more. Read more…

    Mega Plugin Bundle:

    CodeCanyon Portfolio:

    Learn to Code Plugins:

    Latest Promotions:

    Recommended Theme:

    Start Your Own Blog:

    Recommended VPN:

    Translate Your Blog:

    AdSense Alternative:

    Best Article Spinner:

    Popular Posts:

    Latest Posts:

    To Top