In this article, you will learn how to add Google Analytics in blogger and WordPress. This tutorial is completely designed for Blogspot and WP users. You will also find useful screenshots and a video on this.
Google analytics is a tool that measures real time traffic and visitors coming into your site with the help of a script placed on its header. It is the most genuine method of reading your site’s data and statistics.
This script also helps other engines and website analysis tools such as Alexa, Google Search, etc. to get the value of your website. It shows statistics about your website such as active sessions, visitors amount, number of page views, traffic source also known as referral source, landing pages, bounce rate, and a lot more, which is very useful to improve your site’s quality. And if you are not familiar with these words, I shall describe about these information in my other article.
How to Add Google Analytics to Blogger
First, let’s start with Blogger. A Gmail ID is required to perform steps which I have described below.
Also, if you don’t have a blog, then read my article how to make a blog (2018 Update).
Follow these steps to add google analytics on your blogspot site:
Step #1 Visit GA homepage and login to your Gmail ID. You will be redirected to a Google Analytics page as shown below. Click on “Sign Up”.
Step #2 Then you will see the following page on your screen. Fill up the GA sign up form. In account name box, type any name you want to set as it just made to identify your account and it is not much crucial. On website name field, input your blog’s main title and on website URL tab enter blog’s link. You can also switch between http and https by clicking on the box next to it. Scroll down and select your industry that fits best for your blog. Also change your country and reporting time zone according to your needs.
Step #3 Click on “Get tracking ID”.
Step #4 Read the “GA-TOS Agreement” to understand the product better and to learn what you are allowed and restricted in order to keep your account run smooth. You can use the drop-down box and change your country to read those terms for your nation. After reading it, click “I accept“.
Step #5 Copy tracking ID and global site tag code. Paste them on some kind of text editor or paper.
Step #6 Enter your Blogger dashboard in new tab and navigate to settings >> other. Scroll down to the bottom and paste your tracking ID on “Analytics Web Property ID” box. Don’t forget to save your progress by clicking on save settings orange button.
Step #7 Switch back to GA page, and copy the global site tag code.
Step #8 Go back to blogger dashboard and click on themes >> edit html.
Step #9 Find the header tag and paste the code below it. Save your theme. You can watch above video to understand it better.
How to add Google Analytics to WordPress
There are multiple ways to add GA in your WordPress site. Here you will learn methods such as manually adding the script or by using plugins. But please follow the same step as step #1 to step #6 from above tutorial, they are identical in WP as well.
Method #1 Manually Add GA script on WordPress without using plugin
Copy the Google analytics code as shown in step #6 and visit your WordPress dashboard. Navigate to Appearance and select editor.
Find and open Header File (header.php). Press CTRL + F on keyboard to open search box and search for head tag. Paste your GA Tracking code just below the header tag. After that, click on update file.
Method #2: Using MonsterInsights For WordPress plugin to install Google Analytics
After installing and activating MonsterInsights plugin, open menu and navigate to Insights >> Settings. Paste your GA ID on “Manually enter your UA code” box. However, MonsterInsights has a feature to show you detailed GA reports in your WordPress dashboard. To unlock it, click on Authenticate with your Google account.
After you sign in to Google Account, MonsterInsights will ask for permissions. Click on “allow”.
Then it will ask you to pick a profile. Select all website data from the dropdown list and click complete authentication.
Wait for few seconds while it finalizes authentication, and your GA will be successfully installed on WordPress.
Now, it is your turn. You tell me which method are you using to add google analytics to your blogger or wordpress site right on the comments below? Also, be sure to check out other useful articles on Advanced Blog. Thanks for coming here.