Check this link
http://www.google.com/support/googleanalytics/bin/answer.py?answer=55488&utm_source=DiscoverList&utm_medium=et&utm_campaign=en_us&hl=en_uk
From what I can understand, all you do is put some javascript on each
web page but this article explains more. The Tracking Code appears to
be a unique identifer for your site.
or
check this,
http://www.codeproject.com/Articles/25027/Google-Analytics-ASP-NET-Grid-Counter