How does web beacons work? if you have asked the question any time and would like to know still, read on !
If you are looking forward to know how does an analytics tag work or what is a web beacon, this post might help you.
A web beacon is usually a 1X1 pixel transparent image which gets embedded into a web page or an email message which acts as a way to exchange data between the client and the web analytics data collection server.
Lets see how web beacons really work and transfer data to the server.
Web beacons through javascript tags
The usual web analytics data collection method being used is by means of javascript tags. Each web page which need to be analyzed or tracked contains few lines of javascript code. Following is an example of statcounter code (which is taken out of this page itself, as I use statcounter as one of the web analytics tool. Its free!!)
Let me explain what this code does.
In first 4 lines of this code, few statcounter account related variables are being initialized (such as sc_project, sc_invisible etc). The last part of the code is inclusion of an external js file from the statcounter.
The code from statcounter does many things. For example it finds out the referring URL to the current page you are viewing, the page’s URL, title of the page, your browser’s resolution, your IP address etc etc).
Now comes the web beacon. The web analytics data is collected by the script from statcounter. And at the end of this initial process of collecting information, the data need to be passed to the statcounter server. This is achieved by use of a web beacon or image plug. An image request URL is formatted appending all the variables and values which need to be passed. Javascript outputs an tag with this URL as the src attribute. When the browser renders this image, the script at statcounter.com collects the data present in the query string and sends out the 1X1 transparent image as the response (it was a request for an image – remember that).
Web beacons as part of a mobile specific web page
You would have seen a
No comments:
Post a Comment