Wednesday, March 23, 2011

Google Analytics : how it works ?

WideSEO | Promote your Page too


As "promised", I created a Google Analytics account for wideseo. Not very complex to implement, even for a rookie.
After creating a personal ID, a personalized javascript, called tracking snippet, must be inserted in the template of the blog, just before the /HEAD tag.
24 hours later, GA has enough data to start to play with.


The Google Analytics javascript code works in asynchronous mode since 2009. In other words, it is loaded in background to reduce the page loading time.
Each time a page of the site is loaded in a browser, the javascript execute its code. It builds a small array named _gac, fill it with parameters collected from the HTTP request (e.g. hostname, referer, language, browser type), the DOM of the browser (e.g. Flash and Java support) used and first-party cookies (e.g. session info).

Once built, the list of parameters regarding the visit is attached to a single-pixel image (utm.gif) request and sent to Google Analytics servers.

FACTS

* The Google tracking snippet is also referred as GATC for Google Analytics Tracking Code

LINKS

* Google Analytics course (video)
* GA Asynchronous Tracking Code Snippet forum
* How does Google Analytics collects data ?

More will come later about Google Analytics details.

See U soon
O.

No comments: