Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Google Analytics' __utm.gif used for?

What is Google Analytics' __utm.gif used for (You know that 1px × 1px gif image that loads on every page with Google Analytics)?

I see my screen resolution and other stuff in the URL. Is that how they send all the site's data back to their servers? With a get request on an image? Cause that's kinda uber clever!

__utm.gif

like image 254
Web_Designer Avatar asked Dec 25 '11 04:12

Web_Designer


4 Answers

it is a web beacon. Read this: https://en.wikipedia.org/wiki/Web_beacon

like image 166
tacone Avatar answered Nov 12 '22 19:11

tacone


The image is dynamically generated and the URL is linked to your account.

When you request the image, Google knows your IP address and some other basic info and can deduce your location, the time of the request, your browser, etc.

The main reason, though, is cross-site-scripting. Requesting an image is easier and completely cross-browser, as you'd have to use JSON to send a request with that information back to Google.

like image 25
Blender Avatar answered Nov 12 '22 19:11

Blender


Is that how they send all the site's data back to their servers?

Yes.

like image 33
SLaks Avatar answered Nov 12 '22 18:11

SLaks


Yes, you are correct. This request is used to send Google details about a particular page request, namely:

  • URL pageview information
  • Campaign information
  • Ecommerce data
  • Browser properties
  • Visitor IDs
like image 34
Jonathan Avatar answered Nov 12 '22 19:11

Jonathan