I wrote the pixel tracker for a big corporation, which tracks a ton of hits for many top sites.<p>1) Using Math.random() to generate a UUID, is not a UUID. There are plenty of JS uuid generators out there. Please use one.
2) Why are you returning a header with what is being tracked?
3) Please please please use coffeescript.