Monday, June 3, 2024
114
rated 0 times [  119] [ 5]  / answers: 1 / hits: 17628  / 15 Years ago, thu, may 21, 2009, 12:00:00

Yes, I know you have to embed the google analytics javascript into your page.



But how is the collected information submitted to the google analytics server?



For example an AJAX request will not be possible because of the browsers security settings (cross domain scripting).



Maybe someone had already a look at the confusing google javascript code?


More From » google-analytics

 Answers
11

When html page makes a request for a ga.js file the http protocol sends big amount of data, about IP, refer, browers, language, system. There is no need to use ajax.



But still some data cant be achieved this way, so GA script puts image into html with additional parameters, take a look at this example:



http://www.google-analytics.com/__utm.gif?utmwv=4.3&utmn=1464271798&utmhn=www.example.com&utmcs=UTF-8&utmsr=1920x1200&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=10.0%20r22&utmdt=Page title&utmhid=1805038256&utmr=0&utmp=/&utmac=cookie value



This is a blank image, sometimes called a tracking pixel, that GA puts into HTML.


[#99483] Monday, May 18, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ellisc

Total Points: 533
Total Questions: 82
Total Answers: 90

Location: Bangladesh
Member since Thu, Aug 5, 2021
3 Years ago
;