Select Location:
Close [ x ]

Account Menu

Main Menu

Category Menu

Chose Location

How to Add Google Analytics to Your WordPress Website

September 11, 2017| By:-admin | Blogging, WordPress | Leave a comment

Add Google Analytics to your WordPress site to track who is visiting your website, what the visitors are looking at and how they got there.

 

How to add google analytics to your WordPress site

 

What is Google Analytics?

Google Analytics is a website tracking tool that tells about traffic, conversions, user behavior, and more for your website. It is a free service provided by Google and It is the most popular website tracking service available on the internet.

Google Analytics can report you how many people are visiting your website, where the visitors are coming from, and how people interact with your website after arriving at your site.

Google allows you to export Analytics data in different formats. You can also create your own custom “Dashboard” as per your requirements. So it can easily provide and update the data you want to see for your website.

Why Add Google Analytics to a Website?

Everyone start a blog or website with the goal of getting more traffic and subscribers. Google analytics reports you the stats that can help you to take data driven decisions. It helps you to see:

1. Who Visits Your Website or Blog?

There is a part of analytics which answers the questions like How many people visited your website? What is the geographical location of visitors to your site? Which browser visitor uses to access your web site?

Add Google Analytics to your website as it provides much other information in this part. It provides details of resolution of the screen, java script support, language etc. So it provides the information about the devices on which people open your website like laptops, Smartphone, tablets etc.

This data related to above-mentioned information is extremely useful, and it can help website developers in various ways. On the basis of data and analysis, you can make sure that the design of your site is compatible with the devices of your audiences.

If most of the visitors don’t have flash installed in their devices then you must avoid adding flash software on your site. If the resolution of user’s devices is 1280 then the design of your site must be computable with that resolution or smaller.

2. What Visitors Do On Your Website?

You can track the activities of visitors on your website. You can track where the visitor is going on your site? Which pages are they access the more? How long they stay on your site and particular pages? And what is the bounce rate? Bounce rate is the percentage of visitors exits your website on the first visit.

By using such information you can decrease the bounce rate of your site by modifying the content of your site. That will also increase the page views of your site.

3. When Do People Access Your Website?

You can track the time at which traffic is more on your site. You can easily find out the hottest hours in terms of the traffic, in the day for your site. So you can select the time to post your content and get immediate traffic on that topic. If that time zone of posting is not compatible with your time zone, then you can schedule the post to meet the posting time.

4. How Visitors Find Your Website?

This section of the analytics reports you which websites send traffic to your website? Where did the user come from to your website example: User may come from Search Engines, Direct Links, and Referral links or from some another site.

It can also report that what percentage of users to your site came from each of these sources. Add Google analytics that provides information on various categories, and the search engine is one of them. This category reports that which search engine is getting more traffic to your site, Google, Yahoo, Bing or any other.

Another category is referral sources that show which websites you should work with the most. If the top referral source for your site is Facebook, then you must have exclusive Facebook content to make your Twitter followers feel special.

If the top referral source for your site is some external website, then you can go for partnership with that website (guest post exchange or something else).

5. How do Visitors Read Your Content?

This section tells you which pages on your site are visited by most of the visitors? How many visitors you have converted into clients? Where did your converted visitors come from and go on your website? What content of your blog visitors like the most?

We can Add Google analytics to check how readers of your content interact with your posts. It shows what content or post users like more.

By analyzing the user interaction on your content, you can focus on the type and quality of your content. By viewing the answers to above questions, you can plan the strategies that work for your website.

How Does Google Analytics Work?

To implement Google analytics to your blog you will need to add a piece of java script to your site. So it can gather data of the performance of your website. When people open your site in their browser they are tagged by the java code you added. And their session on your site begins.

The tracking code should be added to every page of your site for which you want to check traffic data. This will make sure that the tracking will follow every visitor of your site and their activities.

Some important and most helpful data provided by Google Analytics is:

  • Source of Traffic:

It reports the source of visitors to your site like Google search or ad, direct traffic, or through social media.

  • Page View per Visitor:

It tells the number of pages visited by a person on your website.

  • Bounce Rate:

It reports the number of visitors came to a page of your site and immediately left the site.

  •  Interaction per Visit (Page/Session):

It shows how long a visitor stayed on your website. And how many pages visitors have visited during their session.

  • Conversion:

