How do I track images embedded in HTML?

Posted by ycseattle on Stack Overflow See other posts from Stack Overflow or by ycseattle
Published on 2010-03-18T17:07:28Z Indexed on 2010/03/18 17:11 UTC
Read the original article Hit count: 267

Filed under:
|
|

Hi,

I'd like to track the views/impressions of images on web pages, but still allow the images to be embedded in HTML, like in the "img src="http://mysite.com/upload/myimage.jpg"/" element.

I know in Windows I can write a handler for ".jpg" so the URL will actually trigger a handling function instead of loading the images from disk. Is it possible to do that in python/django on Ubuntu server? Can web browser still cache the jpg files if it is not a straight file path?

It looks to me that this is how google picasaweb handles the image file name. I'd like to get some ideas on how to implement that.

Thanks!

-Yi

© Stack Overflow or respective owner

Related posts about image

Related posts about django