Note: I will refer Google Analytics as GA in the following, please bear with me.

Get google account first
Sign up for a google analytics account. If you have a google account(Gmail) then you can directly login in to GA. Once you have logged in, you will be shown the main section. In the first login you will see no anlytics accounts in the landing page. In GA analytics account means the tracking website, suppose you want to track 3 websites then you need to create 3 analytics accounts or in simple terms 3 profiles. A single google ID can help you to track multiple websites at one time.
http://www.google.com/analytics/
Step 1: Login to GA landing page, click on create a new analytics account, you will be taken to the analytics registration page.
Fill the above form and click on Continue.
Step 2: As soon you click Continue, you will be dispalyed with the GA code that you need to paste at the bottom of the page.
The code will look like this
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12226152-1");
pageTracker._initData();
pageTracker._trackPageview();
} catch(err) {}</script>
Step 3: Paste the code that is given to you at the end of your page just above </body> as illustrated below
</div>
Your GA code comes here
</body>
</html>
Step 4: Now go and check the GA account and after few minutes you will see that GA starts tracking your web page.
See how simple it is to work with Google Analytics.