Conversion analysis reports that how many visitors completed an action on your website. For example, if your site has a registration form, you can see how many visitors filled and submitted that form. And other details like where they came from, etc.

  • Average Session Duration:

It reports the average time a visitor spends in a session on your website. It tells that how relevant your website to your visitors. If it is more relevant, the visitor will spend more time on it and access the information.

How to Add Google Analytics to Your Website?

To install Google analytics on your site first, you need a Google Analytics account. If you already have a Google account that you use for Gmail or YouTube etc you can use that. You will need to set up your Google Analytics using your existing Google account. If you don’t have Google account then you will need to create a new one.

Setup Your Google Analytics Account

Step1: Once you have your Google account ready, go to Google Analytics. You will see a screen as shown below.

 

Google analytics sign in

 

Enter email or phone number in given field to sign in into your Google account and click on next button. You will be taken to next screen similar to as shown below.

 

Google analytics enter password

 

Step2: Here you will need to provide the password of your Google account and click on next button. The next screen will appear.

 

Google analytics sign up

Click on Sign up button, the next screen will appear as shown in the figure.

 

 

Google analytic new account settings

 

Step3: First select the tab from the website or mobile app. If you want to create a Google Analytics account for a website then select website tab or if you want it for the mobile app then select app tab.

After that enter all the information required in above fields such as account name (That will be the Google Analytics profile name for the site you enter), the name of the website, URL of the website, country name, and the time zone.

 

Google analytic data sharing settings

After entering all the information, click on the Get Tracking ID button. You will be taken to Google Analytics terms and service screen, accept that by clicking on “I Agree” button.

Step4: Next screen will appear with your Google Analytics tracking code.  You will need to add this code to your WordPress website so copy this code.

 

Google analytic tracking id

Add Google Analytics Tracking Code in Your Website

There are various methods to add Google Analytics tracking code to your WordPress website.  But in this tutorial, we will discuss the most widely used method and that is the manual method.

You have already copied the code in above steps, now is the time to paste that code in your Website.

Step1: Login to your WordPress website and go to dashboard. Then go to Appearance -> Editor Option.

 

Google analytic add tracking id appearance editor

 

Step2:  You will see a template on the right side of the page.  Under the heading Templates, you will see various options and .php file. Search for header.php, generally, the title above the file is Theme Header as shown in the figure below. The file header.php will be displayed in the edit window.

 

Google analytic add tracking id theme header

 

Step3:  Now you will need to paste the code in header.php. Search for the tag: </head> in the file. Now paste the Google analytics tracking code you copied earlier immediately before </head> tag.

 

Google analytic paste tracking id

 

Step4: After pasting the code, click the “Update File” button just below the edit window.

Step5: After few minutes making sure that the code is properly placed. To do this go back to the same place in Google Analytics from where you copied tracking code for your site. Refresh the screen and check if your account is receiving data. If it is not receiving the data, click the “Send test traffic” button to test.

 

Google analytic status

It takes around 12 to 24 hour for actual data to start coming through Google Analytics.

View Google Analytics Report of Your Website

After 24 hours you can log in to your Google Analytics account and go to reporting section of the main menu to see the details of your website data.

 

Google analytic reporting

 

Google Analytics can show you details of data collected from your website stats. You can view the data of your website by visiting report tab of your Google Analytics dashboard.

The default section of the report is the Audience Overview, and this is what appears by default whenever you login to your Analytics account in the future:

 

Google analytic report audience overview

 

As shown in above figure the menu on the left side will navigate between the different sections of the data. It is divided into the sections on the basis of the type of metrics presented.

  • Audience Overview: This shows the type of devices audience uses to access your website. This can help you to determine if you need to improve your site to perform better on devices like mobile, tab and laptop etc.
  • Acquisition Overview: This section will report you that what channels and websites are sending traffic to your website (Organic Search, Paid Search, Social Media, Referrals (other websites)
  • Behavior Overview:  This section will report you the pages on your website are getting the most traffic.
  • Conversions Overview: This section will report you the number of conversions that have taken place on your website if you have set up some goals.

 

Also Read:

Conclusion:

Google Analytics is the most commonly used powerful and free analytics service available on the internet. If you are experienced web developer then you must know the benefits of Google analytics. And if you are new then you must add it to your websites. The implementation of Google analytics tracking will help you to regularly improve the performance of your website.

Leave a Reply




Subscribe

Enter your email

Join 10,006 other subscribers

Blog Stats

  • 10,844 hits