Are you looking for Google Analytics tutorial?
Are you thinking of installing Google Analytics in your wordpress blog?
If your answers to my above questions are yes, then first of all congrats that you have landed on a right place. And if you have come here through any search engine then say thanks to it :).
But first, let’s understand the importance of google analytics.
Let’s go through the complete google analytics tutorial on how to register with it and how to add the analytics code to your website.
Google Analytics Tutorial
Definition and Benefits
Google Analytics is a free reporting-service provided by the biggest internet giant Google. It helps you in tracking the stats for your website such as the geographic location of your visitors, which pages they surfed the most, how long they stayed on your site, from which search engine they came or they came directly or through any referral etc.
If you own a blog or website then you must be curious to know about your visitors, how much time they spend on your site, which all pages they visit, from which countries you get the maximum traffic etc. A one-stop answer to all these curiosities is Google Analytics.
How to Register Site with Google Analytics?
Now when you know the importance of analytics (GA), then you must have it on your blog. First of all, let’s see that how you can register yourself with Google Analytics.
• Open the official Google Analytics website.
• Enter your gmailid credentials.
• After entering the login credentials, you will be redirected to Google Analytics page. If you are already registered with Google Analytics then the homepage will open else it will ask you to signup, as shown below.
• If you already have Analytics account and want to add new website for tracking, then you need to click on Admin and then ‘Create property’.
• Click Sign up.
• It will take you to New Account page. You will be asked to select from Website or Mobile app. As we want to track our website stats, so make sure to select Website.
• Fill all the below details as mentioned here and as shown in the pics below:
1. Account Name: This is your top level account name. It can contain multiple tracking ids. It means you can add multiple sites under one account. For the time being, you can add your blog name here.
2. Website Name: This is the name of your website. You can keep it same as Account name.
3. Website URL: You need to select http or https based on the SSL connectivity of your domain. If it is on https then select https and if it is on http then select http. After selecting the protocol, key-in your website address. Make sure you enter the url with www or without www (as per your domain settings).
4. Industry Category: Based on niche, select the category. For me, it was Online Communities. This is a non-mandatory field. So, you can skip it too. But we would recommend that you select it.
5. Reporting Time Zone: This is the time-zone that you have to select based on your country. We have kept it as United States (GMT-07:00). I am from India but then also we have kept it as same because we wanted to track users based on GMT-07:00. It does not make any difference; and you can opt for any timezone. Again, its non-mandatory field.
6. Next comes few check-boxes under Data-Sharing settings. This is the information that you are sending to Google, so that it can be used by the search giant to improve its algorithms and also to troubleshoot your site, if required. We recommend that you check all these check-boxes. But for your reference, we are explaining them below:
Google products & services: By sharing this data, you are helping the organization Google so that it can amend its services and products in order to make them better, catering to market needs.
Benchmarking: It will help you in knowing about the trends in the market.
Technical support: By checking this option, you are asking the big giant to come and help you, in case you get into any troubles. And if we are getting any helper and that too free of cost, then what’s drawback in it? So, go and check this option for sure :).
Account Specialists: The above option was for technical specialists. And this one is for sales and marketing specialists. By checking it, you are asking the company’s sales and marketing team to access your account so that they can have access to your account and can suggest some required configuration settings to you.
• After entering all the above mentioned details, click on button Get Tracking ID.
• You will be represented with your google analytics code as shown below. Copy this code in a notepad and in below section, we will see that how to use this code and add in our wordpress blog.
• Please note that you can max add 100 analytics accounts.
How to add Google Analytics in WordPress?
Now I am going to tell here the ways by which you can add Google Analytics in wordpress.
1. Google Analytics MonsterInsights WordPress Plugin
To add the Google Analytics code to your blog, there is a plugin developed by Syed Balkhi known as Monster Insights.
• Install this plugin and then activate it.
• After activating it, go to Insights –> Settings.
• Click on “Authenticate with your Google account”.
• It will take you to google screen where you need to enter your Google Analytics credentials.
• Click on Next and allow MonsterInsights to access your Google Analytics account.
• Select the profile for which you want to enable tracking and click on ‘Complete Authentication’.
• It will redirect you to your wordpress dashboard.
2. Edit wordpress Theme
In this method, you need to edit your wordpress theme.
• Login to your wp dashboard.
• Go to Themes –> Editor.
• Click on header.php file
• Paste the above copied analytics code in your header.php, just before closing head tag, as shown below:
• Save the file.
• Please note that with this method; if you change your theme, then you need to re-again add the code in new theme’s header.php. But this method saves you from adding any extra plugin to your site. So, if you are good at coding then you can opt for this method. Though if you are good developer, I would recommend you installing Monster Insights as the plugin gives you advance level of tracking.
View Data in Google Analytics
Now, when you have setup Google Analytics perfectly then it is time to access Google Analytics and see the reports for your blog.
• Go to Google Analytics official site.
• You will be redirected to Google Analytics homepage.
• Google Analytics is categorized into 4 parts – Top, Left, Middle and Right.
• On top part, you need to select your blog for which you want to check the reports and stats.
• On left-hand side, you will see menus. Clicking on each of the menus will further expand them and you can see sub-menus beneath each menu.
• Clicking on any of them will show you the stats corresponding to that sub-menu. The stats will be visible on right-hand side.
The left-hand side menus and their one-liner explanations are:
Real-Time It will show you the real-time stats for your blog.
Audience As the name suggests, it shows you about the audience (the users) visiting your blog.
Acquisition It shows you the traffic sources like from where the users came. Did they come through organic search or any referral traffic etc. It also allows you to integrate Search console here.
Behaviour It tells you that where your users went on your website such as what were the landing pages on your blog, what were exit pages etc. It also tells you your website pages speed etc.
Conversion You can setup your goals here and it will show you stats comprising your goals.
Just spend some time on Google Analytics dashboard and you will feel yourself familiar with it.