How to install Google Analytics in Website
What is Google Analytics and why we need to install Google Analytics in our Website.
Actually Google Analytics is a free analytics tool created by Google which is used for analysis of the traffic that visit our website. In order to install Google Analytics in our website , we have to insert a JavaScript code in our website which we will get after setting up a Google Analytics account (Discussed in steps below).This Javascript code have a unique id that links our website to a particular Google Analytics account. Whenever a visitor visits your website then this JavaScript code will send data to your Google Analytics account through which your website is linked.Google Analytics then process the information received through JavaScript code and generate various report like the location of visitor, how much time he or she spent in our website, what is the bounce rate etc. If you set up event tracking setting in your website then you can also analyze the activities that visitor have performed in your website like watching video, clicked Menu button, Scroll depth or signed up for newsletter or not etc.
Their are many other benefits of installing Google Analytics that I can write but this blog is to teach you how to install Google analytics in website, so in some other future blog we will discuss Pro & Cons of installing Google Analytics in our website. Lets first install GA in our website.
STEPS TO INSTALL GOOGLE ANALYTICS IN WEBSITE
Follow following steps for installing Google Analytics.
1. Create Google Analytics Account : In order to create a google analytics account you have to visit https://analytics.google.com/ . You can use your Google account to create Google Analytics account. If you don't have google account then first Create Google Account.
After you login using your Google Id for first time you will be taken to following page. In this window click the Sign Up button for free google analytics account:
A new window will open up. Now Stepwise fill all the detail by following the following steps :
- We are making this Analytics account for website so first Select Website (selected by default).
- Under Account Name , enter the your account name. You can enter your business name here.
- Under Website name , enter your Website name.
- Under Website URL, enter your Website URL. Also select whether you are using http or https.
- Under Industry Category, select the category of your Website / Business.
- Under Reporting Time Zone , select the country to which your website belongs.
Now scroll down, Select all the options and click Get Tracking Id button.
In next Window you have to accept the Google Analytics Terms of Service Agreement. Accept all the terms :
When you Accept the terms and condition , a new window will open where you will get Google Analytics tracking code. Copy this analytics code and paste it somewhere in notepad or word.You have to insert this Analytics code in your website.
INSTALLING GOOGLE ANALYTICS IN WORDPRESS
In the next step we have to Add Google Analytics Code (copied earlier) to website. We have to insert this code in the header tag of all those pages of website that we want to track. I am having a wordpress website so I will tell you how to insert the Google Analytics Code in a wordpress.
There are many ways to insert the code like by using a plugin & second method by direct pasting the code in header tags.Here I will show you the method of directly pasting this code into the header.php file which is a easier step to install Google Analytics in wordpress.
Follow this step :
1. Login to the backend of your wordpress website and go to Appearance > Editor.
2. Under Theme Files select header.php file. You will see that file will open in File content area.
3. Paste the Google Analytics Code that we copied earlier while we were creating Google Analytics account, under the head html tag.
4. Click the Update File button.
In this way you have added Google Analytics code in your Wordpress website.
1. Visit your Website in which you have installed Google Analytics.
2. Login to your Google Analytics account which you have created and go to Real Time report > Overview.
3. If you have successfully installed Google Analytics, then you will see 1 Active User (or more depending on the traffic) right now.
In this way we have learn How to set up google analytics for wordpress website.
Now you can freely use this Google analytics tool in order to track performance of your website. You can track various report using your Google Analytics Account.
If you don't know how to use Google Analytics then stay connected here. In upcoming blog I will tell you about basic overview of various report generated in Google Analytics. We will also perform some basic auditing and setting in Google Analytics account that will be very much useful for you.
For any queries please comment below I will try to help you. Kindly share this blog with your friends if he is searching for same topic. More such blog are coming in future.
There are many ways to insert the code like by using a plugin & second method by direct pasting the code in header tags.Here I will show you the method of directly pasting this code into the header.php file which is a easier step to install Google Analytics in wordpress.
Follow this step :
1. Login to the backend of your wordpress website and go to Appearance > Editor.
2. Under Theme Files select header.php file. You will see that file will open in File content area.
3. Paste the Google Analytics Code that we copied earlier while we were creating Google Analytics account, under the head html tag.
4. Click the Update File button.
In this way you have added Google Analytics code in your Wordpress website.
TESTING THE GOOGLE ANALYTICS INSTALLATION
You can confirm whether you have successfully install Google Analytics code in wordpress website by sending test data. Follow the following step to check :1. Visit your Website in which you have installed Google Analytics.
2. Login to your Google Analytics account which you have created and go to Real Time report > Overview.
3. If you have successfully installed Google Analytics, then you will see 1 Active User (or more depending on the traffic) right now.
In this way we have learn How to set up google analytics for wordpress website.
Now you can freely use this Google analytics tool in order to track performance of your website. You can track various report using your Google Analytics Account.
If you don't know how to use Google Analytics then stay connected here. In upcoming blog I will tell you about basic overview of various report generated in Google Analytics. We will also perform some basic auditing and setting in Google Analytics account that will be very much useful for you.
For any queries please comment below I will try to help you. Kindly share this blog with your friends if he is searching for same topic. More such blog are coming in future.
How to Add Scroll Depth Tracking in WordPress with Google Analytics?
ReplyDeleteThanks for inspiration, very good article and good explanation. For more information about How to Add Scroll Depth Tracking in WordPress with Google Analytics? click and visit here :- bscriptsource.com
scrolling widget wordpress
event scroll plugin wordpress
scroll plugin wordpress
how to view scroll depth in google analytics
google analytics track page scroll
scroll tracking tool
scroll depth benchmark
email scroll tracking
Such sites are important because they provide a large dose of useful information ... analytics
ReplyDelete