How Google Analytics Works

 

Google Analytics works by the inclusion of a block of JavaScript code on pages in your website. When visitors to your website view a page, this JavaScript code references a JavaScript file which then executes the tracking operation for Analytics. The tracking operation retrieves data about the page request through various means and sends this information to the Analytics server via a list of parameters attached to a single-pixel image request.
Google Analytics is enabled by including a tracking code in the template of your website. This way, Google’s indexing bots can see every page of your site and tell you all kinds of information about the traffic you’re receiving on those pages.

Inclusion of Java Script with tracking token

This is fundamentally different from how Urchin works: Urchin is installed on the same server as your website’s database, so it looks at your website from the “inside” and tracks traffic in terms of hits to the database. Since a hit is registered every time a file is requested from the database- every word, image, CSS or javascript file- consider just how many hits might be logged just from loading our homepage! Also, Urchin lumps in database files along with your pages in its reports, so don’t be surprised if “robots.txt” is the most popular file on your site. What Google understands is that you are interested in how people use your website, so they’ve built their analytics tool around that principle.
By the way, Google allows you to add IP addresses to a filter in your analytics account so that your numbers are not skewed by your own traffic on the website.It would be a real bummer to go on thinking your website is crazy popular because you spend hours clicking through it every day.

 

 

What is Google Analytics ?

Google provides GA (google analytics) service by which web master can analyze the web traffic on his web site. Like who visited, from where, for how much time, at what time etc. Once you enable it, you can see it graphically on the google analytics server on the real time basis. It is very simple to consume this service, just create one account with http://www.google.com/analytics/    and take the account tracking token for that account. Put the tracking token in base web page of web site you want to be tracked or analyzed and you are done.

Google Analytic dash board view

“Know your visitors” is the key behind creation of GA service. Once a web site is up and running, it is really important to get a sense of users by tracking their activities. It helps in making important decisions based on users locale, likings, timings etc.