How to set up Google Analytics?

Often, I got friends who asked me “Hey Matt, do you know how to set up Google Analytics?”
After several times, now I decide to write a beginner guide to Google Analytics.
In this blog, I will show you how to set up a Google Analytics account for tracking your own website. The example used here is my Google blog.
Step 1: Create a GA account. Go to this site
Step 2: Create new GA account -> Log in using you gmail account.
 Step 3: Enter the site’s name you want to track, its url and select its category.

Step 4: Get the tracking code:

Step 5: Now for Google blog, you just need to copy tracking ID (Part 1). Simply log in to your blog Setting -> Other and paste it on Analytic Web Property ID. Now GA will start analyzing your blog.
Now it’s done. Google Analytics will start tracking your site and update information every few hours. So easy right?

For tracking other sites, you need to copy and paste the tracking code (part 2) immediately right before the closing </head> tag. If you wonder why, see the section below.For knowing how to edit your own webpage, visit the link below.

Miscellaneous Question:Somebody asked:

Where’s the best place to insert the google analytics code in wordpress? header or footer? I prefer footer because i wanted my site to load faster by reducing the number of scripts in the header, but can it work even if the script is in the footer?
Best replied:
Paste it into your web page, just before the closing </head> tag.

One of the main advantages of the asynchronous snippet is that you can position it at the top of the HTML document. This increases the likelihood that the tracking beacon will be sent before the user leaves the page. It is customary to place JavaScript code in the <head> section, and we recommend placing the snippet at the bottom of the <head> section for best performance

Please feel free to leave any queries in the comment box below and we will attend to them :)