By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

how does urchin.js (google analytics) work

P: n/a
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
Sep 1 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
David Chang wrote:
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.

Sep 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.