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.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.