how does urchin.js (google analytics) work

D

David Chang

Hi, does any one know how google analytics (urchin.js) works? I always
thought javascript
cannot talk to multiple servers due to security constraints. But google
analytics seems to
be able to track down a user's web browsing activities and send them back to
google.

I deeply appreciate that if some one can shed some light on me regarding
this.

Thanks !!

David
 
R

Richard Cornford

David said:
Hi, does any one know how google analytics (urchin.js) works?

Poorly, as it is predicated upon assumptions that are false.
I always thought javascript
cannot talk to multiple servers due to security constraints.
<snip>

Generally javascript (or, more precisely, browser object models) cannot
receive information from multiple domains (or interact with information
received from multiple domains). That does not mean it cannot send HTTP
requests to multiple domains (GET requests with data sent in query
strings). This has, for example, been possible when setting the SRC
properties of Image objects; the request is sent, the image returned
(if the remote server is happy to do so), but javascript is prevented
from interacting with the object as a result of its having loaded
'alien' data. However, this ability to make requests to any HTTP server
is likely to be removed soon as security concerns have recently been
raised in connection with it (the implied ability to scan network-local
servers for images and so deduce network configuration information).

Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top