Track how long an email was open

jason2li

Member
Joined
Nov 18, 2005
Messages
22
Location
St. Louis, MO
Programming Experience
5-10
I am developing a marketing management tool for my company which will send out mass emails to our target audiences. They would like to be able to track when, where, and how long an email was opened.

I managed to get the "when" and "where" working fine by adding an IMG tag pointing to an ASPX file on our servers. Their email address, ip, and the current time saves to our database just fine, but I need to somehow save the exact time when they close the message.

I tried formatting the HTML email message with an BODY's OnUnload pointing to another ASPX file via XMLHttpRequest (AJAX), but I'm sure that doesn't work because of the security risks.

Next, I tried having javascript fill another IMG tag's source from OnUnload, pointing to the file on our server again, but that didn't work.

Does anybody know how this can be done?

I got the idea from http://www.didtheyreadit.com/index.php, if that helps.

Thanks!
 
Back
Top