if you need to send crosssite request you can do it via JSONP and via new Image(), if you use JSONP you can recive answer from server, if new Image – not, why GA uses new Image?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because Google Analytics does not need to send anything back to your browser after getting your information from the initial request.
They make you ping their server with a new request (creating a new Image guarantees that your browser won’t cache the link) sending them all the information from your browser: UserAgent string, etc.
They don’t need JSONP because they’re not communicating so much as collecting data.