Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal auto-generated HTML code: why the 1 pixel image?

If you create a button using PayPals selling tools you are then presented with auto-generated HTML after filling in the details of the particular product you want to sell. At the bottom of this generated code is this strange piece of HTML:

<img alt="" border="0"
src="https://www.paypalobjects.com/*****-***-******-*/en_GB/i/scr/pixel.gif"
width="1" height="1">

What is this used for? It seems to serve no purpose, in fact, if i delete it, the script still seems to run fine.

like image 450
Gary Willoughby Avatar asked Apr 05 '11 09:04

Gary Willoughby


2 Answers

I think Tom Gullen is right and the one-pixel image is there for tracking purposes. While trying to answer the same question I found the following article that is probably worth reading: http://en.wikipedia.org/wiki/Web_bug. Especially this part: "Originally, a web bug was a small (usually 1×1 pixel) transparent GIF or PNG image (or an image of the same color of the background) that was embedded in an HTML page [...] Whenever the user opens the page with a graphical browser or email reader, the image or other information is downloaded. This download requires the browser to request the image from the server storing it, allowing the server to take notice of the download."

like image 57
Jeroen Avatar answered Oct 22 '22 11:10

Jeroen


It probably is sending data back to Paypal for tracking purposes. I would leave it in, it's highly unlikely to be malicious and might benefit you in the way of tracking stats etc.

It's also utilising an HTTPS connection so any data being sent to the Paypal server is secure.

like image 35
Tom Gullen Avatar answered Oct 22 '22 11:10

Tom Gullen